DrD
22nd November 2004 10:29 UTC
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
Joel
22nd November 2004 14:53 UTC
yep, known.
DrD
22nd November 2004 21:12 UTC
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
kichik
23rd November 2004 19:04 UTC
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.
DrD
23rd November 2004 22:55 UTC
thanks for this precision!