Results 1 to 21 of 21

Thread: Inno Setup Problems

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Inno Setup Problems

    Hi, I am trying to build a deployment package using inno setup however when I launch the program after deployment I get a run time error 9. What am I missing. Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inno Setup Problems

    Moved to Application Deployment

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

    Re: Inno Setup Problems

    You have a subscript out of range error. That is an application error. You don't get that in the IDE?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Why doesnt this happen in the IDE and how can I anticipate this from the IDE interface or prevent this from happening in the application interface. Thanks

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

    Re: Inno Setup Problems

    Do you have Option Explicit on and are you using any sort of error checking? This is an relative easy thing to check for. Show the location in your code where this happens.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Here is the code, I tried turning on the option explicit but I still got caught. The error fires when I try to click on the settings option in tray. Thanks
    Attached Files Attached Files

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

    Re: Inno Setup Problems

    You should always run with full compile in the IDE... As soon as I started it I got "Variable not found" This could be the first of many problems...

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

    Re: Inno Setup Problems

    I get no error after using the "Settings" from the tray I corrected your other errors. Also you use On Error Resume Next a lot. You could be hiding other issues.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Okay, I will give that a try. Thanks

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Okay but when I compile with Inno like this

    HTML Code:
    [CODE]
    ; -- Example1.iss --
    ; Demonstrates copying 3 files and creating an icon.
    
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
    
    [Setup]
    AppName=UBC Backup Utility 
    AppVerName= Version 1.0
    DefaultDirName={pf}\My Program
    DefaultGroupName=My Program
    UninstallDisplayIcon={app}\Backups.exe
    Compression=lzma
    SolidCompression=yes
    OutputDir=userdocs:Inno Setup Examples Output
    
    [INI]
    Filename: "C:\Backup.ini"; Section: "InstallSettings"; 
    
    
    [Files]
    Source: "C:\Backup.exe"; DestDir: "{app}"
    
    
    ; begin VB system files
    Source: "c:\vbfiles\stdole2.tlb"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
    Source: "c:\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "c:\vbfiles\oleaut32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "c:\vbfiles\olepro32.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "c:\vbfiles\asycfilt.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile
    Source: "c:\vbfiles\comcat.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    ; end VB system files
    ;
    
    
    
    
    [/CODE]
    I get issues. Can my main prob be here ? Thanks

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

    Re: Inno Setup Problems

    Using the Inno Setup Wizard....

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Thats right. Thats the script Ive been using.

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

    Re: Inno Setup Problems

    No wonder you have so many deployment problems...

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Ive tried the other way round same thing. What should I be after to get around . Thanks

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

    Re: Inno Setup Problems

    What other way around is that?

  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Without using the wizard thats what I was trying to mean. Thanks

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

    Re: Inno Setup Problems

    Have you tried the other package? You know the one that's been banned here?

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

    Re: Inno Setup Problems

    This is what I get when I use it:
    Code:
    ; ********** Version 7.2  Build 1
    ; Randem Systems, Inc.
    ; Copyright 2003-2007
    ; Website:  http://www.***********
    ; Support:  http://www.**********.com/cgi-bin/discus/discus.cgi
    ; OS: Windows XP 5.1 build 2600 (Service Pack 2)
    
    ; Date: September 12, 2007
    
    ;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\**********\********** 7.0\VB 6 Redist Files\
    ;     Visual Basic Project File (.vbp):   E:\Works\tendemo\Backup\Backup.vbp
    ; Inno Setup Script Output File (.iss):   E:\Works\tendemo\Backup\Scripts\Backup Release.iss
    ;         Script Template Files (.tpl):   C:\Program Files\Randem Systems\**********\********** 7.0\Templates\Release.tpl
    ;                                     :   C:\Program Files\Randem Systems\**********\********** 7.0\Templates\VBRuntime.tpl
    ;                                     :   C:\Program Files\Randem Systems\**********\********** 7.0\Templates\Vista.tpl
    
    ; ------------------------
    ;        References
    ; ------------------------
    
    ; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
    ; OLE Automation - (STDOLE2.TLB)
    
    
    ; --------------------------
    ;        Components
    ; --------------------------
    
    ; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
    
    
    [Setup]
    AppId=Backup Release
    
    ;-----------------------------------------------------------------------------------------------------
    ; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
    ;-----------------------------------------------------------------------------------------------------
    
    AppName=Backup
    AppVerName=Backup 1.0.0
    AppPublisher=POS Hungaria
    
    ;-----------------------------------------------------------------------------------------------------
    
    AppVersion=1.0.0
    VersionInfoVersion=1.0.0
    AllowNoIcons=no
    DefaultGroupName=
    DefaultDirName={code:GetAppFolder}\
    AppCopyright=
    PrivilegesRequired=Admin
    MinVersion=4.0,4.0sp6
    Compression=lzma
    OutputBaseFilename=Backup100Release
    
    [Tasks]
    Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
    
    [Files]
    Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
    Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
    Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
    Source: c:\program files\randem systems\**********\********** 7.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags:  uninsneveruninstall 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:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
    Source: e:\server data\randem\develop\deployable system files\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    
    [INI]
    Filename: {app}\Backup.url; Section: InternetShortcut; Key: URL; String: 
    
    [Icons]
    Name: {group}\Backup; Filename: {app}\Backup.exe; WorkingDir: {app}
    Name: {group}\{cm:ProgramOnTheWeb, Backup}; Filename: {app}\Backup.url
    Name: {group}\{cm:UninstallProgram, Backup}; Filename: {uninstallexe}
    Name: {commondesktop}\Backup; Filename: {app}\Backup.exe; Tasks: desktopicon; WorkingDir: {app}
    
    [Run]
    Filename: {app}\Backup.exe; Description: {cm:LaunchProgram, Backup}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
    
    [UninstallDelete]
    Type: files; Name: {app}\Backup.url
    
    [Code ]
    function GetAppFolder(Param: String): String;
    begin
      if InstallOnThisVersion('0,6', '0,0') = irInstall then
        Result := 'C:\Users\Public\' + ExpandConstant('{username}') 
      else
        Result := ExpandConstant('{pf}');
    end;
    
    
    [Comments]
    ; In the folder where your installation was created is a folder named Support. In this folder you will place the AutoOSUpdater, .Net Framework and the Scripting Runtime installations
    ; that you want to deploy with your installation. Both you installation exe and this folder need to be deployed fo your installation to work properly

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

    Re: Inno Setup Problems


  20. #20

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Re: Inno Setup Problems

    Nope, may I know which one was banned and why. Cheers

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

    Re: Inno Setup Problems

    Why, Probably because It actually helps and it's not PDW...
    Last edited by randem; Sep 13th, 2007 at 03:00 AM.

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