Results 1 to 7 of 7

Thread: [RESOLVED] Inno setup problems...

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    177

    Resolved [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: "compilerefault.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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inno setup problems...

    Moved to Application Deployment

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno setup problems...

    That installation is a little short. Please read this Installer Problems

    Inno Setup also has a very good help section...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    177

    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

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

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

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    177

    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

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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
  •  



Click Here to Expand Forum to Full Width