Skip to content
⌘ NSIS Forum Archive

odd problem with installdir

4 posts

Maurizio#

odd problem with installdir

Hi,
I have been using NSIS for quite a while now and it has been working wonderfully. However today I found out that on some computers something strange happens.
On most computers, including my own, when I am prompted for the destination folder, I get "C:\Program Files\My application name v6", which is correct; on other computer, I end up with some other, completely random paths, as "C:\Program Files\SigmaTel\C-Major Audio" for example.
installdir is setup as
InstallDir "$PROGRAMFILES\\My application name v6" 
in the script, so I do not understand where is the random path name coming from.
Any idea?
Thanks in advance for your help, much appreciated.
Maurizio
Maurizio#
InstallDirRegKey in my script is set as

InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" 
am i missing something?
this happens on computers which have never seen my application...so there is no previous installation path.

*runs to read docs on InstallDirRegKey*
engine#
Check the iffy computer to find out whether there is a regkey conflicts with your ${PRODUCT_DIR_REGKEY}.