PDA

Click to See Complete Forum and Search --> : Inno Setup Problems


tendemo
Sep 10th, 2007, 05:53 AM
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

Hack
Sep 10th, 2007, 06:11 AM
Moved to Application Deployment

randem
Sep 10th, 2007, 07:18 PM
You have a subscript out of range error. That is an application error. You don't get that in the IDE?

tendemo
Sep 11th, 2007, 09:44 AM
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

randem
Sep 11th, 2007, 03:13 PM
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.

tendemo
Sep 12th, 2007, 04:50 AM
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

randem
Sep 12th, 2007, 04:54 AM
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...

randem
Sep 12th, 2007, 04:57 AM
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.

tendemo
Sep 12th, 2007, 05:18 AM
Okay, I will give that a try. Thanks

tendemo
Sep 12th, 2007, 05:30 AM
Okay but when I compile with Inno like this


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





I get issues. Can my main prob be here ? Thanks

randem
Sep 12th, 2007, 05:35 AM
Using the Inno Setup Wizard....

tendemo
Sep 12th, 2007, 08:17 AM
Thats right. Thats the script Ive been using.

randem
Sep 12th, 2007, 04:54 PM
No wonder you have so many deployment problems...

tendemo
Sep 13th, 2007, 01:51 AM
Ive tried the other way round same thing. What should I be after to get around . Thanks

randem
Sep 13th, 2007, 02:04 AM
What other way around is that?

tendemo
Sep 13th, 2007, 02:39 AM
Without using the wizard thats what I was trying to mean. Thanks

randem
Sep 13th, 2007, 02:46 AM
Have you tried the other package? You know the one that's been banned here?

randem
Sep 13th, 2007, 02:52 AM
This is what I get when I use it:

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

randem
Sep 13th, 2007, 02:54 AM
See if this works for you http://www.***********/cgi-bin/randem/countdown.cgi?Backup100Release.zip

tendemo
Sep 13th, 2007, 02:54 AM
Nope, may I know which one was banned and why. Cheers

randem
Sep 13th, 2007, 02:57 AM
Why, Probably because It actually helps ;) and it's not PDW...