Software Distributor
Free Copy Protection
Software Downloads
Help>How To Install Software Sample 1
Software Distributor
Copy Protection
Menu
Info
Company
Resources
How To Install Software Using Inno Setup

OK, you have written your program, added ShareGuard Copy Protection and are ready to create your setup program. How do you create a setup program? First you obtain setup software, define all of the files to be loaded into the setup, compile the setup and then compress the setup. The following provides all of the details on how to install software for free.

Compressing Your SETUP.EXE:
If you do not have WINZIP then get it from here for FREE EVALUATION.

If you want a totally free older version of WINZIP then get it from here for FREE.

Obtaining Setup Installation Software:
Inno Setup software can be downloaded for free from JR Software.org.

The following is sample code and uses ShareGuard as an example. The Inno Setup creates a SETUP.EXE which can then be compressed into ZIP format for downloading.

NOTE: The following listing should be saved in ISS format for installing software using the INNO Setup program. Change all of the appropriate variables to accomodate your application.

; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=ShareGuard
AppVerName=ShareGuard V1.1
AppCopyright=Copyright (C) 1995-2003 Zapper Software, 510862 B.C. Ltd.
AppPublisher=Zapper Software
AppPublisherURL=http://www.zappersoftware.com/
AppSupportURL=http://www.zappersoftware.com/
AppUpdatesURL=http://www.zappersoftware.com/
DefaultDirName={pf}\ShareGuard
DefaultGroupName=ShareGuard
AllowNoIcons=yes
AlwaysCreateUninstallIcon=yes
LicenseFile=C:\ZSSHGD11\LICENSE.TXT
InfoBeforeFile=C:\ZSSHGD11\README.TXT
InfoAfterFile=C:\ZSSHGD11\START.TXT
UninstallDisplayIcon={app}\ZSSGLS.exe
; uncomment the following line if you want your installation to run on NT 3.51 too. MinVersion=4,3.51

[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4
Name: "quicklaunchicon"; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4; Flags: unchecked

[Files]
Source: "ZSSGLS.exe"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "ZSSGL.exe"; DestDir: "{app}"; CopyMode: alwaysoverwrite

Source: "ZSSGK.exe"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "ZSSGCRC.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "help\index.html"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\contents.html"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite

Source: "help\help.html"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\screenshots.html"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\style.css"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssgk.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssgl.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglskbfp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglskp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglslbfp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglslp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglsmp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sssglstp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\sszb.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssgk.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssgl.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglskbfp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglskp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglslp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglslbfp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglsmp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglssp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsssglstp.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\tsszb.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "help\zapper.jpg"; DestDir: "{app}\help\"; CopyMode: alwaysoverwrite
Source: "images\splash1.jpg"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash2.jpg"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash3.jpg"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash1.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash2.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash3.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash4.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash5.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash6.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "images\splash7.bmp"; DestDir: "{app}\images\"; CopyMode: alwaysoverwrite
Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
Source: "License.txt"; DestDir: "{app}"; Flags: isreadme
Source: "Start.txt"; DestDir: "{app}"; Flags: isreadme
Source: "pad_file.xml"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "pad_file.htm"; DestDir: "{app}"; CopyMode: alwaysoverwrite

[INI]
Filename: "{app}\ShareGuard.url"; Section: "InternetShortcut"; Key: "URL"; String: "http://www.zappersoftware.com/"
Filename: "{app}\ShareGuardHelp.url"; Section: "InternetShortcut"; Key: "URL"; String: "file:///{app}/help/index.html"

[Icons]
Name: "{group}\ShareGuard Locksmith"; Filename: "{app}\ZSSGLS.exe"; WorkingDir: "{app}"
Name: "{group}\ShareGuard Help"; Filename: "{app}\ShareGuardHelp.url"
Name: "{group}\ShareGuard on the Web"; Filename: "{app}\ShareGuard.url"
Name: "{userdesktop}\ShareGuard Locksmith"; Filename: "{app}\ZSSGLS.exe"; WorkingDir: "{app}"; MinVersion: 4,4; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\ShareGuard Locksmith";
Filename: "{app}\ZSSGLS.exe"; WorkingDir: "{app}"; MinVersion: 4,4; Tasks: quicklaunchicon

[Registry]
; Start "Software\My Company\My Program" keys under HKEY_CURRENT_USER
; and HKEY_LOCAL_MACHINE. The flags tell it to always delete the
; "My Program" keys upon uninstall, and delete the "My Company" keys
; if there is nothing left in them.
Root: HKCU; Subkey: "Software\Zapper Software"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Settings"; ValueType: string; ValueName: "Path"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Version"; ValueType: string; ValueName: "VersionNo"; ValueData: "1.1"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Options"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Options\Fonts"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Options\Windows"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; ValueType: string; ValueName: "CurrentDir"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; ValueType: string; ValueName: "InitialDir"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; ValueType: string; ValueName: "InitialDir"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; ValueType: string; ValueName: "PathApp"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Path"; ValueType: string; ValueName: "PathProject"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Zapper Software\ShareGuard\Tools"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Zapper Software"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Zapper Software\ShareGuard"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Zapper Software\ShareGuard\Settings"; ValueType: string; ValueName: "Path"; ValueData: "{app}"
Root: HKLM; Subkey: "Software\Zapper Software\ShareGuard\Version"; ValueType: string; ValueName: "VersionNo"; ValueData: "1.1"
Root: HKCR; Subkey: ".sgp"; ValueType: string; ValueName: ""; ValueData: "ShareGuard.Project"; Flags: uninsdeletekey
Root: HKCR; Subkey: ".sgp"; ValueType: string; ValueName: "Content Type"; ValueData: "ShareGuard Project Data"; Flags: uninsdeletekey
Root: HKCR; Subkey: ".sgp\ShellNew"; ValueType: string; ValueName: "NullFile"; ValueData: ""; Flags: uninsdeletekey
Root: HKCR; Subkey: "ShareGuard.Project"; ValueType: string; ValueName: ""; ValueData: "ShareGuard Locksmith"; Flags: uninsdeletekey
Root: HKCR; Subkey: "ShareGuard.Project\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\ZSSGLS.EXE,0"
Root: HKCR; Subkey: "ShareGuard.Project\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\ZSSGLS.EXE"" ""%1"""

[Run]
Filename: "{app}\ZSSGLS.exe"; Description: "Launch ShareGuard Locksmith";
WorkingDir: "{app}"; Flags: nowait postinstall skipifsilent

[UninstallDelete]
Type: files; Name: "{app}\ShareGuard.url"
Type: files; Name: "{app}\ShareGuardHelp.url"


If you create any special filetypes in your application then please be sure to read this article and register your new filetype with FileExt.com

Written by William H. Bradshaw
Get The FREE Software:
Installation Summary:

- Download Setup Software

- Create setup file

- Compile setup file

- Compress setup.exe into setup.zip

Products and Services for Windows and IBM

Software Distributor

Copyright © 1995-2002 Zapper Software 510862 B.C. Ltd. All rights reserved. Privacy Policy
1