Prev Previous Post   Next Post Next
Old 27th October 2007, 16:08   #1
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
About The Environment Variable

In the setup,some files should be insted to th directory "%AllUsersProfile%\Application Data\",but in NSIS help file,I didn't found any variable like "$AllUsersProfile",in Windows XP Pro,the default directory of "$AppData" is "%UserProfile%\Application Data\" or the full path "C:\Documents and Settings\Administrator\Application Data\".So I write the Script as follow:

SetOutPath "$%AllUsersProfile%\Application Data"

The problem is,in my computer,the environment variable "$AllUsersProfile" actually is the path "%SystemDrive%\Users\All Users",so if the setup is running in other computer,the files are also copy to the path "C:\Users\All Users",But,this is not what I want,I want the files be insted to their default "C:\Documents and Settings\All Users",how to write the script?it puzzled me.
jiake is offline   Reply With Quote
 
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