Inno setup complains that the script is taking a couple dlls from Windows/System32 directory. However, innoscript is set to ignore that directory and I also have copies of those dlls in another (unused) directory which I included in the search folders. For some reason innosetup is insisting on using the files from Windows/system32 and not the ones in the other directory.
[Files]
Source: C:WindowsSysWOW64stdole2.tlb; DestDir: {sys}; Flags: regtypelib restartreplace uninsneveruninstall;
Source: C:WindowsSysWow64COMDLG32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64RICHTX32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64MSFLXGRD.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64MSMASK32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64MSCOMCT2.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WindowsSysWow64MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:ProgrammingInstallation ProgramsInnoInnoscriptCR FilesCRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: G:ProjectsVB6RentalsRentals.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: G:ProjectsVB6RentalsGraphicskey-icon.ico; DestDir: {app}; Flags: ignoreversion;
Source: G:ProjectsVB6RentalsBlankdBBlankRentals.mdb; DestDir: {app}; Flags: ignoreversion;
Source: G:ProjectsVB6RentalsBlankdBRentals.mdb; DestDir: {app}; Flags: confirmoverwrite ignoreversion;
Source: G:ProjectsVB6Rentalsrental_manager.chm; DestDir: {app}; Flags: ignoreversion nocompression;
Source: C:Windowssystem32COMCAT.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:Windowssystem32OLEAUT32.dll; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WindowsSysWow64MSVBVM60.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:ProgrammingInstallation ProgramsInnoInnoscriptAPI FilesAPI-MS-Win-Core-LocalRegistry-L1-1-0.dll; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:ProgrammingInstallation ProgramsInnoInnoscriptAPI FilesAPI-MS-Win-Core-ProcessThreads-L1-1-0.dll; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:ProgrammingInstallation ProgramsInnoInnoscriptAPI FilesAPI-MS-Win-Security-Base-L1-1-0.dll; DestDir: {sys}; Flags: restartreplace sharedfile;
did it again ... posted when I wanted to preview ... anyway, I'm missing something here ...
edit didn't work on the original post .. the two files are COMCAT.DLL and OLEAUT32.dll
(Message edited by SparrowHawk7 on May 29, 2013)
InnoScript by default does not take files from the system32 folder and that is indicated after each run. Inno Setup will not use files from the system32 folder. If you told InnoScript to ignore that and use the files from the system32 folder that was a mistake unless you just want to find out where the files are located so that you can move them elsewhere.
The files in question are found in the VB6 folder that InnoScript uses by default unless it was changed.
DO NOT USE files from the system32 folder. Set InnoScript back to the default to Run in Safe Mode in the Project Options -> Others -> Settings section then re-run the script generation. The setting in Project Options -> Settings -> File Options -> VB Runtime Files Folder should be C:Program FilesRandem SystemsInnoScript 11VB 6 Redist Files.
I checked .. the program is set to safe mode.
(https://randemsystems.support/discus/messages/12/10797.jpg)
I have copies of the dlls in F:\Programming\Installation Programs\Inno\Innoscript\MS Files which I added to the search files but the program takes it out when it creates the script.
I'm not sure what the iconmaker\backup is all about ... I never told it to look there. (just checked - it's full of dlls also.)
(Message edited by SparrowHawk7 on May 29, 2013)
Please post the whole generated script. In Safe Mode InnoScript will not search system folders (Especially if the folders are in the Exclude list). If in Safe Mode the button will be the color Orange to denote selected.
InnoScript finds files in iconmakerbackup first so place that folder into the Exclude Folder list...
Out of nowhere the dlls are OK now .. but I'm having trouble with the script folder missing files. I can move them there of course .. but it's odd that for several hours I had problems with the windows/system32 dlls and now it's fixed.
[Setup]
SetupLogging=Yes
DisableStartupPrompt=False
WindowResizable=False
WindowShowCaption=False
WindowStartMaximized=False
AppId=Rental Manager
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
AppName=Rental Manager 1.00.00
AppVerName=Rental Manager
AppPublisher=Computer Wizards
;------------------------------------------------------------------------------------------------------------------------
AppVersion=1.00.00
VersionInfoVersion=1.00.00
AllowNoIcons=no
DefaultGroupName=Computer Wizards\Rentals
DefaultDirName={pf}\Computer Wizards\Rentals 1
AppCopyright=Ken Brown 2013
PrivilegesRequired=Admin
MinVersion=0,5.01
OnlyBelowVersion=0,6.0
Compression=lzma
OutputBaseFilename=Rentals0100000Release
[Tasks]
Name: VCRuntime2008; Description: Install VC 2008 Runtimes SP1; GroupDescription: VC Runtimes:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: DatabaseSupport; Description: Install Database Support; GroupDescription: Install Database Support:
[Files]
Source: F:\Programming\Installation Programs\Inno\Innoscript\MS Files\vcredist_x86_2008_SP1.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; AfterInstall: InstallVCRuntime('{tmp}\vcredist_x86_2008_SP1.exe','/q /l{sd}\vcredist_x86_2008_SP1.exe.txt'); Tasks: VCRuntime2008;
Source: F:\Programming\Installation Programs\Inno\Innoscript\VB6 Required files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib restartreplace uninsneveruninstall;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\COMDLG32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\RICHTX32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\MSFLXGRD.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\MSMASK32.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\OCX files\MSCOMCT2.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\VB6 Required files\MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\CR Files\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: G:\Projects\VB6\Rentals\Rentals.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: G:\Projects\VB6\Rentals\Graphics\key-icon.ico; DestDir: {app}; Flags: ignoreversion;
Source: G:\Projects\VB6\Rentals\BlankRentals.mdb; DestDir: {app}; Flags: ignoreversion replacesameversion;
Source: G:\Projects\VB6\Rentals\rental_manager.chm; DestDir: {app}; Flags: ignoreversion nocompression;
Source: G:\Projects\VB6\Rentals\BlankdB\Rentals.mdb; DestDir: {app}; Flags: ignoreversion;
Source: F:\Programming\Installation Programs\Inno\Innoscript\VB6 Required files\OLEAUT32.dll; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\Programming\Installation Programs\Inno\Innoscript\VB6 Required files\MSVBVM60.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
;
; Download MDAC and JET files from the Download menu of InnoScript or https://randemsystems.com/os-updater-support (https://randemsystems.com/os-updater-support)
;
Source: ..\Scripts\Output\Support\mdac_typ_281.exe; DestDir: {tmp}; Flags: ignoreversion nocompression deleteafterinstall; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\mdac_typ_20.exe; DestDir: {tmp}; Flags: ignoreversion nocompression deleteafterinstall; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\Jet35sp3.exe; DestDir: {tmp}; Flags: ignoreversion nocompression deleteafterinstall; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\Jet40SP8_WXP.exe; DestDir: {tmp}; Flags: ignoreversion nocompression deleteafterinstall; MinVersion: 0,5.01; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\JetComp.exe; DestDir: {sys}; Flags: sharedfile nocompression; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
;
; Download MDAC and JET files from the Download menu of InnoScript or https://randemsystems.com/os-updater-support (https://randemsystems.com/os-updater-support)
;
;
; Download MDAC and JET files from the Download menu of InnoScript or https://randemsystems.com/os-updater-support (https://randemsystems.com/os-updater-support)
;
;
; Download MDAC and JET files from the Download menu of InnoScript or https://randemsystems.com/os-updater-support (https://randemsystems.com/os-updater-support)
;
[INI]
Filename: {app}\Rentals.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\Rentals ; Filename : {app}\Rentals.exe; WorkingDir: {app}; IconFilename: {app}\key-icon.ico;
Name: {group}{cm:ProgramOnTheWeb, Rentals }; Filename: {app}\Rentals.url; IconFilename: {app}\key-icon.ico;
Name: {group}{cm:UninstallProgram, Rentals }; Filename: {uninstallexe};
[Run]
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {sd}\CRXI_5_RDC_Redistribution.msi.txt; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation; StatusMsg: Installing Crystal Reports Runtimes;
; Register the Crystal Reports Merge Module components that need to be registered in place where the Merge Modules installed them
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!91FDA5AF-C945-4DDC-8C32-29A790CF16F0@\11.5.10.1263}{code:LogFileName|craxdrt.dll}; WorkingDir: {code:GetCLSIDFldr|!91FDA5AF-C945-4DDC-8C32-29A790CF16F0@\11.5.10.1263}\; StatusMsg: Registering Crystal Reports ActiveX Designer Run Time Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.10.1263}{code:LogFileName|craxddrt.dll}; WorkingDir: {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.10.1263}\; StatusMsg: Registering Crystal Reports ActiveX Designer Design and Runtime Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {tmp}\mdac_typ_20.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Filename: {tmp}\mdac_typ_281.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.1; Tasks: DatabaseSupport
Filename: {tmp}\Jet35sp3.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport;
Filename: {tmp}\Jet40SP8_WXP.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 0,5.01; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Filename: {app}\Rentals.exe; Description: {cm:LaunchProgram, Rentals }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\Rentals.url
Type: dirifempty; Name: {app}
[InstallDelete]
Type: files; Name: {app}\Install.log;
[Code]
//===================================================================
// Install VC Runtime files
//===================================================================
Procedure InstallVCRuntime(Filename: String; Param: String);
var
ErrorCode: Integer;
begin
ShellExec('', ExpandConstant(Filename), ExpandConstant(Param), '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
end;
//========================================================================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//========================================================================================================================
function GetCLSIDFldr(Param: String): String;
var
Location: String;
CSLID: String;
LogFile: String;
sStr: String;
begin
CSLID := Param;
StringChangeEx(CSLID, '!', '{', True);
StringChangeEx(CSLID, '@', '}', True);
LogFile := ExpandConstant('{app}') '\Install.log';
SaveStringToFile(LogFile, #13#10 CSLID #13#10, True);
if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\' CSLID '\0\win32','', Location) then
Result := 'Not Registered !!!' #13#10 'Possible Wrong Crystal Reports Version Installed on Source Machine or ' #13#10 'Wrong CRystal Reports Merge Module Installed on Target Machine' #13#10;
begin
Location := ExpandConstant(Location)
sStr := #13#10 Location #13#10 StringOfChar('*',70) #13#10
SaveStringToFile(LogFile, sStr, True);
Result := ExtractFileDir(Location);
end;
end;
//=============================================================
// Log the filename process to a log file
//=============================================================
function LogFileName(Filename: String): String;
var
LogFile: String;
sSTr: String;
begin
LogFile := ExpandConstant('{app}') '\Install.log';
sStr := #13#10 'Registering ' Filename #13#10;
SaveStringToFile(LogFile, sStr, True);
Result := Filename;
end;
//============================================================================
(Message edited by SparrowHawk7 on May 29, 2013)
Moving the files completed the compilation. The thing is that all those files were in the MS Files directory which I included in the search folders section .. yet it was missing once innoscript created the script and it gave reference to an empty directory. How come it ignored that MS directory?
I don't see any missing files in the script. What files are you referring too? Have you checked the log to see if these files were removed?
You did not give any indication as to what MS folder are you referring too?
The scripts directory the script refers to for the MDAC and Jet stuff was empty throwing an error in inno when it tried to compile. I copied the files from the f:ProgrammingInstallation ProgramsInnoInnoscriptMS Files directory (which I had included in the search list but it was removed by the program when creating the script). After that I recompiled in inno setup and it completed successfully.
However, when trying to run the Rentals0100000Release.exe file I was informed that it is not compatible with my version of windows (windows 7 HomePremium/64 bit). I have innoscript set to none as the minimum and maximum windows versions and Windows XP as the min and max NT versions.
Shouldn't those settings allow the program to install on my system?
(Message edited by SparrowHawk7 on May 29, 2013)
Copied the files to where? The MDAC / Jet files basically should be placed in the ScriptOutputSupport Folder. That is where they are expected to be as indicated by the script.
As far as compatibility, you must tell InnoScript that you want to install on Windows 7. You only told InnoScript that you want to install on Windows XP. Look in the NT Versions tab of the Versioning selection of Project Options. The Windows Versions tab selections should both be set to NONE.
Setting the min and max selections to Windows XP will only install on Windows XP. The Min NT Version is the lowest Windows version to install on and the Max NT Version is the highest version of Windows to install on. you need to change the max NT version to Windows 7.
OK .. I see. I guess the MDAC/Jet files cannot be anywhere other than the scriptoutputsupport folder. Knowing that will help avoid trouble in the future.
I'm slowly gaining an understanding of the program and what it will do and how to do it.
The files need to be in the fixed location because of the Internal/External install selection. InnoScript needs to be able to know where they are without searching.