Page 1 of 2 12 LastLast
Results 1 to 40 of 42

Thread: Creating set up using the Inno setup

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Red face Creating set up using the Inno setup

    i really worked hard to write these on the inno script to create the setup:

    Code:
    [Setup]
    AppName=My Program
    AppVerName=My Program version 1.5
    DefaultDirName={pf}\My Program
    DefaultGroupName=My Program
    OutputDir=d:\output
    [Files]
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Final_Etech.exe"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Etech.mdb"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\
    though it worked but in the program files the database files can be seen as well as opened directly after the program gets installed.......

    i dont want the .mdb files to appear in the program files after the installation is completed........

    how to do this?

    please help

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Question Re: Creating set up using the Inno setup

    Attachment 75641

    also you can see the 0.0.0.0 in the attachment.....how to change this?
    Last edited by gautamshaw; Feb 21st, 2010 at 01:21 PM.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Unhappy Re: Creating set up using the Inno setup

    So i am trying to make a setup file of my project that i made in vb.net.....vs2005.My project contains of two .mdb database.

    I modified my earlier script and came to this bit of script....

    Code:
    [Setup]
    AppName=eTech Online
    AppVerName=eTech Online version 0.7
    DefaultDirName={pf}\eTech Online
    DefaultGroupName=eTech Online
    OutputDir=d:\eTech Online
    Compression=lzma
    SolidCompression=yes
    [Languages]
    Name: en; MessagesFile: "compiler:Default.isl"
    Name: nl; MessagesFile: "compiler:Languages\Dutch.isl"
    Name: de; MessagesFile: "compiler:Languages\German.isl"
    
    [Messages]
    en.BeveledLabel=English
    nl.BeveledLabel=Nederlands
    de.BeveledLabel=Deutsch
    
    [Files]
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Final_Etech.exe"; DestDir: "{app}";
    Source: "E:\Softy\DOT_NET\.NETFramework_2.0_Installer\dotnetfx.exe"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Etech.mdb"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\AdminLogin.mdb"; DestDir: "{app}";
    Source: "d:\Readme.txt"; DestDir: "{app}"; Flags: isreadme
    [Icons]
    Name: "{group}\eTech Online"; Filename: "{app}\Final_Etech.exe"; WorkingDir: "{app}"
    this bit of script is creating the setup.exe well but i have a few problems with this:

    after installing the setup,i get these files in the eTech Online folder of the program files:
    Attachment 75648
    but i dont want the database to be exposed here in the program files after installation.......since the user can directly use the database by opening it with a double click

    and the second problem lies with my post#2....

    please solve these two problems.....thank you
    Last edited by gautamshaw; Feb 21st, 2010 at 01:21 PM.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    i have solved the #2 problem but the #3 problem with the database is still unsolved

  5. #5
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    1. Since you would be using the mdb file in your application, you would need to copy the file there anyways. The only way I can think of is to put a password in the mdb file and use that password inside your application to open it.

    2. I'm not too proficient at InnoSetup. But in the [Setup] section, look for some variable to define the setup version. I'm sure there must be one.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    please have a look at this sir:

    http://agiletracksoftware.com/blog.html?id=4

    they are talking about dome .dat file.....

    do i need to convert my .mdb into .dat format?

  7. #7
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Whether you name it as .mdb or .dat, you would need to copy it somewhere for your program to use it, Isn't it?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    i did this much.......

    Code:
    [Setup]
    AppName=eTech Online
    AppVersion=0.7
    AppVerName=eTech Online version 0.7
    AppCopyright=Copyright © eTechOnline 2007-2009
    VersionInfoVersion=0.7
    VersionInfoCompany=eTechOnline
    DefaultDirName={pf}\eTech Online
    DefaultGroupName=eTech Online
    LanguageDetectionMethod=uilanguage
    OutputDir=d:\eTech Online
    Compression=lzma/fast
    SolidCompression=yes
    LicenseFile=d:\license.txt
    
    [Languages]
    Name: en; MessagesFile: "compiler:Default.isl"
    Name: nl; MessagesFile: "compiler:Languages\Dutch.isl"
    Name: de; MessagesFile: "compiler:Languages\German.isl"
    
    [Messages]
    en.BeveledLabel=English
    nl.BeveledLabel=Nederlands
    de.BeveledLabel=Deutsch
    
    [Files]
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Final_Etech.exe"; DestDir: "{app}";
    Source: "E:\Softy\DOT_NET\.NETFramework_2.0_Installer\dotnetfx.exe"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Etech.mdb"; DestDir: "{app}";
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\AdminLogin.mdb"; DestDir: "{app}";
    Source: "d:\Readme.txt"; DestDir: "{app}"; Flags: isreadme
    
    [Run]
    Filename: "{app}\Final_Etech.exe"; Description: "{cm:LaunchProgram,MyProgram}"; Flags: nowait postinstall skipifsilent
    
    [Icons]
    Name: "{group}\eTech Online"; Filename: "{app}\Final_Etech.exe"; WorkingDir: "{app}"
    cant go further......need some help

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Question Re: Creating set up using the Inno setup

    Quote Originally Posted by Pradeep1210 View Post
    The only way I can think of is to put a password in the mdb file and use that password inside your application to open it.
    how to do this sir?

  10. #10
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    1. Open your mdb file in Ms-Access in Exclusive mode.
    2. On the menubar, click Tools > Security > Database Password
    3. Enter a password of your choice.
    4. Save and close the file.

    Now whenever you try to open the file, password would be required.

    This means your program must also provide the password to access the file.
    You should pass the UserId=Admin and password=your password in the connection string to open the file in your program.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    but sir when we install something in our pc then after installation the database does not appears in the program files............

    what is the logic behind this sir........how do they do this?

    if i use a setup an deployment project,create a setup and give it to my client then along with my projects setup,i also need to provide the .net framework setup(if it is not installed then)

    i am using inno to compactly bind all the setups needed into a single setup and then giving it to the client only a single setup.......thats why i ve been going through this hard path.......

    please suggest ........

  12. #12
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Obviously those programs are not using any mdb files. Otherwise how would you make that file available to your program??
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    may be that they used to integrate the database into their setup...........

    i think that it is very much possible to do the same using the inno.........may be sir but i am not sure about this.....

    can you please collect this bit of information for me.....

  14. #14

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    ok pradeep i tried the concept that you gave with password protecting the database and then creating the setup using the inno........i tried it out and it worked..........now the .mdb files created in the program files after the setup installation cant be opened by the users since they are asking for password..........

    thanks for the idea for password protecting the database.......

    but still i would like to know how to do the #13?

    please give some more helpful ideas pradeep

  15. #15
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Usually they don't rely on ms-access databases and its security for their work. They usually have their own custom databases and custom classes to use them.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  16. #16

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    good morning pradeep,
    may i know where do you live in india?

    what do you mean by the term "custom database" in your last post?

  17. #17

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    after a lots of trouble i did this:

    Code:
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Etech.mdb"; DestDir: "{app}";Attribs: hidden
    Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\AdminLogin.mdb"; DestDir: "{app}";Attribs: hidden
    and got it working......

    you can see an extra thing: the attribute of the database is set to hidden.....

    though it fulfils my requirement but is it the right way to hide the database?

    it is working fine on my machine but i dont know how it will react in the users machine and thats the main thing behind all these hard work

  18. #18
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    `

    Quote Originally Posted by gautamshaw View Post
    what do you mean by the term "custom database" in your last post?
    A flat file in which you manage the records yourself. Data is usually kept encrypted for security reasons.

    Quote Originally Posted by gautamshaw View Post
    you can see an extra thing: the attribute of the database is set to hidden.....

    though it fulfils my requirement but is it the right way to hide the database?

    it is working fine on my machine but i dont know how it will react in the users machine and thats the main thing behind all these hard work
    I think setting the hidden attribute on a file to secure it is the most unprofessional and unreliable solution to it. What's the use of putting your mdb file as hidden? It is even weaker way than putting a password on it, since it will be shown by just a setting change in Windows Explorer. And it may also raise a suspision to the user why the file is hidden - malacious intents etc.?`
    Last edited by Pradeep1210; Jan 17th, 2010 at 01:57 AM. Reason: `
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  19. #19

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    thats really a very very good logic pradeep.......

    at the same time i just checked the set up that i created in the inno......

    Is it possible that when the user clicks the setup file(that i made by he inno) then along with the setup installation,one more file gets automatically installed-the .net framework installer(i already included this .net framework installer while creating the setup of inno).....

    how to do this sir?

    Last edited by gautamshaw; Jan 17th, 2010 at 02:48 AM.

  20. #20
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    I think you would need to add it under the [Run] section (with appropriate options passed to the dotnetfx.exe to check that it is not already installed).
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  21. #21

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    ok i did it....it was indeed in the [Run] section pradeep....

    so all the problems are solved except the database one(though it is solved if i put a password to the database)

    but frankly speaking pradeep i dont like the database to be present in the program files after the setup installation completes....and one very very important idea that you have given is not to HIDE the database since it may come into the users mind that its some kind of virus or malecious program of his machine........

    is it possible to make the database invisible?

    if i make the database invisible then is there any problem pradeep?

    please suggest

  22. #22
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    No.. It is an access database file so it is an access database file. Whatever you do, it will remain the same. And your program must use it. So the file must necessarily be present.

    Some of the tricks people use are:
    1. Hide the file (set hidden attribute)
    2. Change the file extension so that it doesn't open in access by default on double clicking.
    3. Password protect the file.
    4. Leave access altogether and build your own database system.

    Everything except the last one (4th point) is unreliable. Hidden files can be shown, file extension doesn't matter for a clever user, passwords can be broken etc.
    The 4th method is your only way if you are too concerned about your data. But that too depends on how good/bad coder you are.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  23. #23
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Creating set up using the Inno setup

    i have got another concept

    first i will create the setup of my project using the setup and deployment project,then i will bind both te setup.exe and the .net framework exe into the inno script and finally run both of them in the [Run] script.......and thus completing my installation........

    doing this will definitely hide my .mdb in the program files after the setup installation.....


    how about this?

    Suggest about this.....

  24. #24

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    sounds good........have you tried it?

    suggest about this pradeep.....

  25. #25
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Unless you have done something wrong, the mdb file should already be inside the setup.
    I guess the problem was how to make it unavailable once the application has been installed (in Program Files) and the mdb file along with the other application files have been created there, isn't it?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  26. #26

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    by the term "build your own database system" are you trying to mean that i need to use the custom database(flat/text) files for storing the data of my application and the contents of the file should be in encrypted format?

    Is this all what i need to do to create a custom database?

    one more thing : does the flat and text file the same?

  27. #27
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Quote Originally Posted by gautamshaw View Post
    by the term "build your own database system" are you trying to mean that i need to use the custom database(flat/text) files for storing the data of my application and the contents of the file should be in encrypted format?

    Is this all what i need to do to create a custom database?

    one more thing : does the flat and text file the same?
    Yes exactly.

    But a database system is not just sorting. And it's not easy creating one. All depends on your needs.
    You would have to develop methods to extract data from it and extract it in an efficient manner. e.g. Ms-Access/other standard database systems support the SQL language to extract data from them and they support Indexes on tables for fast retrival etc.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  28. #28

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    though i am a student right now and dont know about the professionals......but may i know does the professional programmers dont use the database and they find it comfortable and secured working with the text files for storing information rather than using the database?

  29. #29
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Just as I said, it depends on what level of data security required. If suppose the cost of your entire application is just $50 or $100 would you like to spend that much amount of time coding a DBMS system??
    In most practical cases Ms-Access, Sql Server, Oracle, MySQL etc. (I mean already existing databases - tried and tested) are used.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  30. #30

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    which of the above four database that you mention is free of license.......ie,can be used free of cost?

    mysql is free and oracle is not......this much i know but what about the other two?

  31. #31
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    Ms Access is paid, but you can distribute .mdb files free.
    SQL Server has a free version - Sql Server express edition
    Oracle - Paid
    MySQL - free

    Be aware that in all of them (except Ms-Access) your database can be opened and data read freely. Ms-Access is an exception in the sense that it supports a password put on the database.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  32. #32

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    if i want to encrypt the contents of a file then what are the possile procedures for this?

    how to encrypt the file contents?

  33. #33
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Creating set up using the Inno setup

    You are repeating the same question again and again.

    If you encrypt your file (by any means), how will your program read the data from it?? You will then have to decrypt it on the fly when the application is running. And that just adds another extra unnecessary burden as the file would be created for application to read the data anyways.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  34. #34

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    you cant understand what i tried to ask pradeep....

    what are the means to encrypt the contents of a file?

  35. #35
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Creating set up using the Inno setup

    You don't need MS Access at all. Access just happens to use the Jet database engine, and Jet 4.0 has been part of Windows for a long time now.

    It is possible to use Jet directly from VB6 without ever having a copy of MS Access (both for development and deployment). A VB6 program can readily create an MDB file out of thin air when required.

    If you require security the Jet security model is actually pretty good. The problem is that it can be complex, and to make it simple for MS Access users a lot of things default to a pretty insecure state. The Microsoft Access Security Apparatus provides a nice overview.


    An alternative might be the ACE database engine introduced with MS Access 12.0 (2007). ACE can be acquired from Microsoft for free and appears to be redistributable. ACE can handle both .MDB and .ACCDB databases and can be used much like Jet 4.0 can. ACCDBs do not support the Jet MDB security model, but they do offer more advanced data encryption than Jet does.

    Data encryption does indeed add overhead. This may not be a problem for your application though unless it makes very heavy use of the data.


    Many applications use Jet MDBs with no encryption or security. Often they'll use an alternate file extension as already described (store.bin instead of store.mdb for example).

    Another thing they'll sometimes do is install the MDB file into a folder under COMMONAPPDATA. The installer needs to create this folder, set its security to allow it to be read/write for Everyone, and copy the initial MDB file into it (or let the program create one there on first run if need be). Most users will never go hunting there anyway.

    You never put an MDB file or other data file that requires updating by the program into Program Files anyway. On most systems that is a location secured against writing by users, and starting with Vista even "admin" users don't have write access without elevation.


    What's so secret anyway?

  36. #36
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Creating set up using the Inno setup

    One way you might encrypt data yourself is to use the crypto API (CAPI) or its COM wrapper (CAPICOM) which is less work in VB6.

  37. #37

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Question Re: Creating set up using the Inno setup

    Quote Originally Posted by dilettante View Post
    One way you might encrypt data yourself is to use the crypto API (CAPI) or its COM wrapper (CAPICOM) which is less work in VB6.
    is it posible to encrypt the data using these in vb.net?

    can you refer me a site or some ebooks wherefrom i can learn these encryption as well as decryption methods?

  38. #38

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    "You never put an MDB file or other data file that requires updating by the program into Program Files anyway. " :

    why?Please explain......

  39. #39

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Creating set up using the Inno setup

    when i create a setup and deployment project in .net,then the setup that is finally created is basically an integration of the exe and the .mdb file,is not it?

    and when we install the setup then an installation file appears in the program files,is not it?

  40. #40
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Creating set up using the Inno setup

    Quote Originally Posted by gautamshaw View Post
    "You never put an MDB file or other data file that requires updating by the program into Program Files anyway. " :

    why?Please explain......
    Program Files folders are meant to be read-only for users. This helps avoid the users accidentally deleting critical files or altering them. It also prevents malware infection because the EXEs, DLLs, etc. can't be overwritten by malicious code.

    Installers can place individual files wherever they need to go.


    The .Net Framework has encryption namespaces that wrap the crypto API.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width