Print Preview ActiveX Active Users: 41 / Visits Today: 381
Highest Active Users: 138
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
 All Forums
 Print Preview
 Tips & Tricks
 Inno Setup Example

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wbgookin Posted - 09/08/2004 : 21:41:00
Here is an example of an InnoSetup script file. Note that your
VB program may have more or fewer dependencies than what I show
here. This is just an example installer I made quickly.

Also note that I have replaced the real locations of the VB
support files with "c:\vb6redist\". You may need to do some
hunting for the files to include.

<legal disclaimer>
You should check the redistribution agreements for all the
files you include with your programs. I'm not endorsing
distributing any files shown in the example. You accept the
risk of messing things up if you use the program. I'm not
responsible for anything, and I haven't tested this code for
completeness.
</legal disclaimer>

That being said, here's an example code that was (mostly)
created by ISTool and the Inno Setup Wizard:

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

[Setup]
AppName=YourApplication
AppVerName=YourApplication 3.0.27
AppPublisher=Joe Schmoe and Associates
AppPublisherURL=http://www.yourwebsite.com
AppSupportURL=http://support.yourwebsite.com
AppUpdatesURL=http://www.yourwebsite.com
DefaultDirName={pf}\YourApp
DefaultGroupName=Yourapp
AllowNoIcons=true
LicenseFile=C:\vb6redist\readme.rtf
;Password=nothing
;InfoBeforeFile=C:\vb6redist\infobefore.rtf
;UserInfoPage=yes
AppCopyright=2004, Joe Schmoe and Associates
;AppMutex=YourApplication

[Tasks]
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional icons:
; NOTE: The following entry contains English phrases ("Create a Quick Launch icon" and "Additional icons"). You are free to translate them into another language if required.
Name: quicklaunchicon; Description: Create a &Quick Launch icon; GroupDescription: Additional icons:; Flags: unchecked

[Files]
Source: c:\programming\yourapp\bin\yourapp.exe; DestDir: {app}; Flags: ignoreversion
Source: c:\programming\yourapp\bin\templates\template1.tpl; DestDir: {app}\templates
Source: c:\programming\yourapp\bin\templates\template2.tpl; DestDir: {app}\templates
Source: c:\programming\yourapp\bin\helpfile.chm; DestDir: {app}
Source: c:\programming\yourapp\bin\helpfile.pdf; DestDir: {app}
Source: c:\programming\yourapp\yourapp.url; DestDir: {app}
; begin VB system files
; (Note: Scroll to the right to see the full lines!)
Source: c:\vb6redist\stdole2.tlb; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regtypelib promptifolder
Source: c:\vb6redist\oleaut32.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver promptifolder
Source: c:\vb6redist\olepro32.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver promptifolder
Source: c:\vb6redist\asycfilt.dll; DestDir: {app}; Flags: restartreplace uninsneveruninstall sharedfile
Source: c:\vb6redist\comcat.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver promptifolder
Source: c:\vb6redist\msvbvm60.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: c:\vb6redist\comdlg32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver
Source: c:\vb6redist\mscomctl.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver
Source: c:\vb6redist\Tabctl32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver
Source: C:\vb6redist\MSSTDFMT.DLL; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: C:\vb6redist\richtx32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver
Source: C:\vb6redist\Preview5.dll; DestDir: {app}; Flags: regserver overwritereadonly
Source: C:\vb6redist\ijl11.dll; DestDir: {sys}; Flags: regserver sharedfile promptifolder uninsneveruninstall restartreplace noregerror
Source: C:\vb6redist\ZLIB.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile promptifolder noregerror
; end VB system files
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[INI]
Filename: {app}\yourapp.url; Section: InternetShortcut; Key: URL; String: http://www.yourwebsite.com

[Icons]
Name: {group}\YourApplication 3.0; Filename: {app}\yourapp.exe; IconIndex: 0
; NOTE: The following entry contains an English phrase ("on the Web"). You are free to translate it into another language if required.
Name: {group}\YourApplication on the Web; Filename: {app}\yourapp.url
; NOTE: The following entry contains an English phrase ("Uninstall"). You are free to translate it into another language if required.
Name: {group}\Uninstall YourApplication 3.0; Filename: {uninstallexe}
Name: {userdesktop}\YourApplication 3.0; Filename: {app}\yourapp.exe; Tasks: desktopicon; IconIndex: 0
Name: {group}\YourApplication User's Guide; Filename: {app}\helpfile.pdf
Name: {userdesktop}\YourApplication User's Guide; Filename: {app}\helpfile.pdf

[Run]
; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required.
Filename: {app}\yourapp.exe; Description: Launch YourApplication; Flags: nowait postinstall skipifsilent

[UninstallDelete]
Type: files; Name: {app}\yourapp.url

[Registry]
Root: HKCU; Subkey: Software\YourRegDir
Root: HKLM; Subkey: Software\YourRegDir

[_ISTool]
UseAbsolutePaths=true


Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.02