-
Re: Inno Setup and Vista Errors
Incorrect... It would not install it on Vista Period... Vista is version 6 of Windows
The normal setting of Inno Setup would not replace any file that had a higher version number. You are confusing things... Check the Inno Setup Help Documentation...
Code:
MinVersion
A minimum Windows version and Windows NT version respectively for the entry to be processed. If you use "0" for one of the versions then the entry will never be processed on that platform. Build numbers and/or service pack levels may be included in the version numbers. This overrides any MinVersion directive in the script's [Setup] section.
An entry without a MinVersion parameter is always processed, unless other parameters say it shouldn't be.
Example:
MinVersion: 4.0,4.0
OnlyBelowVersion
Basically the opposite of MinVersion. Specifies the minimum Windows and Windows NT version for the entry not to be processed. For example, if you put 4.1,5.0 and the user is running Windows 95 or NT 4.0 the entry will be processed, but if the user is running Windows 98 (which reports its version as 4.1) or Windows 2000 (which reports its version as NT 5.0), it will not be processed. Putting "0" for one of the versions means there is no upper version limit. Build numbers and/or service pack levels may be included in the version numbers. This overrides any OnlyBelowVersion directive in the script's [Setup] section.
An entry without an OnlyBelowVersion parameter is always processed, unless other parameters say it shouldn't be.
Example:
OnlyBelowVersion: 4.1,5.0
-
Re: Inno Setup and Vista Errors
Random,
thanks for such a detailed and clear explanation.
I used the code from Inno Setup site: http://www.jrsoftware.org/iskb.php?vb
I also learned from the site that:
"Added OnlyBelowVersion: 0,6 parameters to each line to prevent Setup from trying to install the files on Windows Vista. All of the files come preinstalled on Vista already, and cannot be re-registered due to security restrictions on the registry."
If files come preinstalled, why msinet.ocx error appears?
-
Re: Inno Setup and Vista Errors
-
Re: Inno Setup and Vista Errors
I don’t remember the exact syntax, but some thing about missing msinet,ocx.
If the Error syntax is important, I will check it.
-
Re: Inno Setup and Vista Errors
The syntax is ALWAYS important!!!
-
Re: Inno Setup and Vista Errors
What version of IE do you have installed?
-
Re: Inno Setup and Vista Errors
Randem,
it didn't happen on my computer.
It will take me some time to get this info.
Thanks,
Alex.
-
Re: Inno Setup and Vista Errors
If the msinet.ocx is missing then installing it will help. If it is missing dependencies then the files for Vista may be different for msinet.ocx and you need a msinet.ocx that is compatiblw with Vista.
The actual message would help though...
-
Re: Inno Setup and Vista Errors
It seems that msinet.ocx is not included in Vista.
Please see Support Statement for Visual Basic 6.0 on Windows Vista (http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx).
So I suppose that it should be installed and registered by Installation SW.
-
Re: Inno Setup and Vista Errors
msinet is installed with IE7...
-
Re: Inno Setup and Vista Errors
Randem,
I just made another installation file and sent it to person who installs application on Vista.
I removed "OnlyBelowVersion: 0,6" from the code.
This guy receives the following error message:
"C:\Windows\system32\stdole2.tlb
Unable to register the type library; Rigister TypeLib failed; code 0x8002801C
Error Accessing OLE registry.
Click Retry to try again, Ignore to proceed anyway (not recommended), or Abort to cancel installation."
The IE version is 7.0.6000.16473.
Do you have any idea on the root of this problem?
-
Re: Inno Setup and Vista Errors
Why are you attempting to install that file on Vista. I was very clear in stating that the VB Runtime files should not be installed on Vista. These files should not be installed on Vista:
Code:
Source: e:\server data\randem\develop\vb 5 redist files\MSVBVM50.DLL; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: regserver restartreplace sharedfile uninsneveruninstall
Source: e:\server data\randem\develop\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: regserver restartreplace sharedfile uninsneveruninstall
Source: e:\server data\randem\develop\vb 6 redist files\oleaut32.dll; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: regserver restartreplace sharedfile uninsneveruninstall
Source: e:\server data\randem\develop\vb 6 redist files\olepro32.dll; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: regserver restartreplace sharedfile uninsneveruninstall
Source: e:\server data\randem\develop\vb 6 redist files\asycfilt.dll; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: sharedfile uninsneveruninstall
Source: e:\server data\randem\develop\vb 6 redist files\stdole2.tlb; DestDir: {sys}; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Flags: uninsneveruninstall sharedfile regtypelib
-
Re: Inno Setup and Vista Errors
-
Re: Inno Setup and Vista Errors
I tried to install these files on vista because of the problem with msinet.ocx.
Here is my ne screept were I removed "OnlyBelowVersion: 0,6" in order to install msinet.ocx, but then I've encountered a new problem.
Here is my script:
Code:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=ACM
AppVerName=ACM 0.9.12
AppPublisher=Alex
DefaultDirName={pf}\ACM
DefaultGroupName=ACM
LicenseFile=c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\EULA.rtf
InfoBeforeFile=c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\Warning.rtf
OutputDir=c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\Inno output
OutputBaseFilename=ACM setup
SetupIconFile=c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\acm.ico
Compression=lzma
SolidCompression=yes
PrivilegesRequired=admin
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\stdole2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\oleaut32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\olepro32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\asycfilt.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\comcat.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiless\msinet.ocx"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\ACM.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\worldmask.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\ACM AddIn.dll"; DestDir: "{app}"; OnlyBelowVersion: 0,9; Flags: restartreplace regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\help.html"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\command_bar.jpg"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\main_window.jpg"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\acm.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\acm.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\acmmask.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\ToolbarReset.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\world.gif"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\ACM"; Filename: "{app}\ACM.exe"
Name: "{commondesktop}\ACM"; Filename: "{app}\ACM.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\ACM"; Filename: "{app}\ACM.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\ACM.exe"; Description: "{cm:LaunchProgram,ACM}"; Flags: nowait postinstall skipifsilent
[UninstallRun]
Filename: "{app}\ToolbarReset.exe";
-
Re: Inno Setup and Vista Errors
Run your code thru ********** then post that script so we can see the differences
-
Re: Inno Setup and Vista Errors
Randem,
I will try the Inno Script, but I still don't know whether to install msinet.ocx on XP or no.
-
Re: Inno Setup and Vista Errors
Run ********** (one word) and we will see what it says to do first...
-
Re: Inno Setup and Vista Errors
Randem,
I tried the ********** and that's whai I've got:
Code:
[Files]
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\microsoft office\office11\msword.olb; DestDir: {sys}; Flags: sharedfile regtypelib;
Source: c:\progra~1\common~1\system\msmapi\1033\cdo.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: AM.exe; DestDir: {app}; Flags: ignoreversion;
Please note that the last 3 rows in the code appeared in red color
-
Re: Inno Setup and Vista Errors
I know they are MISSING files. You must tell ********** where to search for them since you are running in SAFE mode.
-
Re: Inno Setup and Vista Errors
How can I tell it to **********?
-
Re: Inno Setup and Vista Errors
By adding the path in the search path area...
-
Re: Inno Setup and Vista Errors
Should I enter the path manually in the scrip or there is another way?
-
Re: Inno Setup and Vista Errors
In the program so it can search for the files (Search Path Area). Where the other paths are...
-
1 Attachment(s)
Re: Inno Setup and Vista Errors
-
Re: Inno Setup and Vista Errors
Tanks Randem,
I've created script with ********** and here are the results:
Without **********:
Code:
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\stdole2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\oleaut32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\olepro32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\asycfilt.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\comcat.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiless\msinet.ocx"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
With **********:
Code:
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\microsoft office\office11\msword.olb; DestDir: {sys}; Flags: sharedfile regtypelib;
Source: c:\progra~1\common~1\system\msmapi\1033\cdo.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
What is your opinion?
Would it work in Vista and would it resolve msinet.ocx problem?
Alex.
-
Re: Inno Setup and Vista Errors
Without seeing the complete script.... How would you expect an complete answer?
If msinet.ocx isn't supposed to be installed on Vista you need to use this line.
Code:
Source: c:\windows\system32\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
-
Re: Inno Setup and Vista Errors
I thought that "OnlyBelowVersion: 0,6" would not install the file on Vista.
Am I correct?
-
Re: Inno Setup and Vista Errors
That is correct but since msinet should not be installed on Vista you would need to change how your app works to run on Vista. As I understand it msinet.ocx is installed with IE7. Do you have IE7 installed on your Vista system?
-
Re: Inno Setup and Vista Errors
It depends who installes my application.
I would like to destribute it and I don't know who has Vista and who has IE 7.
One of the people who installed my application on Vista, faced problem with msinet.ocx and that's why I need your help. This guy has IE7.
-
Re: Inno Setup and Vista Errors
Check on his computer to see if msinet.ocx already exist. The lines with OnlyBelowVersion 0,6 will be install on every OS except Vista.
-
Re: Inno Setup and Vista Errors
BTW: Microsoft swears they have tested msinet.ocx on Vista... But of course true to microsoft they never say how or give any coherent examples...