I ran your code and got these errors
paramater permissions includes a malformed value "RUNASADMIN"
paramater permissions includes a malformed value "WINXPSP2"
Please advise
Thanks
Printable View
I ran your code and got these errors
paramater permissions includes a malformed value "RUNASADMIN"
paramater permissions includes a malformed value "WINXPSP2"
Please advise
Thanks
Ok, try this one. There is no actual examples of what you need to do so it going to be trial and error buy using their explanations.
Code:[Registry]
Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {pf]\FSR_Tech; ValueData: RUNASADMIN
Root: HKLM; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {pf}\FSR_Tech; ValueData: WINXPSP2
You had some typos that I corrected and it ran as seen below:Quote:
Originally Posted by randem
Root: HKCU; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {pf}\FSR_Tech.exe; ValueData: RUNASADMIN
Root: HKLM; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {pf}\FSR_Tech.exe; ValueData: WINXPSP2
I will test on a vista pc tomorrow. I don't have vista so I have to go to this business where I used to work and test it on one of their vista pc's.
Of course I'll let you know the outcome ASAP
Thanks for your help.
It RAN where????
Inno compile ran ok no errorsQuote:
Originally Posted by randem
Still no go on Vista
I have to enable the exe as run as administrator for my program to run in vista
and every time I restart the program I get a nag screen asking if its ok to run the program.
Hmmm, That is probably why there are no real examples of this technique around (only theories)... I will continue to search.
Did you look into the registry to see if the entries are actually there?
I can't beleive no one has an inno script that allows a setup.exe to run on vista without being nagged about is it ok to run this program.
Don't you guys have a generic script for a VB exe I can look at and alter to fit my needs?
I learned a lot about programming from looking at example code and altering it to fit my needs.
It's not a Inno Setup issue it a Vista one and it is seems not to be documented very well on how to accomplish it. All the documentation I have found conflicts with one another.
That nag screen you are referring to, is it a screen asking you if it OK to run as an administrator?
No it asks the user if its ok to allow the program to run. I don't have the message in front of me I don't have access to a vista pc all the time.Quote:
Originally Posted by randem
What version of Inno Setup are you using? 5.1.8 automatically elevates it's setup program to run as administrator because it embeds the manifest file with the installation executable. What you can attempt is to use this manifest file. rename it to yourprogram.exe.manifest place it in the same folder as your app then attemtp to run it. Let me know what happens.
Code:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="ExeName"
type="win32"/>
<description>elevate execution level</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Also change name="ExeName" to name="yourExeName".
Hi there,
it seems that I have the same problem, but I didn't understand the soution.
I have VB 6 application, installation file was created in Inno Setup and it is working fine on Wn 200 and XP. However, after installation on Vista the error message appears (missing msinet.ocx file).
Here is the relevant code from Inno Setup:
Source: "c:\Documents and Settings\User\My Documents\Setup Files\vbfiles\msinet.ocx"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Please advice how to solve it.
Thanks a lot,
Alex.
Of course you only install the file on non Vista installations hense OnlyBelowVersion: 0,6;
How many file did you add the OnlyBelowVersion parameter to? You were only suppose to add it to the VB Runtime file... Post your script
Hi Randem,
thanks for replying.
Here is my script:
; 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";
So why did you add OnlyBelowVersion 0,6 to msinet.ocx if you want it to install on Vista?
I would like to create installation file that would fit all operating systems.
I thought that "OnlyBelowVersion 0,6" would replace msinet.ocx with version lower then 6.
I suppose that msinet.ocx on Vista should have higher version, so it wouldn't be replaced.
Please correct me if I am wrong.
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
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?
What error do you get?
I don’t remember the exact syntax, but some thing about missing msinet,ocx.
If the Error syntax is important, I will check it.
The syntax is ALWAYS important!!!
What version of IE do you have installed?
Randem,
it didn't happen on my computer.
It will take me some time to get this info.
Thanks,
Alex.
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...
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.
msinet is installed with IE7...
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?
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
Post your script...
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";
Run your code thru ********** then post that script so we can see the differences
Randem,
I will try the Inno Script, but I still don't know whether to install msinet.ocx on XP or no.
Run ********** (one word) and we will see what it says to do first...
Randem,
I tried the ********** and that's whai I've got:
Please note that the last 3 rows in the code appeared in red colorCode:[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;
I know they are MISSING files. You must tell ********** where to search for them since you are running in SAFE mode.
How can I tell it to **********?