ltcabral
29th May 2008 18:02 UTC
Error in Windows XP
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
{_trueparuex^}
29th May 2008 22:22 UTC
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...
...
pop $R0
GetFullPathName /SHORT $R0 $INSTDIR
StrCpy $R0 $R0 "" 3
...
The next thing you have to figure out is why AccessControl is giving you a error.
PaR
ltcabral
3rd June 2008 04:06 UTC
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??
Anders
3rd June 2008 11:18 UTC
a normal user can't write to programfiles, end of story