Archive: variable $INSTDIR changing value


variable $INSTDIR changing value
Hi,
I experienced a problem
with the value of $INSTDIR
changing ... itself ... for the step of uninstallation!

any ideas where is the problem
....
I tried to badly solve the problem
by setting a new variable which would
take $INSTDIR value
but this variable has no value set?


here is the code I used
var SORTIE
Section sortie
StrCpy $SORTIE "$INSTDIR"
SectionEnd

thanks


yep, known.


From what I've read from the linked discussion I understood that $INSTDIR is not fixed and will take the value the uninstaller.exe has been created in !
am I right?

what the vriable not set? (of my solution to my problem)
thanks anyway


Yes, you are correct. $INSTDIR is the directory in which the uninstaller is contained.

As for $INSTDIR not having a value, according to your code, it seems like you're setting a variable in the installer and then try to read it in the uninstaller. That won't work unless you save that variable value somewhere like the registry and read it back in the uninstaller.


thanks for this precision!