I am using the UAC v0.0.11d plugin (Unicode dll). After reading and trying out the Readme, Wiki pages and forum posts, I still have some questions.
I am running Windows 7 32Bit. When the UAC is enabled all works fine. But when I switch off the UAC the plug-in dialog for the run as pops up. It allows to use the current (Standard) user by default. This is not wanted in my case. So I tried to put the file UAC.LNG (example taken from the Readme file) in NSIS Plugin dir and to set HideCurrUserOpt=1. But with no result. Did I miss something?
I don't want the Current User option in any Windows version.
(Found this thread here http://forums.shoutcast.com/showthread.php?t=291307 but didn't help me)
And as far as I understood the whole concept, UAC is only available/ supported in Vista and Win 7. Anything to take care of for all other versions to make sure that the installer runs with Admin privileges?
Next thing I would like to know if there is any way other than the one described in this thread http://forums.winamp.com/showpost.ph...93&postcount=8 to pass variables and/ or stack values from the outer to the inner process? The other way round there is UAC::StackPush.
On the UAC Wiki page under Important Notes (http://nsis.sourceforge.net/UAC_plug-in#Important_Notes) is written:
3. When a standard or limited user supplies administrator information into the Run As dialog, you may experience permissions trouble with any extracted file. For example, if a Windows 2000 standard user supplies administrator info into the Run As dialog, and the NSIS installer extracts an .exe file, then trying to call that .exe through an Exec can fail. If this is a problem, you will want to use the AccessControl plug-in.Does this belong to all Windows versions?
Because during installation my installer extracts/ copies a "vcredist_x86.exe" file to the Instdir which is then being executed by ExecWait and after extraction it is deleted.
So do I have to use the AccessControl plug-in too? Or just in case the initial user isn't a member of the Admin group?
BTW: Would it make sense to "bypass" the whole UAC elevation thing if version (WinVer) is one prior to Vista and/ or (UserInfo) reports that the member has already Admin privileges? If so, how to do it best?
Maybe it will be helpful if I describe in short what the installer needs to do:
The installer needs to be run by an Admin process token to install the program to $PROGRAMFILES and write entries to HKLM. But it also needs to check for existance of some files in the users (the initial user - not the one who granted the privileges) $APPDATA dir and read + write to HKCU.
Many thanks for your help!
Gunther
PS: And sorry for opening a new thread, but IMHO it makes more sense for future users also using UAC plugin to have it all in one post. Especially because the search function of the forum denies some of the logical keywords as being to long and with other ones it finds no results even if there are respective posts. These you can only find with the help of Google & Co.