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