|
-
Sep 27th, 2007, 12:46 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Inno setup problems...
Hi !
Started to use Inno Setup for my developed VB-applikation. I was able to make the script working, included all the sys- and ocx-files. Then I compiled !
Ev'rything seemed to work out just fine. I got a self exstracting exe-file, then I tried to install my program with no problem, and I also had a shortcut on my desktop...
But - instead of generate files in the working directory, decided in the installation, all the files were placed on the desktop for some reason.
Ok - I rewrote my program and added a complete path to all file opening command lines, despite it should not be necessary to do so... But this efford had no effect - besides my shortcut icon on the desktop it still developed files that belongs to the working directory.
So - in despite of good tracing in my program, the program itself cannot find its files, and I have a 'runtime error - path not found...'
Found something on the Inno-website about "Workingdir:" But nowhere anything that made sense where to put this line in the script. Just a small fraction of an explanation about {icon}, that was a dead end...
Please, if someone have an experience....
My script: (some swedish words - sorry...)
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Programname
AppVerName=Program + version
AppPublisher= Home
AppPublisherURL=http://...
AppSupportURL=http://....
AppUpdatesURL=http://....
DefaultDirName={pf}\mapp name
DefaultGroupName=Program name
InfoBeforeFile=G:\VB-program\Program name\Version 4\Rutinkoder\InstallInfo
OutputDir=G:\VB-program\Programname\Version 4\Install
OutputBaseFilename=Programname-setup
PrivilegesRequired=admin
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler efault.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
; begin VB system files
; (Note: Scroll to the right to see the full lines!)
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\stdole2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\oleaut32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\olepro32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\asycfilt.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile
Source: "G:\VB-program\Programnamn\Version 4\Install\vbfiles\comcat.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
; end VB system files
Source: "C:\Windows\System32\MSCAL.OCX"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Windows\System32\COMDLG32.OCX"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "G:\VB-program\Programnamn\Version 4\Install\Program.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "G:\VB-program\Programnamn\Version 4\Install\EtikettInfo.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "G:\VB-program\Programnamn\Version 4\Install\etikett.jpg"; DestDir: "{app}"; Flags: ignoreversion
Source: "G:\VB-program\Programnamn\Version 4\Install\etikett_saknad.JPG"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Programnamn"; Filename: "{app}\Program.exe"
Name: "{commondesktop}\Programnamn"; Filename: "{app}\Program.exe"; Tasks: desktopicon
[Run]
Filename: "{app}\Program.exe"; Description: "{cm:LaunchProgram,Programnamn}"; Flags: nowait postinstall skipifsilent
WorkingDir: "{app}"; Filename: "{app}\Program.exe"
What about the "Workingdir:..." Is it on the right place, and should it be on more than one line...?
/Karl-Erik
-
Sep 27th, 2007, 12:52 PM
#2
Re: Inno setup problems...
Moved to Application Deployment
-
Sep 27th, 2007, 03:26 PM
#3
Re: Inno setup problems...
That installation is a little short. Please read this Installer Problems
Inno Setup also has a very good help section...
-
Sep 27th, 2007, 04:05 PM
#4
Thread Starter
Addicted Member
Re: Inno setup problems...
Too short, you said ! ?
So there must be something missed then in the script....
I'm not trained to see what, so please give me some hint... The problem is limited - my files lives on desktop in stead of the app directory.
The help in Inno setup says almost nothing about Workingdir, where to place it in the script. It must be some important issue (?)
Too much to read and try to understand in your site, that you're pointed out..
Last edited by Karl-Erik; Sep 27th, 2007 at 04:08 PM.
Reason: Forgotten line
-
Sep 27th, 2007, 05:46 PM
#5
Re: Inno setup problems...
WorkingDir is not a parameter you can use on it's on line, so that line has no relevance and should have caused an error in the compile...
-
Sep 29th, 2007, 03:27 AM
#6
Thread Starter
Addicted Member
Re: Inno setup problems...
I've found a solution for my installation problems !
The entire problem was that my program was misplaced the working files on the desktop instead of in the working directory, where they should be.
Just the desktop icon caused this problem, because it didn't pointed out anything at all as a starting directory. So the actually problem was connected to the desktop icon..
But from the Start Menu it worked out all right
Inno Setup should include this lines for [Icons]. One for the Start Menu and one for the desktop icon, and both lines must include "Workingdir:..."
[Icons]
Name: "{group}\MyProgram"; Filename: "{app}\MyProgram.exe" ;Workingdir: "{app}"
Name: "{commondesktop}\Myprogram"; Filename: "{app}\MyProgram.exe"; Tasks: desktopicon ;Workingdir: "{app}"
After that all works just as expected and wanted....
/Karl-Erik
-
Sep 29th, 2007, 09:58 PM
#7
Re: [RESOLVED] Inno setup problems...
Inno Script does that automatically. Not to be confused with the Inno Setup Wizard which does not.
But they confuse it anyway...
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
|