Archive: $INSTDIR picking up on prev installation


$INSTDIR picking up on prev installation
Hi all,

I'm creating two different installers from the same machine.

Once I install one software, the installer for the other one picks the same $INSTDIR value of the first installation, disregarding the value defined in SetOutPath.

This creates a problem because the new software is basically installed on the same install folder of the other software. All I want is to have each software installed in two different places, not on top of each other.

Here's my code:

Section "MainSection" SEC01

SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "${PRODUCT_EXE}"
...

SectionEnd
Any ideas to address this are greatly appreciated.

Cheers,

Marty

I don't see how that would be happening if they are two separate installer executables unless they both use the same InstallDirRegKey, perhaps.. in which case: make sure they don't use the same InstallDirRegKey.

If they are -not- two separate installer executables, then all you'd need is a second Directory page to specify a different folder for the second location;
http://nsis.sourceforge.net/Setting_...Directory_Page