faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 18 people (56%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Installer: Microsoft Windows: Inno Setup: Create: How to create setup file?

Feb 19th, 2009 13:14
alex martin, John Martin, Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 10 April 2005 - 08:29 pm ----------------------
Installer: Microsoft Windows: Inno Setup: Create: How to create setup 
file?
The idea is that one or more files (e.g. executables or initialization
files) have to be copied to certain directories. You inform which files
and where this directories are.
You put this information in a text file with extension .iss file which
you create.
After you compile this .iss file, with your given information one file
(=setup.exe) is created, which contains all your files packed together,
together where to install them, so that they can be unpacked to the
correct directories on the computer on which you install it.
===
Steps: Overview:
 1. -Create a setup file by taking e.g. a template like example1.iss
     (this file (or similar files) is present in the directory of
      Inno Setup after you installed it)
 2. -Open your favorite text editor
     1. -E.g.
          notepad
     2. -E.g.
          Semware TSE
 3. -Change the necessary information and save that file
     1. -The idea is that you tell it which source files
         to copy to which destination directory.
         To tell where this destination directory is.
         you use general alias abbreviations (because that information
         varies e.g. depending on the operating system version, and
         user name login) like
       {app} =
         The application directory, which the user selects on the
         Select Destination Location page of the wizard.
         For example: If you used {app}\MYPROG.EXE on an entry and the
         user selected "C:\MYPROG" as the application directory, Setup
         will translate it to "C:\MYPROG\MYPROG.EXE".
       {userappdata} =
        c:\documents and settings\<user name>\application data
       {pf} =
        The path of the system's Program Files directory, typically
        "C:\Program Files".
       {win}
        The system's Windows directory.
        For example:
         If you used {win}\MYPROG.INI on an entry and the system's
         Windows directory is "C:\WINDOWS", Setup will translate it to
         "C:\WINDOWS\MYPROG.INI".
       {sys}
        The system's Windows System directory (System32 on Windows NT
        platforms).
         For example:
          If you used {sys}\CTL3D32.DLL on an entry and the system's
          Windows System directory is "C:\WINDOWS\SYSTEM", Setup will
          translate it to "C:\WINDOWS\SYSTEM\CTL3D32.DLL".
       {src}
        The directory in which the Setup files are located.
         For example:
          If you used {src}\MYPROG.EXE on an entry and the user is
          installing from "S:\", Setup will translate it to
          "S:\MYPROG.EXE".
       {sd}
         System Drive. The drive Windows is installed on, typically
         "C:". On Windows NT platforms, this directory constant is
         equivalent to the SystemDrive environment variable.
       {cf}
         Common Files. The path of the system's Common Files directory,
         typically "C:\Program Files\Common Files".
       {tmp}
         Temporary directory. This is not the value of the user's TEMP
         environment variable. It is a subdirectory of the user's
         temporary directory which is created at installation startup
         (with a name like "C:\WINDOWS\TEMP\IS-xxxxx.tmp"). All files
         and subdirectories in this directory are deleted when the
         setup program exits. This is primarily useful for extracting
         files that are to be executed in the [Run] section but are not
         needed after the installation.
       {fonts}
         Fonts directory. Normally named "FONTS" under the Windows
         directory.
         1. -Search in the Inno Setup program 'help' e.g. for
              userappdata
             to get more help about this abbreviations
     3. Your .iss text file contains several sections
        1. [Setup]
            gives e.g. version information
        2. [Files]
            here you tell which files (Source) have to
            be copied to where (DestDir)
        3. [Icons]
            here you tell where to install icons
            to launch your program
        4. [Registry]
            here you can possibly set your registry
            values
             {reg:HKxx\SubkeyName,ValueName|DefaultValue}
        4. [Run]
            here you tell if you have to ask to run your
            program after installation
 4. -Put this .iss text file in some directory
     1. -E.g. in the source directory of your own files
              (because then you know yourself where
               to find it easy, as you keep all your
               files together)
 5. -Compile this .iss text file
     1. -Run the command line executable
          iscc.exe <your script filename>
        or the full path, currently by default
      c:\program files\inno setup 4\iscc.exe <your script filename>
      e.g.
       c:\program files\inno setup 4\iscc.exe example1.iss
      e.g.
       c:\program files\inno setup 4\iscc.exe myinstaller.iss
     2. -Note
         You will usually have to give the full path to your .iss file,
         otherwise it will not be found by the program iscc.exe
 5. -After successful compilation of your .iss text file,
     this will create 1 file (containing all your files,
     so that they can be unpacked to the destination computer
     easily, as you only have one file to take care of)
     You could rename this file then to your specific
     installer name (e.g. myinstaller.exe)
      setup.exe
     in the subdirectory (in the directory where you did put your .iss
     text file)
      output
 6. -You can then e.g. burn your setup.exe on CD or put it
     on the Internet for download purposes, or copy it otherwise
     to the other computer(s)
 7. -They then have to run this program
      setup.exe
     on the destination computer to install your program
 8. -After running this installation (by running this 'setup.exe'
     installation wizard) it will e.g. have copied the files to the
     destination directories, installed icons, added some registry
     values, installed an uninstaller entry in 'Add/Remove' programs,
     and asked to run your main executable program
===
Internet: see also:
---http://www.webs4soft.com/Links4.htm
http://hotelsinindia.webs4soft.com/hotels-in-delhi.htm
http://indiatravel.webs4soft.com/Resources.htm
http://indianmovies.webs4soft.com/Kuch-Kuch-Hota-Hai.htm
http://real-estate.webs4soft.com/property-tips.htm
http://foodhealthcaretips.webs4soft.com/Resources.htm
http://www.websitecompanyindia.com/seo-Links.htm
http://www.websitecompanyindia.com/seo-Links.htm
http://indianjewelry.websitecompanyindia.com/dimond-ring.htm
http://www.bestindiaeducation.com/Link-Exchange.htm
http://bestjobconsultant.bestindiaeducation.com/PARTNERS.htm
http://eloctronicandmobilestore.bestindiaeducation.com/mobile-links.htm
http://easyloanservice.bestindiaeducation.com/Home-Insurance-Links.htm
http://www.rajhealthcenter.com/Cosmetic-Surgery.htm
http://creativebusinessgroup.rajhealthcenter.com/Business-Links.htm
http://onlinefreeinternetgames.rajhealthcenter.com/Games-Links.htm
http://top-beauty-tips.rajhealthcenter.com/Beauty-Links.htm
http://www.indiatourpoint.com/Travel-Links.htm
http://four-wheeler-buy-tips.indiatourpoint.com/Auto-Links.htm
http://watch-online-free-cricket-match.indiatourpoint.com/Sports-Links.htm
http://directory.indiatourpoint.com/
http://www.bestlifeindia.com/Resources1.htm
http://directory.bestlifeindia.com/
http://freeorkutscrapandsms.bestlifeindia.com/SMS-Links.htm
http://onlinegiftshop.bestlifeindia.com/Gift-Links.htm
http://www.freemusicpoint.com/Music-Links.htm
http://love-dating.freemusicpoint.com
http://online-art-presentation.freemusicpoint.com/
http://onlinefurnitureshop.freemusicpoint.com/
http://automobile.easyfindindia.com/
http://bollywood.easyfindindia.com/
http://cloth-shopping.onlineindiadiary.com/
http://easyfind.j4ulive.com/
http://www.onlineindiadiary.com/
http://finance-guide.easyfindindia.com/
http://freelance-jobs.onlineindiadiary.com/
http://gadgets.easyfindindia.com/
http://www.easyfindindia.com/
http://gift-ideas.easyfindindia.com/
http://health-fitness.easyfindindia.com/
http://home-improvement.j4ulive.com/
http://homedecor.easyfindindia.com/
http://mortgage.onlineindiadiary.com/
http://online-business.j4ulive.com/
http://online-education.j4ulive.com/
http://onlinein.j4ulive.com/
http://pets-online.easyfindindia.com/
http://realestate.easyfindindia.com/
http://sports-in-india.easyfindindia.com/
http://travel-guide.easyfindindia.com/
http://wedding-shopping.j4ulive.com/
http://www.j4ulive.com/