Innoscript/innosetup and flags for MS runtime distribution files

Started by slow_thought, December 10, 2008, 07:24:24 AM

Previous topic - Next topic

slow_thought

Some good news  
 
After un-install/reinstalling InnoScript it now works as expected.  Running from the VBP, it properly picks up the vbruntimes and assigns the correct flags!
 
Now to try out the MDAC/Jet template properly...
 
Thanks for your help over the last few days - much appreciated.

Randem

Also re-download and reinstall InnoScript. Something is not right with your installation if the VBRuntime files are at the end.
 
I cannot duplicate that which is happening to you.

Randem

Upload your vbp file and I will run it then post the results.


slow_thought

1) There is no database [mdb] file yet because I had not yet added that manually! I'm going to do that once I have the vbruntimes etc sorted.
 
2) I have now created a minimal project [no templates of mine], that is based upon a simple run with the VBP file.  As you will see
- only three of the vbruntime [oleaut32.dll, olepro32.dll & msvbvm60.dll] files are listed in the [Files] section
- they are placed at the end of the [Files]list.
 
Following are the project file and the setup file
 
Is there some setting that is preventing the vbruntime files being listed?
 
 
[InnoScript]
 
UseUNCPath=False
PDWFile=F:\MyDir\MyProg.vbp
InnoSetupFile=F:\MyDir\Setup_inno_vbp\GM_no_tpl.iss
MinWinVersion=0
MinNTVersion=2
ProcessFile=1
SafeMode=True
VBVersion=6
VersionType=2
XPThemes=0
AdminRequest=0
VistaAdminRequest=0
VB6Dir=C:\Program Files\Randem Systems\InnoScript\InnoScript 9\VB 6 Redist Files\
 
[LastLocations]
 
LastAddFilesFolder=C:\
LastAddFolder=C:\
LastExcludeFolder=C:\
LastTemplateFolder=C:\Program Files\Randem Systems\InnoScript\InnoScript 9\Templates\
LastSearchFolder=C:\
LastScriptFolder=C:\
 
[Parameters]
 
InternalInstalls=1
IncludeURL=1
DesktopIcon=0
QuickLaunchIcon=0
AllowNoIcons=0
CRInstallation=0
AutoOSUpdater=0
DotNetFramework=0
DotNetFrameworkFilename=dotnetfx.exe
AutoOSUpdaterFilename=None
MSScriptingRuntime=0
DefaultGroupName=GM
DefaultDirName={pf}\GM 2
AppCopyright=

Randem

Also your run section needs to be reordered so that the SP's wiil execute
 
[Run]
Filename: {tmp}\mdac_typ_20.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0
Filename: {tmp}\Jet35sp3.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0
Filename: {app}\GM.exe; Description: {cm:LaunchProgram, GM }; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
BTW, you are not deploying any database files in your script...

Randem

From the VBP file the vbruntime files should always be at the beginning and you should not use the vbruntime.tpl file. The vbruntime file are at the end because you are using the template.
 
Remove the vbruntime template and re-run.

slow_thought

OK here is the various files
 
--------------- 1) Project ---------------
 
[InnoScript]
 
PDWFile=F:\MyDir\MyProg.vbp
VB6Dir=C:\Program Files\Randem Systems\InnoScript\InnoScript 9\VB 6 Redist Files\
MinWinVersion=0
MinNTVersion=2
UseUNCPath=False
SafeMode=True
XPThemes=0
AdminRequest=0
VistaAdminRequest=0
VersionType=2
VBVersion=6
ProcessFile=1
InnoSetupFile=F:\MyDir\Setup_inno_vbp\GM_from_VBP.iss
 
[Parameters]
 
InternalInstalls=1
IncludeURL=1
QuickLaunchIcon=0
CRInstallation=0
AutoOSUpdater=0
AutoOSUpdaterFilename=None
DotNetFramework=0
MSScriptingRuntime=0
DotNetFrameworkFilename=dotnetfx.exe
DesktopIcon=0
AllowNoIcons=0
ProcessUnsafeFiles=1
PrivilegesRequired=2
Compression=20
DefaultGroupName=GM
DefaultDirName={pf}\GM 2
AppCopyright=

slow_thought

Perhaps I need to be clearer - I've got two scripts:
script A derived from the PDW [setup.lst]
script B derived from the VBP
 
with script A, the vbruntime files are always at the beginning - so thats fine
 
with script B, the vbruntime files are at the end of the list, and only 3 of the 6 are picked up [which was another reason for using the vbruntimes.tpl] - the 3 picked up files are oleaut32.dll, olepro32.dll and msvbvm60.dll.
 
I'll post the pjt and the iss for script B
 
(Message edited by slow_thought on December 11, 2008)
 
(Message edited by slow_thought on December 11, 2008)
 
(Message edited by slow_thought on December 11, 2008)

Randem

You don't need to add the vbruntime.tpl template for the vbruntime files to be added. Post your script. The vbruntime files are always at the beginning. But no the order of the files does not matter.

slow_thought

The one problem is that these vbruntime files now appear after the other files.  
 
I think that the vbruntime files should be first in the list.hmmmm.
 
does the order matter?
 
