Old 22nd November 2004, 09:29   #1
DrD
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
DrD is offline   Reply With Quote
Old 22nd November 2004, 13:53   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
yep, known.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 22nd November 2004, 20:12   #3
DrD
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
DrD is offline   Reply With Quote
Old 23rd November 2004, 18:04   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 23rd November 2004, 21:55   #5
DrD
Junior Member
 
Join Date: Nov 2004
Posts: 3
thanks for this precision!
DrD is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump