I'm creating an MSI using WiX and was just running some tests to verify that
the installation UI sequence is correct for both per-user and per-machine
installs, which led me to look at the Privileged flag.  I'm using WiX 3.5 on
Windows 7, 64-bit.  In the log it appears that Privileged is being forced to
1 always.  I found various notes on the net about how this was done because
people didn't generally use Privileged correctly, and the following post
from Bob Arnson from a couple years ago:
===========

Andreas Mertens wrote:
> I choose to install for the current user (PerUser), and when the install is
> executed, it prompts me for the admin credentials of User A (admin). ???  If
> I provide these credentials, the install completes, with the file installed
> correctly for the current user.
>

Before MSI 5.0 on Windows 7, there's no way to do both per-user and
per-machine installs from the same package without prompting for
elevation: The bit that tells MSI the package is per-user is set on the
package and can't be modified during installation. It's also entirely
possible that WixUI_Advanced doesn't handle per-user installs correctly;
I wrote it originally for the WiX installer, which is per-machine, and
never had opportunity to test a real per-user package.

> 2) Is there a way to turn this off?  We don't want users to be presented
> with the prompt to verify admin credentials when doing a PerUser install.
>

On Vista, that requires two packages, one per-machine and one per-user.

-- sig://boBhttp://joyofsetup.com/

==============

What I'm trying to find out is whether this post (from 10/31/09) is
still in force (I assume so.)
I'm also trying to make sure I understand what it's saying.  Am I
correct that this means that I
now have to offer two different MSIs, one for per-user and one for
per-machine installs, if I need
to support both?  If not (i.e., if I can create a single MSI that
really can correctly handle both),
what am I supposed to use to decide if the user does or does not
actually have admin privileges
to install per-machine?  What should I be checking to test for admin
privileges, if not Privileged?

Thanks much for any light you can shed on this!
Dave
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to