for example, I'm adding the MDAC20 file [via a template], but its listed last.  I would have thought that these should be first to be processed.  any thoughts?

slow_thought

I have just looked into the templates and seen that there was one marked VBRuntimes.tpl.
 
This had the correct flags, so I changed the paths to my correct folders and then added it to the project.
 
I'm pleased to say that it worked and my script now generates the vbruntime file lines with correct path and flags  
 
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\olepro32.dll; DestDir: {sys}; OnlyBelowVersion: 0,6.0; Flags:  regserver restartreplace sharedfile uninsneveruninstall  
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\comcat.dll; DestDir: {sys}; OnlyBelowVersion: 0,6.0; Flags:  regserver restartreplace sharedfile uninsneveruninstall  
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\stdole2.tlb; DestDir: {sys};  OnlyBelowVersion: 0,6.0; Flags:  uninsneveruninstall sharedfile regtypelib restartreplace  
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\asycfilt.dll; DestDir: {sys}; OnlyBelowVersion: 0,6.0; Flags:  sharedfile uninsneveruninstall restartreplace  
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\oleaut32.dll; DestDir: {sys}; OnlyBelowVersion: 0,6.0; Flags:  regserver restartreplace sharedfile uninsneveruninstall  
Source: c:\program files\Randem Systems\Innoscript\Innoscript 9\VB 6 Redist files\msvbvm60.dll; DestDir: {sys}; OnlyBelowVersion: 0,6.0; Flags:  regserver restartreplace sharedfile uninsneveruninstall  
 
As a newbie, I had not realised that I needed to modify that template or deliberately add it in!

slow_thought

My Pjt is here [names obviously changes]
 
[InnoScript]
 
PDWFile=F:MyProgDirSetupSETUP.LST
VB6Dir=C:Program FilesRandem SystemsInnoScriptInnoScript 9VB 6 Redist Files
MinWinVersion=0
MinNTVersion=2
UseUNCPath=False
SafeMode=True
XPThemes=0
AdminRequest=0
VistaAdminRequest=0
VersionType=2
VBVersion=6
ProcessFile=0
InnoSetupFile=F:MyProgDirSetup_innoMyProg.iss
 
[Parameters]
 
InternalInstalls=1
IncludeURL=1
QuickLaunchIcon=0
CRInstallation=0
AutoOSUpdater=0
AutoOSUpdaterFilename=None
DotNetFramework=0
MSScriptingRuntime=0
DotNetFrameworkFilename=dotnetfx.exe
DesktopIcon=0
AllowNoIcons=0
ProcessUnsafeFiles=1
PrivilegesRequired=2
Compression=20
DefaultDirName={pf}My Prog
DefaultGroupName=My Prog
AppCopyright=Copyright 2008, All rights reserved.
AppName=My Prog
AppCompany=My Company
 
[LastLocations]
 
LastAddFilesFolder=C:Program FilesRandem SystemsInnoScriptInnoScript 9OSUpdaters
LastAddFolder=C:
LastExcludeFolder=C:
LastTemplateFolder=C:
LastSearchFolder=C:Program FilesRandem SystemsInnoScriptInnoScript 9VB 6 Redist Files
LastScriptFolder=C:
 
[Associations]
 
 
[Installations]
 
 
[SearchFolders]
 
Folder1=C:Program FilesRandem SystemsInnoScriptInnoScript 9OSUpdaters
Folder2=F:MyProgDirSetupSupport
 
[AddFolders]
 
 
[AddFiles]
 
LastAddFilesFolder=C:Program FilesRandem SystemsInnoScriptInnoScript 9OSUpdaters
File1=C:Program FilesRandem SystemsInnoScriptInnoScript 9OSUpdatersmdac_typ_20.exe
 
[Templates]
 
File1=C:Documents and SettingsMy NameLocal SettingsApplication DataRandem SystemsinnoscriptTemplatesRelease.tpl
 
[AddFonts]
 
FontFolder=C:WINDOWSFonts
 
[DataExcludeFolders]
 
UseExcludeFolder1=Yes
UseExcludeFolder2=Yes
 
[DataTemplates]
 
UseTemplate1=Yes
 
[DataAddFolders]
 
 
[DataAddFiles]
 
UseAddFile1={sys}
 
[ExcludeFolders]
 
Folder1=C:Documents and SettingsMy Name
Folder2=C:Program FilesRandem SystemsInnoScriptInnoScript 9VB 5 Redist Files
 
[DataSearchFolders]
 
UseSearchFolder1=Yes
UseSearchFolder2=Yes

slow_thought

ah - sorry - I think I see what you mean
 
I had truncated the file paths to vbfiles - I was more concerned with the flags.  The full files are as follows
 
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filesolepro32.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filescomcat.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filesstdole2.tlb; DestDir: {sys}; Flags:  uninsneveruninstall restartreplace regtypelib;  
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filesasycfilt.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filesoleaut32.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:program filesrandem systemsinnoscriptinnoscript 9vb 6 redist filesmsvbvm60.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
 
I have not used any templates - being new to this, I thought that I would stick to the basics!

Randem

Are you using any templates that have those files in them? We use it everyday and we do not get anything like that. I have shown you what we get. The folder in your script is not one we choose to get the files from.
 
Post your .pjt file.