Im running the installer in windows 2000 server, and it works correctly. But when i run in windows xp it doesnt write the .ini file correcly, in the cacic_dir field where it writes the $R0 variable, it writes an error instead. Am i using something that doesnt work in windows xp?
here is the part of the installer related to the .ini file where the error happens. the other fields of this file are written correctly.
pastebin.com/m8a90d8d
Error in Windows XP
4 posts
You have switch /SHORT on StrCpy. It probably should be in GetFullPathName.
Edit: But code like that shouldn't even compile. That error comes from AccessControl plug-in, because you have the "pop $R0" after GetFullPathName.
So after the AccessControl:: lines change the code to this...
PaR
Edit: But code like that shouldn't even compile. That error comes from AccessControl plug-in, because you have the "pop $R0" after GetFullPathName.
So after the AccessControl:: lines change the code to this...
The next thing you have to figure out is why AccessControl is giving you a error....
pop $R0
GetFullPathName /SHORT $R0 $INSTDIR
StrCpy $R0 $R0 "" 3
...
PaR
well i fixed that part... but the main problem is the permissions.
in the administrator account it works perfectly, but in a normal windows xp account it doesnt even create the folder in Program Files... how can i set the correct permissions to allow everything?
in other words, is it possible to give permissions to a normal user install the program (just by using the nsis installer) in Program Files??
in the administrator account it works perfectly, but in a normal windows xp account it doesnt even create the folder in Program Files... how can i set the correct permissions to allow everything?
in other words, is it possible to give permissions to a normal user install the program (just by using the nsis installer) in Program Files??
a normal user can't write to programfiles, end of story