Alan_Grey
28th November 2003 10:39 UTC
Help with install directory
Hi,
I have a small problem with my installer. It works fine if the program isn't currently installed, but if it is it appends the install dir with \bin. If I then install it again it appends \bin\bin and so on.
This seems to be the relevant part:
Section "MainSection" SEC01
SetOutPath "$SYSDIR"
File "D:\SPHRepoLocal\Installer\bin\qt-mt320.dll"
SetOutPath "$INSTDIR"
SetOverwrite on
File "D:\SPHRepoLocal\Installer\License.txt"
SetOutPath "$INSTDIR\bin"
File "D:\SPHRepoLocal\Installer\sphere.exe"
Thanks for the help.
Vytautas
28th November 2003 11:18 UTC
How do you set/get the $INSTDIR in the first place since the error will most likely be there.
Vytautas
Alan_Grey
28th November 2003 13:41 UTC
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "install_sphere.exe"
InstallDir "$PROGRAMFILES\SPHERe 2.0"
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\sphere.exe" ""
ShowInstDetails show
ShowUnInstDetails show
It just sets it to program files\sphere 2.0, not sure where that \bin is coming from looking at this.
Thanks.
Vytautas
28th November 2003 13:52 UTC
Could you check the value of 'HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\sphere.exe' after the program has been installed to make sure it does not have 'bin' on the end of the path. This I think is the most probable cause of your error.
Vytautas
Alan_Grey
28th November 2003 13:58 UTC
Excellent, that's the one. Thanks for your help and the quick response.
-Simon