Archive: install problem on win2003server


install problem on win2003server
i made my setup.exe and i can correctly install it under windowsXP, but on win2003server i'm able to install my application just if i'm admin, if i log in on win2003server as normal user i can't install and neither uninstall the application.
When install my app as admin on win2003server all the user all able to run the app, but no one can't uninstall it.
If i'm a normal user i can just run the app.
The normal users have a not-restricted account, why can't they remove the app and install the app?


a normal user can NOT write to $programfiles or the HKLM part of the registry


ok.
but if i'm admin and i install the app, all my users can run it, my app creates a folder in
C:\Documents and setting\username\myapp
when the admin uninstall the app there is away to delete all the myapp dirs in each user space?

in pseudo code:
for( i = 0; i<alltheuser; i++ )
{
remove C:\Documents and setting\alltheuser[i]\myapp
}

thx
------------------------------
edit:
i've the same problem when i remove the the register keys in HKCU, the admin keys have been removed the users keys are not.
Any hint?


http://nsis.sourceforge.net/EnumUsersReg


thx for the script, but i have still a problem, with key i have to read to know all the users?


i have some questions about this script
http://nsis.sourceforge.net/EnumUsersReg

this is the section that call the function


Section
${EnumUsersReg} CallbackFunction temp.key
SectionEnd

i call CallbackFunction with a parameter temp.key
First question: who's temp.key? I have not defined any temp.key before

That's the function:
 
Function CallbackFunction

Pop $0

ReadRegStr $0 HKU "$0\Software\Microsoft\Internet Explorer" "Download Directory"
DetailPrint $0

FunctionEnd

Second question: CallbackFunction has not parameter in input, why do i call it with temp.key?
thx

temp.key is the registry key into which each user's hive will be loaded.


my problem is that i have to call:
${EnumUsersReg} CallbackFunction temp.key
into an unistall section, but i get an error in this way:

Function un.CallbackFunction 
Pop $0
ReadRegStr $0 HKU "$0\Software\Microsoft\Internet Explorer" "Download Directory"
DetailPrint $0
FunctionEnd


Section Uninstall
...
${EnumUsersReg} un.CallbackFunction temp.key
...
SectionEnd

any hint?

Prefix every function's name with "un." in that script. The errors should guide you to missed spots.