Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 13th July 2009, 20:55   #1
Bartjuh_09
Junior Member
 
Join Date: Jul 2009
Posts: 2
Post constants: "public" folder

I want to use the folder %PUBLIC% in an installer (in Vista C:\Users\Public\), but there is no constant variable for this.
The only solution I could think of is "SetShellVarContext all", and then use the folder $DOCUMENTS\..
This works for File and SetOutPath but not for RMDir.
Is there a more elegant way?
Shouldn't $PUBLIC become a constant variable?
Bartjuh_09 is offline   Reply With Quote
Old 13th July 2009, 23:21   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
You could use ReadEnvStr.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 15th July 2009, 21:32   #3
Bartjuh_09
Junior Member
 
Join Date: Jul 2009
Posts: 2
Wow great, thanks!
Bartjuh_09 is offline   Reply With Quote
Reply
Go Back   Winamp 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