Archive: Help with install directory


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.


How do you set/get the $INSTDIR in the first place since the error will most likely be there.

Vytautas


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.


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


Excellent, that's the one. Thanks for your help and the quick response.

-Simon