Archive: Strange problem InstallDir / InstallDirRegKey


Strange problem InstallDir / InstallDirRegKey
I am having a strange issue with my Installer... I am thinking perhaps its a bug.

I have these at the top of my installer:

InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
InstallDir "$PROGRAMFILES\Nar\Nargile"

The problem is, When I look at the Registry key written, its this:

C:\Program Files\Nar\Nargile\Nargile\C:\Program Files\Nar\Nargile\Nargile\Nargile.exe

On subsequent installations, the entire malformed string is displayed in the directory dialog.


NSIS doesn't write this string for you. InstallDirRegKey makes NSIS read the given registry key, but it would never write a new value there for you.

Your script is responsible of writing the new installation directory to that registry key and therefore the path duplication problem probably results from your script writing a bad value.