Here is an example of a small script file for a project that uses the crystal reports viewer. Hope it helps.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=My Program
AppVerName=My Program 1.0.0
DefaultDirName={pf}\My Program
DisableDirPage=yes
DefaultGroupName=My Program
OutputBaseFilename=My Program setup
LicenseFile=D:\Projects\General\Licence agreement.rtf
WizardStyle=modern
; 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
[Files]
; begin VB system files
Source: "D:\VB Files\stdole2.tlb"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "D:\VB Files\msvbvm60.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "D:\VB Files\oleaut32.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "D:\VB Files\olepro32.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "D:\VB Files\asycfilt.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile
Source: "D:\VB Files\comcat.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
; begin main exe and any dll's
Source: "D:\Projects\SPW Labels\VB Code\Myexe.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\Projects\SPW Labels\VB Code\Read Me.htm"; DestDir: "{app}"; Flags: ignoreversion
; end main exe and any dll's
; begin crystal report files
Source: "C:\Program Files\Seagate Software\Shared\sscsdk80.dll"; DestDir: "{sys}"; Flags: restartreplace sharedfile
Source: "C:\Program Files\Seagate Software\Report Designer Component\craxddrt.dll"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Program Files\Seagate Software\Report Designer Component\craxdrt.dll"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Program Files\Seagate Software\Viewers\ActiveXViewer\crviewer.dll"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\WINNT\system32\p2smon.dll"; DestDir: "{sys}"; Flags: sharedfile
Source: "C:\WINNT\system32\Crpaig80.dll"; DestDir: "{sys}"
; end crystal report files
; START MDAC
Source: "D:\Downloads\Mdac 2.6\mdac_typ.exe"; DestDir: {tmp}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0; Flags: ignoreversion
; END MDAC
[Icons]
Name: "{group}\My Program"; Filename: "{app}\Myexe.exe"
Name: "{group}\Read Me"; Filename: "{app}\Read Mel.htm"
Name: "{userdesktop}\My Program"; Filename: "{app}\Myexe.exe"; MinVersion: 4,4; Tasks: desktopicon
Name: "{group}\Uninstall My Program"; Filename: "{uninstallexe}"
[Run]
; START MDAC
Filename: {tmp}\mdac_typ.exe; Parameters: "/Q /C:""setup /QNT"""; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
; END MDAC
Thanks and Good Luck!
zemp