Page 1 of 3 123 LastLast
Results 1 to 40 of 91

Thread: Inno Setup and Vista Errors

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Inno Setup and Vista Errors

    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
    Last edited by JPnyc; May 16th, 2007 at 09:37 AM. Reason: please don't post contact info on the forum. Thank you

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    That should happen... you should not be deploying VB Runtime files on Vista.

  3. #3

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    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
    Last edited by springer2003; May 16th, 2007 at 09:33 PM.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    add OnlyBelowVersion: 0,6 to each of the vb runtime file line.

  5. #5

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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



    ; 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

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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.

  7. #7

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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.

  9. #9

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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.

  10. #10
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    Check MartinLiss's signature for a control to help you with resizing forms and controls. This can be done with a little effort.

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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...

  12. #12

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    What don't you know how to do?

    Install **********
    Run **********
    Compare Output with Inno Setup Wizard Output

  14. #14

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    Download and Install ********** 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.

  16. #16

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    Download and Install ********** 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

  17. #17
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    You alter Inno Setup to detect and install the appropriate files.

  18. #18

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  19. #19
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    Looks like a WINNER!!!

  20. #20

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  21. #21
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    That depends on if your app need to run witrh admin priviledges. If so then you include it.

  22. #22

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  23. #23
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    ********** - One word...

    Try adding this to the script:
    Code:
    [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 to help with these parameters

  24. #24

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    ********** - One word...

    Try adding this to the script:
    Code:
    [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 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

  25. #25
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    Not really but nothing should come before [setup] for readability I always place the [Registry] section last.

    No pain at all...

  26. #26

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  27. #27
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    What version on Inno Setup do you have?
    And what about those lines?

  28. #28

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  29. #29
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    ********** 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.

  30. #30

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    ********** 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

  31. #31

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    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

  32. #32
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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.

  33. #33

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    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

  34. #34
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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.

  35. #35

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  36. #36
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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.

  37. #37

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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

  38. #38
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    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:
    Code:
    [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
    Last edited by randem; May 21st, 2007 at 08:34 PM.

  39. #39

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    32

    Re: Inno Setup and Vista Errors

    Quote Originally Posted by randem
    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:
    Code:
    [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

  40. #40
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and Vista Errors

    I would hope that you need Admin rights to even create these entries for any virus would also run as administrator and protect itself.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width