Click to See Complete Forum and Search --> : Inno Setup and Vista Errors
springer2003
May 16th, 2007, 07:57 AM
Hi all,
useing for my .exe VB 6 pro as front end Access 2000 as backend database
Inno setup compiler Ver 5.1.9
When customer is installing my setup on Win XP Pro or Home all is fine.
When customer is installing my setup on Vista errors came up.
C:\Windows\system32\oleaut32.dll
unable to register the DLL/OCX: dllRegisterServer failed; code 0x80070005
C:\Windows\system32\stdole2.tlb
unable to register the type library:RegisterTypeLib failed; code 0x8002801C
error accessing the OLE registry
Click retry to try again, ignore to proceed anyway (not reccomended), or
abort to cancel installation.
Any help appreciated
Thanks
John Guarnieri
randem
May 16th, 2007, 01:20 PM
That should happen... you should not be deploying VB Runtime files on Vista.
springer2003
May 16th, 2007, 08:01 PM
So please tell me the solution. How do I avoid the errors
Thanks
John G
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=FSR_Tech
AppVerName=FSR_Tech 1.0
DefaultDirName={pf}\FSR_Tech
DefaultGroupName=FSR_Tech
PrivilegesRequired=admin
[Tasks]
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
[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
; begin Active Report files
Source: "actbar.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "actrpt.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "ardesign.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
; end Active Report files
Source: "C:\2007 FSR Sell Programs\Trial Program\FSR_Tech_Ver_1.0.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\ScreenSaver.exe"; DestDir: "{app}"; Flags: ignoreversion
; 03/05/2007
Source: "C:\2007 FSR Sell Programs\Trial Program\Tech_DB.mdb"; DestDir: "{app}"; Flags: ignoreversion
;Source: "C:\2007 FSR Sell Programs\2007_QualxServ.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\comdlg32.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\mscomct2.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\msinet.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\richtx32.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\ActRpt.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSDE.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSADDNDR.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSDERUN.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSHTMPGD.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSHTMPGR.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\MSWCRUN.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\ARVIEWER.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\PDFExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\RTFExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\TEXTExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\ErrLog.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\VB6_18.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\Wolf.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\WrestleComputer.wmf"; DestDir: "{app}"; Flags: ignoreversion
; 02/16/2007
Source: "C:\2007 FSR Sell Programs\Trial Program\PathToStreetsAndTrips.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\OriginalScreenColor.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\OriginalScreenWidth.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\OriginalScreenHeight.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\QualxSrv.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\QualxSrv.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\AllRecordsWebPageURL.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\AllRecordsWebPageURL.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\DefaultLogin.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\DefaultLogin.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\ReadMe.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\Holdates.dat"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\Holdates.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\arrowl.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\arrowr.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Trial Program\stop.ICO"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Field Techs Travel Route Optimizer"; Filename: "{app}\FSR_Tech_Ver_1.0.exe"
; NOTE: The following entry contains an English phrase ("Uninstall"). You are free to translate it into another language if required.
Name: "{group}\Uninstall Field Techs Travel Route Optimizer"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Field Techs Travel Route Optimizer"; Filename: "{app}\FSR_Tech_Ver_1.0.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Run]
; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required.
Filename: "{app}\FSR_Tech_Ver_1.0.exe"; Description: "Launch Field Techs Travel Route Optimizer"; Flags: nowait postinstall skipifsilent
randem
May 16th, 2007, 11:43 PM
add OnlyBelowVersion: 0,6 to each of the vb runtime file line.
springer2003
May 17th, 2007, 08:03 AM
add OnlyBelowVersion: 0,6 to each of the vb runtime file line.
Thanks for your help. Are you saying that by adding OnlyBelowVersion: 0,6
this will now work on a vista install? Please advise.
Thanks again
John G:bigyello:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=FSR_Tech
AppVerName=FSR_Tech 1.0
DefaultDirName={pf}\FSR_Tech
DefaultGroupName=FSR_Tech
PrivilegesRequired=admin
[Tasks]
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
[Files]
; begin VB system files
; (Note: Scroll to the right to see the full lines!)
Source: "vbfiles\stdole2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "vbfiles\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "vbfiles\oleaut32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "vbfiles\olepro32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "vbfiles\asycfilt.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile
Source: "vbfiles\comcat.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
; begin Active Report files
Source: "actbar.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "actrpt.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
Source: "ardesign.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
; end Active Report files
Source: "C:\2007 FSR Sell Programs\Registered Program\FSR_Tech_Ver_1.0.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\ScreenSaver.exe"; DestDir: "{app}"; Flags: ignoreversion
; 03/05/2007
Source: "C:\2007 FSR Sell Programs\Registered Program\Tech_DB.mdb"; DestDir: "{app}"; Flags: ignoreversion
;Source: "C:\2007 FSR Sell Programs\2007_QualxServ.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\comdlg32.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\mscomct2.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\msinet.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\richtx32.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\ActRpt.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSDE.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSADDNDR.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSDERUN.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSHTMPGD.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSHTMPGR.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\MSWCRUN.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\ARVIEWER.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\PDFExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\RTFExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\TEXTExpt.DLL"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\ErrLog.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\VB6_18.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\Wolf.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\WrestleComputer.wmf"; DestDir: "{app}"; Flags: ignoreversion
; 02/16/2007
Source: "C:\2007 FSR Sell Programs\Registered Program\PathToStreetsAndTrips.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\OriginalScreenColor.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\OriginalScreenWidth.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\OriginalScreenHeight.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\QualxSrv.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\QualxSrv.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\AllRecordsWebPageURL.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\AllRecordsWebPageURL.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\DefaultLogin.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\DefaultLogin.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\ReadMe.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\Holdates.dat"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\Holdates.bak"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\arrowl.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\arrowr.gif"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\2007 FSR Sell Programs\Registered Program\stop.ICO"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Field Techs Travel Route Optimizer"; Filename: "{app}\FSR_Tech_Ver_1.0.exe"
; NOTE: The following entry contains an English phrase ("Uninstall"). You are free to translate it into another language if required.
Name: "{group}\Uninstall Field Techs Travel Route Optimizer"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Field Techs Travel Route Optimizer"; Filename: "{app}\FSR_Tech_Ver_1.0.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Run]
; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required.
Filename: "{app}\FSR_Tech_Ver_1.0.exe"; Description: "Launch Field Techs Travel Route Optimizer"; Flags: nowait postinstall skipifsilent
randem
May 17th, 2007, 12:55 PM
Those file will not be installed on Vista. You could also refer to the help documentation of Inno Setup for the definition
Format:
a.bb,c.dd, where a.bb is the Windows version, and c.dd is the Windows NT version.
Default value:
0,0
Description:
This directive lets you specify a minimum version of Windows or Windows NT that your software will not run on. Specifying "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 directive is essentially the opposite of MinVersion.
springer2003
May 17th, 2007, 01:16 PM
Those file will not be installed on Vista. You could also refer to the help documentation of Inno Setup for the definition
Format:
a.bb,c.dd, where a.bb is the Windows version, and c.dd is the Windows NT version.
Default value:
0,0
Description:
This directive lets you specify a minimum version of Windows or Windows NT that your software will not run on. Specifying "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 directive is essentially the opposite of MinVersion.
=====================================================
Well I went to Circuit City and installed my app on one of their Vista laptops
"I don't Have Vista" and I didn't get any error messages and my program ran. It had a desktop icon and all. Then when I rebooted and doudle clicked the desktop icon my program was running but I could'nt see it. If I did an alt tab it was there and it's in task mgr but I cant bring it to show up in Vista.
My program changes the screen resolution to 1024 x 768 x 32 when it runs then back to whatever the users screen resolution was originally when you exit the program.
Is that an issue with Vista? Weird or what all else seems fine
Thanks
John G
frustrated in Buffalo :confused:
randem
May 17th, 2007, 01:21 PM
It is a bad idea to change the user's resolution. Just because you change it back you also change every programs display that is running as well as the users desktop. I would be pissed if a piece of software I was using changed my desktop.
As far as your program not showing up in that task bar... Check your setting on your exe main form.
springer2003
May 17th, 2007, 03:26 PM
It is a bad idea to change the user's resolution. Just because you change it back you also change every programs display that is running as well as the users desktop. I would be pissed if a piece of software I was using changed my desktop.
As far as your program not showing up in that task bar... Check your setting on your exe main form.
I know it isn't a good idea to change the screen resolution but I couldn't find any 3rd party programs that would adjust my programs forms to whatever resolution the user was useing on his/her pc. I tried different demos and none worked. If you know of any please advise. My program uses midi forms.
>As far as your program not showing up in that task bar... Check your setting >on your exe main form.
My program shows when you "alt tab" in that window, My program shows in Windows Task Manager
I read that you may run programs in vista Compatibility Mode. I wonder if that
is the solution to my problem of my program running in the backround but not
ever being seen or getting the focus. :confused:
randem
May 17th, 2007, 06:50 PM
Check MartinLiss's signature for a control to help you with resizing forms and controls. This can be done with a little effort.
randem
May 17th, 2007, 07:11 PM
You know I just noticed in your script that you are overwriting every file when you install. This is a horrible no-no and you are not even registering any dll or ocx's. Run your vbp file through ********** and compare the differences. You are going to possible trash the target computers. The Inno Setup Wizard is just good for giving you a start but you have to figure everything else out and you did not.
Your script has serious problems...
springer2003
May 17th, 2007, 07:45 PM
You know I just noticed in your script that you are overwriting every file when you install. This is a horrible no-no and you are not even registering any dll or ocx's. Run your vbp file through ********** and compare the differences. You are going to possible trash the target computers. The Inno Setup Wizard is just good for giving you a start but you have to figure everything else out and you did not.
Your script has serious problems...
Sorry this is my first time with inno
>Run your vbp file through ********** and compare the differences.
I don't know how to do as you suggest :confused:
randem
May 17th, 2007, 07:51 PM
What don't you know how to do?
Install **********
Run **********
Compare Output with Inno Setup Wizard Output
springer2003
May 17th, 2007, 08:56 PM
What don't you know how to do?
Install **********
Run **********
Compare Output with Inno Setup Wizard Output
None of the above.
Also what do you mean by:
Check MartinLiss's signature for a control to help you with resizing forms and controls
==============================================
I know nothing about Inno. I am not afraid to do research and look things up on the web. I am self taught from VB for DOS up to VB 6 Pro. I taught myself
DAO, OOP and I use Access 2000 as a backend with SQL.
I found this forum hopeing to make things easier learning about Inno
This is my first time trying to create a setup.exe I didn't think it would be this difficult to create a setup.exe
I found and downloaded inno and it worked creating a setup.exe for win xp
right out of the box. Now I have issues with inno and Vista.
Thanks any help is appreciated
John G
randem
May 17th, 2007, 09:00 PM
Download and Install ********** (http://www.***********/**********.html) then run it on your vbp file. It will create an Inno Setup Script. Compare it to the Inno Setup Wizards Script. The differences will be as plain as night and day.
The script you created using the flag IgnoreVersion is a time bomb waiting to happen even on XP.
springer2003
May 19th, 2007, 11:20 AM
Download and Install ********** (http://www.***********/**********.html) then run it on your vbp file. It will create an Inno Setup Script. Compare it to the Inno Setup Wizards Script. The differences will be as plain as night and day.
The script you created using the flag IgnoreVersion is a time bomb waiting to happen even on XP.
Ok here is the latest. I found resize OCX and downloaded it. It seems to do its job of taking care of any screen resolution issues by a users pc. I just purchased it for $99.00 and I am waiting for the unlock key.
I downloaded ********** and will run it when I get my ocx key.
I have exeshield which is a copy protection program. When I run my setup.exe
for my program on Vista without copy protection it installs on Vista with no errors and runs fine.
Now if I run setup.exe with the exeshield copy protection on vista it installs without any errors and my program runs but will not run again after closing the program. It runs in the backround of Vista I can see it in task manager and if I alt tab I can see it but it won't get the focus in Vista.
So I goto exeshield help and find the following:
======================================================
Windows Vista Information.
Important: Make sure you test your program under Vista before protecting and releasing.
We recommend having your installer add information to the users
registry allowing the protected program to run as admin.
Here is the registry information.
HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
for name have your installer give the path and executable name. ex: C:\Program Files\MyProgram\project1.exe
most installers have this in a variable.
Type: REG_SZ
Value: RUNASADMIN
Microsoft recommend that all executables, such as Setup programs (which need access to protected areas of Windows), should be marked as requireAdministrator. This is achieved by using a manifest file (embedded or external).
You can try this yourself. Below is a valid manifest file. To mark a file "project1.exe" as requireAdministrator, save the text below to the file "project1.exe.manifest" in the same folder as "project1.exe". When "project1.exe" is run under Vista User logon you will see the customary Admin approval window appear.
Manifest file
<?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>
If you do not do this then the user can do it two ways in Vista.
1) Have the user right click on the protected program, Select "Properties", click on the "Compatibility tab"
then check "Run this program as an administrator"
2) User can also run the "Compatibility Wizard". Make sure they check "Run this program as an administrator.
Restrictions under Vista
Under "Hardware Options" these will be ignored if used.
- HD Firmware
========================================================
So now I will have to figure this out when I build my inno script.
Question:
Am I going to have to have 2 setup.exe files 1 for vista and 1 for XP or will after altering inno to satisfy Vista will the same exe work on an xp platform?
Confused but not giving up
Thanks
randem
May 19th, 2007, 01:41 PM
You alter Inno Setup to detect and install the appropriate files.
springer2003
May 19th, 2007, 03:28 PM
You alter Inno Setup to detect and install the appropriate files.
I purchased Inno Script how does this look? I see it picked up my
resize ocx and the VB_DCOM_MDAC_JET_AutoSetup.exe I downloaded
======================================================
; ********** Version 6.0 Build 7 Trial
; Randem Systems, Inc.
; Copyright 2003-2007
; website: http://www.***********
; support: http://www.**********.com/cgi-bin/discus/discus.cgi
; Date: May 19, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 6.0\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\2005QualxServ Backup\FSR_Tech_Ver_1.0.vbp
; Inno Setup Script Output File (.iss): C:\2005QualxServ Backup\Testing**********.iss
; ------------------------
; References
; ------------------------
; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Data Dynamics ActiveReports - (actrpt.dll)
; Microsoft Data Report Designer v6.0 - (MSDBRPTR.DLL)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; ActiveReports Designtime objects - (ardesign.dll)
; ActiveReports PDF Export Filter - (pdfexpt.dll)
; ActiveReports RTF Export Filter - (rtfexpt.dll)
; ActiveReports Text Export Filter - (textexpt.dll)
; ActiveReports Wizard AddIn Project - (ARWizard.DLL)
; Microsoft Access 9.0 Object Library - (MSACC9.OLB)
; Active DS Type Library - (activeds.tlb)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft HTML Object Library - (MSHTML.TLB)
; Microsoft Shell Controls And Automation - (SHELL32.dll)
; --------------------------
; Components
; --------------------------
; ActiveReports Viewer Control - (arviewer.ocx)
; Active Setup Control Library - (asctrls.ocx)
; ActiveBar Control - (actbar.ocx)
; Microsoft Masked Edit Control 6.0 - (MSMASK32.OCX)
; Microsoft Windows Common Controls-2 6.0 (SP4) - (Mscomct2.ocx)
; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
; Microsoft Internet Transfer Control 6.0 - (MSINET.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Larcom and Young ReSize Custom Control - (ReSize32.ocx)
[Setup]
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
AppName=FSR_Tech
AppVerName=FSR_Tech 1.0
AppPublisher=Triple J Computer
;-----------------------------------------------------------------------------------------------------
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=FSR_Tech
DefaultDirName={pf}\FSR_Tech
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0
Compression=lzma
OutputBaseFilename=FSR_Tech_Ver_1100Release
[Tasks]
[Files]
Source: vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression;
Source: c:\2005qualxserv backup\allrecordswebpageurl.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\allrecordswebpageurl.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\arrowl.gif; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\arrowr.gif; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\defaultlogin.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\defaultlogin.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\holdates.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\holdates.dat; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreencolor.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreenheight.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreenwidth.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\pathtostreetsandtrips.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\qualxsrv.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\qualxsrv.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\stop.ico; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\tech_db.mdb; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\vb6_18.ico; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\wrestlecomputer.wmf; DestDir: {app}; Flags: ignoreversion;
Source: c:\windows\system32\actrpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msdbrptr.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\ardesign.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\pdfexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\rtfexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\textexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\arviewer.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\arwizard.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\microsoft office\office\msacc9.olb; DestDir: {sys}; Flags: sharedfile regtypelib;
Source: c:\windows\system32\asctrls.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\activeds.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Source: c:\windows\system32\actbar.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msmask32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mshtml.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Source: c:\program files\resizocx\resize32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\fsr_tech_ver_1.0.exe; DestDir: {app}; Flags: ignoreversion;
[INI]
Filename: {app}\FSR_Tech_Ver_1.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\FSR_Tech_Ver_1; Filename: {app}\FSR_Tech_Ver_1.0.exe; WorkingDir: {app}
Name: {group}\FSR_Tech_Ver_1 on the Web; Filename: {app}\FSR_Tech_Ver_1.url
Name: {group}\Uninstall FSR_Tech_Ver_1; Filename: {uninstallexe}
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {app}\FSR_Tech_Ver_1.0.exe; Description: Launch FSR_Tech_Ver_1; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\FSR_Tech_Ver_1.url
randem
May 19th, 2007, 05:13 PM
Looks like a WINNER!!!
springer2003
May 20th, 2007, 08:07 AM
Looks like a WINNER!!!
Great!
Question what about that manafest file that exeshield mentions below
for windows vista
======================================================
Windows Vista Information.
Important: Make sure you test your program under Vista before protecting and releasing.
We recommend having your installer add information to the users
registry allowing the protected program to run as admin.
Here is the registry information.
HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
for name have your installer give the path and executable name. ex: C:\Program Files\MyProgram\project1.exe
most installers have this in a variable.
Type: REG_SZ
Value: RUNASADMIN
Microsoft recommend that all executables, such as Setup programs (which need access to protected areas of Windows), should be marked as requireAdministrator. This is achieved by using a manifest file (embedded or external).
You can try this yourself. Below is a valid manifest file. To mark a file "project1.exe" as requireAdministrator, save the text below to the file "project1.exe.manifest" in the same folder as "project1.exe". When "project1.exe" is run under Vista User logon you will see the customary Admin approval window appear.
Manifest file
<?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>
If you do not do this then the user can do it two ways in Vista.
1) Have the user right click on the protected program, Select "Properties", click on the "Compatibility tab"
then check "Run this program as an administrator"
2) User can also run the "Compatibility Wizard". Make sure they check "Run this program as an administrator.
Restrictions under Vista
Under "Hardware Options" these will be ignored if used.
- HD Firmware
========================================================
Thanks
John G
randem
May 20th, 2007, 01:03 PM
That depends on if your app need to run witrh admin priviledges. If so then you include it.
springer2003
May 20th, 2007, 02:38 PM
That depends on if your app need to run witrh admin priviledges. If so then you include it.
Thanks,
Here is my compiled script.
I had to rem out these 2 lines for it to compile:Can't figue out what they are about. Please advise.
;Source: mshtml.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
;Source: activeds.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Also my setup grew to 36mb I know is because of the
vb_dcom_mdac_jet_autosetup.exe file.
How can I email a setup.exe that is this large? Should I send just a smaller exe and just give a user the link to
vb_dcom_mdac_jet_autosetup.exe so he can download it.
and what about:
Here is the registry information.
HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
for name have your installer give the path and executable name. ex: C:\Program Files\MyProgram\project1.exe
most installers have this in a variable.
Type: REG_SZ
Value: RUNASADMIN
How do I incorprate this into my script.
I feel I am almost home just a few I don't knows here.
Thanks for all your help. I like that inno Script too.
John G
; ********** Version 6.0 Build 7
; Randem Systems, Inc.
; Copyright 2003-2007
; website: http://www.***********
; support: http://www.**********.com/cgi-bin/discus/discus.cgi
; Date: May 20, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 6.0\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\2005QualxServ Backup\FSR_Tech_Ver_1.0.vbp
; Inno Setup Script Output File (.iss): C:\2005QualxServ Backup\FSR_Trial_Inno_Script.iss
; ------------------------
; References
; ------------------------
; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Data Dynamics ActiveReports - (actrpt.dll)
; Microsoft Data Report Designer v6.0 - (MSDBRPTR.DLL)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; ActiveReports Designtime objects - (ardesign.dll)
; ActiveReports PDF Export Filter - (pdfexpt.dll)
; ActiveReports RTF Export Filter - (rtfexpt.dll)
; ActiveReports Text Export Filter - (textexpt.dll)
; ActiveReports Wizard AddIn Project - (ARWizard.DLL)
; Microsoft Access 9.0 Object Library - (MSACC9.OLB)
; Active DS Type Library - (activeds.tlb)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft HTML Object Library - (MSHTML.TLB)
; Microsoft Shell Controls And Automation - (SHELL32.dll)
; --------------------------
; Components
; --------------------------
; ActiveReports Viewer Control - (arviewer.ocx)
; Active Setup Control Library - (asctrls.ocx)
; ActiveBar Control - (actbar.ocx)
; Microsoft Masked Edit Control 6.0 - (MSMASK32.OCX)
; Microsoft Windows Common Controls-2 6.0 - (MSCOMCT2.OCX)
; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
; Microsoft Internet Transfer Control 6.0 - (MSINET.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Larcom and Young ReSize Custom Control - (ReSize32.ocx)
[Setup]
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
AppName=FSR_Tech
AppVerName=FSR_Tech 1.0
AppPublisher=Triple J Computer
;-----------------------------------------------------------------------------------------------------
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=FSR_Tech
DefaultDirName={pf}\FSR_Tech
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0sp2
Compression=lzma
OutputBaseFilename=FSR_Setup
[Tasks]
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
[Files]
Source: c:\2005qualxserv backup\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression;
Source: c:\2005qualxserv backup\allrecordswebpageurl.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\allrecordswebpageurl.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\arrowl.gif; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\arrowr.gif; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\defaultlogin.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\defaultlogin.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\errlog.mdb; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\fsr_tech_ver_1.0.exe.manifest; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\holdates.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\holdates.dat; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreencolor.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreenheight.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\originalscreenwidth.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\pathtostreetsandtrips.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\qualxsrv.bak; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\qualxsrv.ini; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\screensaver.exe; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\stop.ico; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\tech_db.mdb; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\vb6_18.ico; DestDir: {app}; Flags: ignoreversion;
Source: c:\2005qualxserv backup\wrestlecomputer.wmf; DestDir: {app}; Flags: ignoreversion;
Source: c:\program files\activereports\actrpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\msdbrptr.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\activereports\ardesign.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\pdfexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\rtfexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\export\textexpt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\arviewer.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\progra~1\active~1\arwizard.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\microsoft office\office\msacc9.olb; DestDir: {sys}; Flags: sharedfile regtypelib;
Source: c:\2005qualxserv backup\asctrls.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
;Source: activeds.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Source: c:\program files\activereports\actbar.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\msmask32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
;Source: mshtml.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Source: c:\program files\resizocx\resize32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\2005qualxserv backup\fsr_tech_ver_1.0.exe; DestDir: {app}; Flags: ignoreversion;
[INI]
Filename: {app}\FSR_Tech_Ver_1.url; Section: InternetShortcut; Key: URL; String:
[Icons]
;Name: {group}\FSR_Tech_Ver_1; Filename: {app}\FSR_Tech_Ver_1.0.exe; WorkingDir: {app}
Name: {group}\FSR_Tech; Filename: {app}\FSR_Tech_Ver_1.0.exe; WorkingDir: {app}
Name: {group}\FSR_Tech_Ver_1 on the Web; Filename: {app}\FSR_Tech_Ver_1.url
Name: {group}\Uninstall FSR_Tech_Ver_1; Filename: {uninstallexe}
Name: "{userdesktop}\FSR_Tech"; Filename: "{app}\FSR_Tech_Ver_1.0.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {app}\FSR_Tech_Ver_1.0.exe; Description: Launch FSR_Tech_Ver_1; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\FSR_Tech_Ver_1.url
randem
May 20th, 2007, 03:11 PM
********** - One word...
Try adding this to the script:
[Registry]
Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueData: RUNASADMIN; Flags: uninsclearvalue uninsdeletekeyifempty uninsdeletevalue deletekey deletevalue
You can use ISTool (http://www.istool.org/default.aspx/downloads) to help with these parameters
springer2003
May 20th, 2007, 04:09 PM
********** - One word...
Try adding this to the script:
[Registry]
Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueData: RUNASADMIN; Flags: uninsclearvalue uninsdeletekeyifempty uninsdeletevalue deletekey deletevalue
You can use ISTool (http://www.istool.org/default.aspx/downloads) to help with these parameters
does it mater where I paste the registry entry in my script file? Like after setup or before setup? Sorry to be a pain.
John G
randem
May 20th, 2007, 04:11 PM
Not really but nothing should come before [setup] for readability I always place the [Registry] section last.
No pain at all...
springer2003
May 20th, 2007, 04:36 PM
Not really but nothing should come before [setup] for readability I always place the [Registry] section last.
No pain at all...
Thanks,
I put it after setup.
It yelled at me on the "\" before Subkey: \Software
and it didn't like uninsclearvalue along with uninsdeletevalue
[Registry] 'your original it yelled at me
;Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueData: RUNASADMIN; Flags: uninsclearvalue uninsdeletekeyifempty uninsdeletevalue deletekey deletevalue
'my altered it ran with this do you see any issues I just guessed and took out "uninsclearvalue"
[Registry]
Root: HKCU; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueData: RUNASADMIN; Flags: uninsdeletekeyifempty uninsdeletevalue deletekey deletevalue
What about the:
Source: activeds.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
;Source: mshtml.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib;
Thanks again
randem
May 20th, 2007, 06:33 PM
What version on Inno Setup do you have?
And what about those lines?
springer2003
May 20th, 2007, 06:53 PM
What version on Inno Setup do you have?
And what about those lines?
ver 5.1.9
those lines I had to rem out, Inno can't find the files
activeds.tlb or mshtml.tlb
My set up runs on win xp will have to test vist when I get to a vista pc tomorrow
randem
May 21st, 2007, 12:39 AM
********** needs to be told where to look for those files. They are probably in the system folder and you are running in SAFE Mode so it did not look there. That is why Inno Setup can't find them, there is no path to the files. You need to supply the path.
springer2003
May 21st, 2007, 07:02 AM
********** needs to be told where to look for those files. They are probably in the system folder and you are running in SAFE Mode so it did not look there. That is why Inno Setup can't find them, there is no path to the files. You need to supply the path.
right I did a serch for them and found them in the system32\cache which allowed me tocopy them to another folder.
Thanks
springer2003
May 21st, 2007, 07:19 AM
Hey I just noticed I don't have my VB system files in my new inno script.
Why did inno script leave them out when the wizzard originally put them in.
John G
randem
May 21st, 2007, 12:46 PM
That is because when you use the Auto OS Updater the VB runtime files will be installed by that package so there is no reason to install them twice, so ********** removes them.
And it a little more then just coping the files to another folder. You must be sure that they are safe to deploy. IE. Version numbers from OS to OS. Some versions of files may not work on other OS's.
springer2003
May 21st, 2007, 04:03 PM
Well I'm screwed again. I just ran my new script on a vista machine and It yelled at me unable to register mshtml.tlb code 0x8002801c. I told it to ignore
and my program installed but I had to
1) Have the user right click on the protected program, Select "Properties", click on the "Compatibility tab"
then check "Run this program as an administrator"
2) User can also run the "Compatibility Wizard". Make sure they check "Run this program as an administrator.
Then the program runs but every time you restart it you have to check the nag box to allow it to run as a trusted program.
In't there a generic script you can supply that knows the diff between OS's and I can use as a guide to see how it compares next to my script?
frustration city over here
randem
May 21st, 2007, 07:31 PM
That has nothing to do with the script. If you need admin rights you need admin rights. No script can cure that. Now why did it tell you that it could not register these files? Are these files already registered on the machine? Check the machine to see if these files already exist on the machine.
You must find the reason for the message before you can find the cure.
springer2003
May 21st, 2007, 07:55 PM
That has nothing to do with the script. If you need admin rights you need admin rights. No script can cure that. Now why did it tell you that it could not register these files? Are these files already registered on the machine? Check the machine to see if these files already exist on the machine.
You must find the reason for the message before you can find the cure.
Aren't we talking about installing my program on a users pc? My script should know what OS, XP or Vista is on the users PC and what files should or should not be installed, but I obviously don't know how to write my installer code, thats why I'm on this forum. I don't know how to enable admin rights on Vista with my Inno installer. Do you have a generic script I can look at so I may alter it to fit ,my needs.
Thanks
randem
May 21st, 2007, 08:00 PM
The installer should not "Enable Rights" that is a job for the network administrator or support staff that sets up the computer. If any installation could change user rights that would be no security at all and viruses and trojans would have a field day for they would always change the rights to administrator.
springer2003
May 21st, 2007, 08:12 PM
The installer should not "Enable Rights" that is a job for the network administrator or support staff that sets up the computer. If any installation could change user rights that would be no security at all and viruses and trojans would have a field day for they would always change the rights to administrator.
I use a copy protection progam for my exe its called exeshield. Here is what they tell me to do with my installer program.
Windows Vista Information.
Important: Make sure you test your program under Vista before protecting and releasing.
=================================================
We recommend having your installer add information to the users
registry allowing the protected program to run as admin.
Here is the registry information.
HKEY_CURRENT_USER
\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
for name have your installer give the path and executable name. ex: C:\Program Files\MyProgram\project1.exe
most installers have this in a variable.
Type: REG_SZ
Value: RUNASADMIN
===================================================
This is what I want to do with my installer INNO but don't know how. Do you?
Thanks
randem
May 21st, 2007, 08:28 PM
I found this:
In real business scenario, sometimes it is required to automate the installation. In such cases, apply compatibility mode by setting up the registry key under ‘HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers’ with key name = ‘full path of the exe’ and string value = ‘WINXPSP2’ indicating the compatibility mode.
To fix an application failure, compatibility mode can be applied by setting a registry key under ‘HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers’ with key name = ‘full path of the exe’ and string value = ‘ElevateCreateProcess’ indicating the compatibility mode.
try this:
[Registry]
Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: Name; ValueData: {pf]\FSR_Tech.exe; Permissions: RUNASADMIN
Root: HKLM; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: Name; ValueData: {pf}\FSR_Tech.exe; Permissions: WINXPSP2
springer2003
May 21st, 2007, 08:37 PM
I found this:
In real business scenario, sometimes it is required to automate the installation. In such cases, apply compatibility mode by setting up the registry key under ‘HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers’ with key name = ‘full path of the exe’ and string value = ‘WINXPSP2’ indicating the compatibility mode.
To fix an application failure, compatibility mode can be applied by setting a registry key under ‘HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers’ with key name = ‘full path of the exe’ and string value = ‘ElevateCreateProcess’ indicating the compatibility mode.
try this:
[Registry]
Root: HKCU; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: Name; ValueData: {pf]\FSR_Tech.exe; Permissions: RUNASADMIN
Root: HKLM; Subkey: \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: Name; ValueData: {pf}\FSR_Tech.exe; Permissions: WINXPSP2
Now thats what I'm talking about. I'll give it a try.
Thanks
randem
May 21st, 2007, 08:41 PM
I would hope that you need Admin rights to even create these entries for any virus would also run as administrator and protect itself.
springer2003
May 21st, 2007, 08:45 PM
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
randem
May 21st, 2007, 09:11 PM
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.
[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
springer2003
May 21st, 2007, 09:27 PM
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.
[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:
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.
randem
May 21st, 2007, 10:07 PM
It RAN where????
springer2003
May 21st, 2007, 10:20 PM
It RAN where????
Inno compile ran ok no errors
springer2003
May 22nd, 2007, 06:53 PM
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.
randem
May 22nd, 2007, 06:56 PM
Hmmm, That is probably why there are no real examples of this technique around (only theories)... I will continue to search.
randem
May 22nd, 2007, 06:57 PM
Did you look into the registry to see if the entries are actually there?
springer2003
May 22nd, 2007, 06:58 PM
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.
randem
May 22nd, 2007, 07:01 PM
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.
randem
May 22nd, 2007, 07:07 PM
That nag screen you are referring to, is it a screen asking you if it OK to run as an administrator?
springer2003
May 22nd, 2007, 07:11 PM
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.
randem
May 22nd, 2007, 07:13 PM
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.
<?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>
randem
May 22nd, 2007, 08:26 PM
Also change name="ExeName" to name="yourExeName".
alex30
Jun 20th, 2007, 08:43 AM
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.
randem
Jun 20th, 2007, 01:08 PM
Of course you only install the file on non Vista installations hense OnlyBelowVersion: 0,6;
randem
Jun 20th, 2007, 01:21 PM
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
alex30
Jun 20th, 2007, 01:57 PM
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";
randem
Jun 20th, 2007, 02:00 PM
So why did you add OnlyBelowVersion 0,6 to msinet.ocx if you want it to install on Vista?
alex30
Jun 20th, 2007, 02:12 PM
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.
randem
Jun 20th, 2007, 02:17 PM
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...
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
alex30
Jun 20th, 2007, 02:41 PM
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?
randem
Jun 20th, 2007, 05:25 PM
What error do you get?
alex30
Jun 20th, 2007, 11:26 PM
I don’t remember the exact syntax, but some thing about missing msinet,ocx.
If the Error syntax is important, I will check it.
randem
Jun 20th, 2007, 11:28 PM
The syntax is ALWAYS important!!!
randem
Jun 20th, 2007, 11:45 PM
What version of IE do you have installed?
alex30
Jun 22nd, 2007, 01:05 AM
Randem,
it didn't happen on my computer.
It will take me some time to get this info.
Thanks,
Alex.
randem
Jun 22nd, 2007, 01:10 AM
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...
alex30
Jun 25th, 2007, 03:14 PM
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.
randem
Jun 25th, 2007, 06:29 PM
msinet is installed with IE7...
alex30
Jun 26th, 2007, 04:28 PM
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?
randem
Jun 26th, 2007, 07:30 PM
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:
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
randem
Jun 26th, 2007, 07:31 PM
Post your script...
alex30
Jun 26th, 2007, 10:49 PM
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:
; 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";
randem
Jun 26th, 2007, 11:45 PM
Run your code thru ********** (http://www.***********/**********.html) then post that script so we can see the differences
alex30
Jun 27th, 2007, 03:31 AM
Randem,
I will try the Inno Script, but I still don't know whether to install msinet.ocx on XP or no.
randem
Jun 27th, 2007, 03:33 AM
Run ********** (one word) and we will see what it says to do first...
alex30
Jun 28th, 2007, 02:18 AM
Randem,
I tried the ********** and that's whai I've got:
[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
randem
Jun 28th, 2007, 02:21 AM
I know they are MISSING files. You must tell ********** where to search for them since you are running in SAFE mode.
alex30
Jun 28th, 2007, 02:29 AM
How can I tell it to **********?
randem
Jun 28th, 2007, 02:48 AM
By adding the path in the search path area...
alex30
Jun 28th, 2007, 02:50 AM
Should I enter the path manually in the scrip or there is another way?
randem
Jun 28th, 2007, 02:51 AM
In the program so it can search for the files (Search Path Area). Where the other paths are...
randem
Jun 28th, 2007, 03:03 AM
Search Path Area...
alex30
Jun 28th, 2007, 03:11 AM
Tanks Randem,
I've created script with ********** and here are the results:
Without **********:
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 **********:
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.
randem
Jun 28th, 2007, 06:48 PM
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.
Source: c:\windows\system32\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
alex30
Jun 28th, 2007, 11:11 PM
I thought that "OnlyBelowVersion: 0,6" would not install the file on Vista.
Am I correct?
randem
Jun 28th, 2007, 11:13 PM
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?
alex30
Jun 29th, 2007, 04:46 AM
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.
randem
Jun 29th, 2007, 01:35 PM
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.
randem
Jul 2nd, 2007, 12:37 AM
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...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.