UAC on Vista
Posted 11 July 2006 - 13:09
I have an application which will install only if the user is an admin user. On Vista, if i login as "Administrator" the application gets installed. However, if i login as a user who is a member of the "Administrators" group the application fails to install. It fails in one of the launch conditions which checks for "Adminuser". It does not even prompt for admin credentials.
I have a couple of questions here,
1. How is an Administrator different from a user who is a part of the admin grp?
2. What does the condition "Adminuser" mean? Does it check for users in admin grp or if the user is Administrator himself?
3. How can i set elevated privileges for the user?
Posted 12 July 2006 - 11:56
Does your setup exit in the UI sequence or in the Execute sequence? Can you post the relevant lines from the log?
Are you launching your setup using a setup.exe (or the like) or by double-clicking the .msi file?
What's the value in the Word Count field of the Summary Information in your .msi? Does it have bit 8 set?
On which build of Vista are you testing?
Stefan Krüger
InstallSite.org twitter facebook
Posted 12 July 2006 - 12:22
-Stein Åsmul
Posted 12 July 2006 - 15:35
From the logs, i can find this error
Error 2835 : The control erroricon was not found on dialog SetupError
Internal error 2835: ErrorIcon, SetupErrorIcon, SetupError
What does this error mean?
I don't get this error while installing as administrator. It comes when the user who installs is a member of administrator group.
How is an administrator different from a user who is a member of the administrator group?
Posted 12 July 2006 - 16:27
-Stein Åsmul
Posted 12 July 2006 - 16:30
-Stein Åsmul
Posted 12 July 2006 - 16:31
-Stein Åsmul
Posted 13 July 2006 - 13:24
QUOTE |
Error 2835 : The control erroricon was not found on dialog SetupError Internal error 2835: ErrorIcon, SetupErrorIcon, SetupError |
The real error is probably a few lines above this one.
Stefan Krüger
InstallSite.org twitter facebook
Posted 14 July 2006 - 13:48
Well, after some reading on UAC i get to understand that --
1. Even if the user is a member of the local admin grp, the user is like a standard user only and will be prompted for credentials/consent while accessing apps that require admin privileges.
If i got that right, i would like to know
1. What changes should be done in any application(installer) so that it prompts for consent/credentials?
2. The installer i have is built for pre-vista OS and hence fails as it tries to write to windows folder. Why is it not prompting the user for credentials?
Any help will be appreciated. Thanks in advance.
Posted 14 July 2006 - 14:17
-Stein Åsmul
Posted 19 July 2006 - 14:59
However, installing thr' the msi fails.
An extract from http://www.microsoft...8ff918c281.mspx says
Windows Vista includes new a new heuristic installer detection technology that detects installer files at the time of execution.
Installer detection works in two areas:
1. Before a process is created, the following attributes are checked to determine whether this is an installer:
1. If the filename includes the words "install" or "setup".
2. If the file description contains the words "setup" or "install".
3. If the application is identifiable as a Wyse install executable or an InstallShield install executable.
4. Known executable "exe" unpackers/installers are detected as installers.
2. During an MSI install:
1. Installer detection checks the MSI package to determine whether it has any explicit actions that would require the user to be an administrator.
I tried changing the msi name to include the word "install". This still does not help.
What needs to be done to ensure there is prompt for consent on invoking the msi?
Posted 16 August 2006 - 10:10
I have a problem like that.
My Custom Action needs admin privileges to run and it works (only) if I run installation using exactly Administrator account.
Word Count Summary property doesn't contain "8 bit".
What can I do for "asking" of elevated privileges before install like for applications with corresponding information in their manifests?
Posted 06 September 2006 - 09:58
QUOTE (Sedov Roman @ 2006-08-16 10:10) |
Hello! I have a problem like that. My Custom Action needs admin privileges to run and it works (only) if I run installation using exactly Administrator account. Word Count Summary property doesn't contain "8 bit". What can I do for "asking" of elevated privileges before install like for applications with corresponding information in their manifests? |
You should set 4th bit in WordCount Summary property.
See here for more information:
http://community.mac...p?t-160179.html
Posted 11 September 2006 - 16:57
QUOTE (igodunov @ 2006-09-06 09:58) |
[QUOTE=Sedov Roman,2006-08-16 10:10] .. You should set 4th bit in WordCount Summary property. See here for more information: http://community.mac...p?t-160179.html |
I'm mistaken in previous post. But the link was right
There is another one that contain direct instructions on package creation:
http://msdn.microsof...or_packages.asp
Posted 17 September 2006 - 17:56
Posted 18 September 2006 - 12:21
QUOTE (wleara @ 2006-09-17 17:56) |
What exactly was the resolution here? I have this same problem and can't get it fixed. TIA! |
1 Use conditions based on Privileged property.
2 Omit Bit 3 from the value of the Word Count Summary Property to indicate that the package can be required to be elevated.
3 To ensure you CAs working properly - place every custom action that modifies system to the in-script section (use deferred) with no impersonation.
Posted 18 September 2006 - 13:19
Posted 20 September 2006 - 16:33
QUOTE (Sedov Roman @ 2006-09-18 13:19) |
How Windows Vista asked for Administator's credentional when installs product without Bit 8 of Word Count field. |
>Installer detection checks the MSI package to determine whether it has any explicit actions that would require the user to be an administrator
I suppose installer can't detect whether CA (especially binary) affect system. So You should design such actions in appropriate style (deferred with no impersonation).