pjm31
30th March 2004 14:33 UTC
Detect environment settings (newbee)
Hi,
I'm looking for a script that would detect on which unit is located the "Documents and Settings" repertory. (It may have moved to D:, E:, ....).
How can I store in variable $my_ds_ddrive the first letter of the string $HOMEDIR ?
Can anybody help me ? ::(
Thanks a lot :)
evilO
30th March 2004 15:01 UTC
Hi :)
I think that'll do the trick:
StrCpy
$0$DOCUMENTS1
MessageboxMB_OK"Documentsdirectory:$DOCUMENTS$\nLetter:$0"
BTW, it's "$DOCUMENTS" the constant you're looking for. Other constants are available in the doc :
http://nsis.sourceforge.net/Docs/
Voila ;)
evilO/Olive