InnoSetup Component Installer

    The Script file

  Included is a template for the script file. It includes all the necessary [Code] and placeholders for necessary keys in the script. Copy Basic.iss to the \Setup folder in your development folder structure shown previously and rename it to something more meaningful.

Setup Folder

Setting up the basic script file for a component

  Next open the script file with ISTool and go to the Project>Setup Option>Compiler. menu to start to customize the script for the component.

Setting up the basic script file compiler options for a component

 

Setting up the basic script file application options for a component

 

 

Setting up the basic script file application directory options for a component

 

Setting up the basic script file program group options for a component

 

  Once the basic options are changed it is time to modify the Registry entries. Recall that the [RegKey] name in the INI file must match this path, not including HKCU\Software.

Setting up the basic script file Registry entries for a component

 

  Now it is time for the files. There are always two core files, the Setup.ini that is component set specific and the installer DLL, which is common. Due to a bug in InnoSetup we must copy the DLL to a common place, such as the system folder and allow all component packages to use it for install and uninstalling. The DLL is only 150k so not uninstalling it is not a problem.

Setting up the basic script file core files for a component.
 NOTE that the DestDir of the DLL should be {sys}

 

  Now we can copy the folders from our component development folder to ISTools. Drag and Drop works great. Note that ISTools will ask if you want to create the folders. Simply click OK for all the dialog boxes that appear (one for each folder).

Setting up the basic script file source files for a component.

 

  The script is now ready to compile. Click the compile speed button and let InnoSetup do its thing!

Ready to Compile

Ready to compile script for the VirtualTreeview component.

 


mustangpeak.net

  Last Modified on: