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
Printable View
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
Moved to Application Deployment
You have a subscript out of range error. That is an application error. You don't get that in the IDE?
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
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.
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
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...
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.
Okay, I will give that a try. Thanks
Okay but when I compile with Inno like this
I get issues. Can my main prob be here ? ThanksHTML 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]
Using the Inno Setup Wizard....
Thats right. Thats the script Ive been using.
No wonder you have so many deployment problems...
Ive tried the other way round same thing. What should I be after to get around . Thanks
What other way around is that?
Without using the wizard thats what I was trying to mean. Thanks
Have you tried the other package? You know the one that's been banned here?
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
See if this works for you http://www.***********/cgi-bin/randem...100Release.zip
Nope, may I know which one was banned and why. Cheers
Why, Probably because It actually helps ;) and it's not PDW...