View Single Post
Old 13th June 2012, 13:19   #1
mike_123
Junior Member
 
Join Date: Jun 2012
Posts: 5
Copy/delete file in (%programdata%)

Hello,

I'm new user to Nsis .

Would you be so kind as to help solving this problem.

I'm trying to copy a file to ProgramData (C:\ProgramData) in Nsis.


But I couldn't find the path of %programdata%


For exmaple deleting file from Programdata;


RMDir /r "$ALLUSERSAPPDATA\testfile"
Sleep 500

or

RMDir /r "$ALLUSERSPROFILE\testfile"
Sleep 500

both are not working.

Nsis constant (app) is showing me this path;

[$APPDATA]
current APPDATA=C:\Users\xxx\AppData\Roaming
all APPDATA=C:\ProgramData

$APPDATA is referring to %appdata% not to %programdata%

I'm using Windows 7.

And furthermore do I need a admin permission to be able to copy/delete files.



Thank you in advance.
mike_123 is offline   Reply With Quote