|
|
#1 |
|
Junior Member
Join Date: Nov 2004
Posts: 3
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2004
Posts: 3
|
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 |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2004
Posts: 3
|
thanks for this precision!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|