|
-
Jun 3rd, 2006, 10:42 PM
#1
[RESOLVED] Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
I'm creating an Installer package and I have some doubts and not much time, so here they are, thanks to everyone who take some time to read this:
I'm using Inno Setup to create my package, but I don't have Inno Script so I'm trying to translate a Setup.Lst file created with P&W Wizard, this is the file generated:
Code:
[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,7/15/00 12:00:00 AM,101888,6.0.84.50
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,6/1/98 12:00:00 AM,22288,4.71.1460.1
[email protected],$(WinSysPath),,$(Shared),10/1/00 7:00:00 PM,119568,6.0.89.88
[email protected],$(WinSysPathSysFile),$(TLBRegister),,6/2/99 7:00:00 PM,17920,2.40.4275.1
[email protected],$(WinSysPathSysFile),,,3/7/99 7:00:00 PM,147728,2.40.4275.1
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,3/7/99 7:00:00 PM,164112,5.0.4275.1
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,4/11/00 7:00:00 PM,598288,2.40.4275.1
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,2/23/04 8:42:40 PM,1386496,6.0.97.82
[Setup1 Files]
[email protected],$(AppPath),,,4/16/03 1:47:14 AM,3262,0.0.0.0
File2=@MDAC_TYP.EXE,$(AppPath),,,8/7/98 12:00:00 AM,6477888,4.72.3110.0
[email protected],$(WinSysPath),,$(Shared),7/28/98 12:00:00 AM,34816,6.0.81.63
[email protected],$(WinSysPathSysFile),,,5/8/98 12:00:00 AM,174352,4.0.993.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,212240,6.1.97.82
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),4/1/03 3:35:16 PM,122880,2.1.0.10
[email protected],$(WinSysPath),,$(Shared),7/27/98 7:00:00 PM,140800,6.0.81.63
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/8/04 8:00:00 PM,1081616,6.1.97.82
[email protected],$(WinSysPath),,$(Shared),7/28/98 12:00:00 AM,100352,6.0.80.22
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/8/04 8:00:00 PM,609824,6.0.81.5
[email protected],$(WinSysPath),,$(Shared),7/28/98 12:00:00 AM,21504,6.0.81.63
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,224016,6.1.97.82
[email protected],$(WinSysPath),,$(Shared),7/28/98 12:00:00 AM,33280,6.0.81.63
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,152848,6.1.97.82
[email protected],$(WinSysPath),,$(Shared),7/27/98 7:00:00 PM,40448,6.0.81.63
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,260880,6.1.97.82
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),1/26/03 1:41:24 PM,40960,1.1.0.3
[email protected],$(WinSysPath),,$(Shared),7/28/98 12:00:00 AM,66048,6.0.81.63
[email protected],$(WinSysPath),,$(Shared),4/3/00 12:52:54 PM,151552,6.0.88.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),2/23/04 12:00:00 AM,397824,6.1.97.82
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),4/11/02 9:03:02 PM,106496,2.5.0.0
[email protected],$(WinSysPath),,$(Shared),7/30/98 7:00:00 PM,6656,6.0.81.63
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),2/22/04 8:00:00 PM,119808,6.1.97.82
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),8/19/04 7:42:27 PM,220160,6.0.2900.2180
[email protected],$(WinSysPath),,$(Shared),8/19/04 7:42:15 PM,4608,5.1.2600.2180
[email protected],$(WinSysPath),,$(Shared),7/4/96 2:30:26 PM,44032,0.0.0.0
[email protected],$(AppPath),,,6/3/06 7:09:42 AM,2035712,1.0.0.0
Question 1)
This program uses RDO (Remote Data Object) to work with DBF files, there you can see RDO20ES.DLL, RDOCURS.DLL and MSRDO20.DLL. So, I need to add them 1 by 1 to my Inno Setup package or they are installed with MDAC?
Question 2) How do I know which version of MDAC should be installed (there is nothing about MDAC in my project references or components, i'm just using RDO).
Question 3) Should I add MDAC to my package as its explained in the ISS file in this link, or it's not needed?
http://www.jrsoftware.org/iskb.php?dcommdac
Question 4) My project uses ComCtl32 (SP2), but this file shouldn't be distributed, should I prompt the user to download it? Or it's not needed?
In the Inno Setup Site, it says: "If your application requires an updated version of COMCTL32.DLL, you can direct your users to download the COMCTL32 update from Microsoft", but, how do I know if my application requires an updated version of COMCTL32.DLL?
Question 5) I already added the VB runtime files to the package, about the rest you can see in that list, there is something special I should know? or I can simply add all of them to my Inno Setup Package as it's explained here..?
Translating a SETUP.LST file created with the P&D wizard
Question 6) I can see Inno Setup is creating just 1 file ex: Installer.Exe, but, how do I add files to be copied but not added to the EXE file? I mean: The installer will be in the CD and another folder will be in that CD with files inside, that folder will be copied to AppPath during installation from where it is, I don't want that folder to be compressed into the package when I compile my ISS package.
Thanks!
Last edited by jcis; Jun 3rd, 2006 at 10:46 PM.
-
Jun 3rd, 2006, 11:14 PM
#2
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
If you want to use ********** it's free for three days. You will get get your script generated and it will solve most (if not all) of your issues. The Automatic OS Updater can be of use to you also.
As far as MDAC's you should install the latest (2.8) and depending on what else you are doing you may need 2.6 and the Jet SP.
Q-1 Those files should be in the MDAC.
Q-2 You should just install the MDAC that your application needs and not worry about what is already installed.
Q-3 Yes, add the correct MDAC to your system
Q-4 Don't distribute, use the SP to distribute
Q-5 There is something you need to know about the universal Runtime files. Don't blindly install the ones that are on your system.
Q-6 You can get Inno Setup to not put files into the installation and just copy them from the installation source by using the flag external
-
Jun 3rd, 2006, 11:40 PM
#3
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
Thanks Randem
-
Jun 4th, 2006, 05:02 AM
#4
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
Randem, about that external flag in Inno Setup: It seems that it works only for files, I'm trying to copy a whole folder with many files inside like this..
Code:
Source: "srtm\*"; DestDir: "{app}\srtm\"; Flags: ignoreversion external
But when I run the compiled package and the installation execute that line, it fires the error: "Source file doesn't exists".
Is there any way to specify that it's a folder and not a file?
-
Jun 4th, 2006, 01:49 PM
#5
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
Yes, That source will not exist. Where is it copying it from. There is no root. You need a full source location. It will work on a folder.
Last edited by randem; Jun 4th, 2006 at 02:01 PM.
-
Jun 4th, 2006, 02:21 PM
#6
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
This SRTM folder has many files inside (Srtm compressed heightmaps), it's something about 500 MB, so it would be better if I could add that folder to the CD separately, else my installer file will be too big, so I'm trying to configure Inno Setup to copy that folder (including all files inside) from the CD to the path of my app. It seems this external flag is what I need, but I can't make it work with a folder.
About my script, here is it (complete)
Code:
;==============
;MyProject Installer
;==============
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=MyProject
AppVerName=MyProject 2.0
AppVersion= 2.0
AppPublisher=Me
AppCopyright=Copyright 2006, Todos los derechos reservados.
DefaultDirName={pf}\MyProject
DefaultGroupName=MyProject
OutputDir=C:\MyProjectSource\Instalador
WizardImageFile=C:\MyProjectSource\Instalador\Imagen instalador.bmp
WizardSmallImageFile=C:\MyProjectSource\toolbar\LogoPrint.bmp
UninstallDisplayIcon=C:\MyProjectSource\Instalador\Redist\PACKAGE16.ico
OutputBaseFilename=Instalador
SetupIconFile=C:\MyProjectSource\proreicon.ico
Compression=lzma
SolidCompression=yes
PrivilegesRequired=admin
[Languages]
Name: "Spanish"; MessagesFile: "compiler:\languages\SpanishArg-3-5.1.0.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: MDAC; Description: Microsoft Data Access Components; Flags: checkedonce restart; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
[Files]
Source: "C:\MyProjectSource\PRO-RE.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\MyProjectSource\3d\*"; DestDir: "{app}\3d\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\MyProjectSource\Ayuda\*"; DestDir: "{app}\Ayuda\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\MyProjectSource\Interferente\*"; DestDir: "{app}\Interferente\"; Flags: ignoreversion recursesubdirs createallsubdirs
;Problem in the following line..
Source: srtm\*.*; DestDir: "{app}\srtm\"; Flags: ignoreversion external
Source: "C:\MyProjectSource\myProjecticon.ico"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; begin VB system files
; (Note: Scroll to the right to see the full lines!)
Source: vbfiles\stdole2.tlb; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: vbfiles\msvbvm60.dll; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: vbfiles\oleaut32.dll; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: vbfiles\olepro32.dll; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: vbfiles\asycfilt.dll; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile
Source: vbfiles\comcat.dll; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
; Otras DLL'S:
Source: redist\vb6es.dll; DestDir: {sys}; Flags: sharedfile
;RichTextBox
Source: redist\rchtxes.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;vbAccelerator VB6 PopMenu Control
Source: redist\cpopmenu6.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;Otros
Source: redist\mscmces.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: redist\cmctles.dll; DestDir: {sys}; Flags: sharedfile
;Microsoft Tabbed Dialog Control
Source: redist\tabctes.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\tabctl32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;Microsoft Common Dialog Control
Source: redist\cmdlges.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;Microsoft FlexGrid Control 6.0
Source: redist\flxgdes.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\msflxgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;ssubtmr
Source: redist\ssubtmr6.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;RDO
Source: redist\rdo20es.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\rdocurs.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\msrdo20.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
;SawZip
Source: redist\zlib.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\sawzip.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: redist\stdftes.dll; DestDir: {sys}; Flags: sharedfile
Source: redist\mathlib.dll; DestDir: {sys}; Flags: sharedfile
; Fuentes:
Source: "C:\vbfiles\brushsci.ttf"; DestDir: "{fonts}"; Flags: uninsneveruninstall sharedfile
; START MDAC
Source: redist\mdac_typ.exe; DestDir: {%TEMP}; Flags: ignoreversion; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC
Source: redist\mdac_typ.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0; Tasks: MDAC
; END MDAC
[Icons]
Name: "{group}\MyProject"; Filename: "{app}\MyProject.exe"
Name: "{group}\{cm:UninstallProgram,MyProject}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\MyProject"; Filename: "{app}\MyProject.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\PRO-RE"; Filename: "{app}\MyProject.exe"; Tasks: quicklaunchicon
[Registry]
; Delay MDAC installation on Win95 machines
;MDAC 2.0+
Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: """{%TEMP}\mdac_typ.exe"" /Q /C:""setup /QT"""; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC
[Run]
; START MDAC 2.0+ (see also: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q192009&)
Filename: {tmp}\mdac_typ.exe; Parameters: "/Q /C:""setup /QNT"""; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: MDAC; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0
Filename: "{app}\MyProject.exe"; Description: "{cm:LaunchProgram,Project}"; Flags: nowait postinstall skipifsilent
-
Jun 4th, 2006, 02:26 PM
#7
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
 Originally Posted by randem
You need a full source location.
But I can't use a full source location, the CD drive could be D: or E: or H:, i don't know, or, if the files in CD are copied to HD, and the program is installed form there, then it will be that path in the HD.
Maybe some flag like "ThePathFromWhereThisIsBeingInstalled"?
-
Jun 4th, 2006, 02:58 PM
#8
Re: Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
Found it! ThePathFromWhereThisIsBeingInstalled = {src}
-
Jun 4th, 2006, 04:57 PM
#9
Re: [RESOLVED] Inno setup: add MDAC_TYP.EXE or not? (and more deployment questions).
You might want to include the flag alwaysoverwrite on that line to. Depending on what you are doing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|