Flyguy
03-25-2002, 02:57 PM
Read this (http://www.jrsoftware.org/ishowto.phtml?a=vb) page on the INNO website first!
After playing a while with INNO setup and reading all the posts on the forum I decided to write down the setup file list I use when creating a runtime installer only.
I decided to create a single runtime installer because it includes all the controls I most of the time use in the program I distribute.
Advantage, only 1 setup (installer) to maintain.
We need to include the basic VB6 runtime files and the other controls we want to use.
Don't use the files from your own system directory! But use the original files from the Microsoft website.
Download the original VBRUN60sp5.exe (http://download.microsoft.com/download/vb60pro/Redist/sp5/WIN98Me/EN-US/vbrun60sp5.exe) from the MS website.
Create a directory c:\vbfiles
Extract the files, don't double click VBRUN60sp5.exe, but run it from the commandline: vbrun60sp5.exe /c /t:c:\vbfiles
A quick summary of the files needed when using the INNO setup plus how it will look in the INNO installer file (*.iss)
[Setup]
AppName=VB Runtimes
AppVerName=VB Runtimes 1.0
AppPublisher=YourCompany Name
AppPublisherURL=http://www.yoursite.com
AppSupportURL=http://www.yoursite.com
AppUpdatesURL=http://www.yoursite.com
AdminPrivilegesRequired=1
; CreateAppDir=no -> To create a runtime installer only!
CreateAppDir=no
; uncomment the following line if you want your installation to run on NT 3.51 too.
; MinVersion=4,3.51
[Files]
; begin VB system files
Source: "c:\vbfiles\stdole2.tlb"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "c:\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\oleaut32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\olepro32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\asycfilt.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile
Source: "c:\vbfiles\comcat.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
;
; Specific control you included in your project(s)
; always use the following parameters for an OCX:
; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
Source: "C:\WINNT\system32\COMDLG32.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\riched32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile
Source: "C:\WINNT\system32\RICHTX32.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\MSCOMCTL.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
; Some external controls I use all of the time
;
Source: "C:\WINNT\system32\VSPRINT7.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\vsPDF.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\Vsflex7L.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
; a normal DLL for data compression, which I use a lot
;
Source: "C:\WINNT\system32\zlib.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile
After playing a while with INNO setup and reading all the posts on the forum I decided to write down the setup file list I use when creating a runtime installer only.
I decided to create a single runtime installer because it includes all the controls I most of the time use in the program I distribute.
Advantage, only 1 setup (installer) to maintain.
We need to include the basic VB6 runtime files and the other controls we want to use.
Don't use the files from your own system directory! But use the original files from the Microsoft website.
Download the original VBRUN60sp5.exe (http://download.microsoft.com/download/vb60pro/Redist/sp5/WIN98Me/EN-US/vbrun60sp5.exe) from the MS website.
Create a directory c:\vbfiles
Extract the files, don't double click VBRUN60sp5.exe, but run it from the commandline: vbrun60sp5.exe /c /t:c:\vbfiles
A quick summary of the files needed when using the INNO setup plus how it will look in the INNO installer file (*.iss)
[Setup]
AppName=VB Runtimes
AppVerName=VB Runtimes 1.0
AppPublisher=YourCompany Name
AppPublisherURL=http://www.yoursite.com
AppSupportURL=http://www.yoursite.com
AppUpdatesURL=http://www.yoursite.com
AdminPrivilegesRequired=1
; CreateAppDir=no -> To create a runtime installer only!
CreateAppDir=no
; uncomment the following line if you want your installation to run on NT 3.51 too.
; MinVersion=4,3.51
[Files]
; begin VB system files
Source: "c:\vbfiles\stdole2.tlb"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "c:\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\oleaut32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\olepro32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\vbfiles\asycfilt.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile
Source: "c:\vbfiles\comcat.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
;
; Specific control you included in your project(s)
; always use the following parameters for an OCX:
; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
Source: "C:\WINNT\system32\COMDLG32.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\riched32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile
Source: "C:\WINNT\system32\RICHTX32.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\MSCOMCTL.OCX"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
; Some external controls I use all of the time
;
Source: "C:\WINNT\system32\VSPRINT7.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\vsPDF.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\Vsflex7L.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
;
; a normal DLL for data compression, which I use a lot
;
Source: "C:\WINNT\system32\zlib.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile