Sep 10th, 2007, 05:53 AM
#1
Thread Starter
Hyperactive Member
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
Sep 10th, 2007, 06:11 AM
#2
Re: Inno Setup Problems
Moved to Application Deployment
Sep 10th, 2007, 07:18 PM
#3
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?
Sep 11th, 2007, 09:44 AM
#4
Thread Starter
Hyperactive Member
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
Sep 11th, 2007, 03:13 PM
#5
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.
Sep 12th, 2007, 04:50 AM
#6
Thread Starter
Hyperactive Member
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
Sep 12th, 2007, 04:54 AM
#7
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...
Sep 12th, 2007, 04:57 AM
#8
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.
Sep 12th, 2007, 05:18 AM
#9
Thread Starter
Hyperactive Member
Re: Inno Setup Problems
Okay, I will give that a try. Thanks
Sep 12th, 2007, 05:30 AM
#10
Thread Starter
Hyperactive Member
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
Sep 12th, 2007, 05:35 AM
#11
Re: Inno Setup Problems
Using the Inno Setup Wizard ....
Sep 12th, 2007, 08:17 AM
#12
Thread Starter
Hyperactive Member
Re: Inno Setup Problems
Thats right. Thats the script Ive been using.
Sep 12th, 2007, 04:54 PM
#13
Re: Inno Setup Problems
No wonder you have so many deployment problems...
Sep 13th, 2007, 01:51 AM
#14
Thread Starter
Hyperactive Member
Re: Inno Setup Problems
Ive tried the other way round same thing. What should I be after to get around . Thanks
Sep 13th, 2007, 02:04 AM
#15
Re: Inno Setup Problems
What other way around is that?
Sep 13th, 2007, 02:39 AM
#16
Thread Starter
Hyperactive Member
Re: Inno Setup Problems
Without using the wizard thats what I was trying to mean. Thanks
Sep 13th, 2007, 02:46 AM
#17
Re: Inno Setup Problems
Have you tried the other package? You know the one that's been banned here?
Sep 13th, 2007, 02:52 AM
#18
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
Sep 13th, 2007, 02:54 AM
#19
Sep 13th, 2007, 02:54 AM
#20
Thread Starter
Hyperactive Member
Re: Inno Setup Problems
Nope, may I know which one was banned and why. Cheers
Sep 13th, 2007, 02:57 AM
#21
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
Forum Rules
Click Here to Expand Forum to Full Width