Try Packages/@InstallScope instead. It absorbs all those settings.

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  
http://www.firegiant.com/

-----Original Message-----
From: Carles Pina i Estany [mailto:car...@pina.cat] 
Sent: Wednesday, June 3, 2015 9:23 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] per-user per-app WiX installation


I'm using "InstallPrivileges="elevated" " but I never get the request for the 
privileges (Windows 7, on a non-admin account, other software request the 
privileges)

On Jun/03/2015, Carles Pina i Estany wrote:
> 
> TL;DR: How can I make MSI to ask the user for elevated privileges?
> 
> With the WixUI_Advanced I have the option to install the package 
> per-machine or per-user... so this is a good step.
> 
> If I could make the MSI package to request for elevated privileges 
> this would maybe be all (if the user grants: installs by default 
> per-machine, if the user doesn't give access per-user).
> 
> At the moment if it's a standard user the only option is per-user.
> 
> I just need the MSI to ask for elevated privileges.
> 
> Regards,
> 
> On Jun/03/2015, Carles Pina i Estany wrote:
> > 
> > Hello,
> > 
> > I'm migrating an existing NSIS installer to WiX. I use cpack for the 
> > project but I'll take care of the cpack issues.
> > 
> > This is a per-user / per-computer flow question.
> > 
> > The current NSIS does:
> > 
> > ----------
> > If the user executing the installer has admin privileges:
> >     By default it installs into C:\Program Files\BlaBla (per-computer)
> >     (user can change it, but C:\Program Files is the default one)
> > 
> > else:
> >     Windows shows the dialog to run the program as:
> >         ( ) Current User
> >         (X) Run the program as the following user: Administrator (by
> >             default)
> > 
> >         If the user selects "Current User":
> >             -per-user installation, in %APPDATA%\something
> > 
> >         If the user selects "Administrator":
> >             -user enters the password
> >             -per-computer installation (in C:\Program Files\BlaBla)
> > ----------
> > 
> > Any pointer what's the easiest way to do this using WiX?
> > I'm experimenting with things like Property Id ALLUSERS and 
> > MSIINSTALLERPERUSER but no success yet. More than debugging my 
> > attempt I'd like to know if this is possibl to do and some pointer 
> > to a more or less recent thing...
> > 
> > Thank you!
> > 
> > --
> > Carles Pina i Estany
> >     Web: http://pinux.info || Blog: http://pintant.cat
> >     GPG Key 0x8CD5C157
> --
> Carles Pina i Estany
>       Web: http://pinux.info || Blog: http://pintant.cat
>       GPG Key 0x8CD5C157
--
Carles Pina i Estany
        Web: http://pinux.info || Blog: http://pintant.cat
        GPG Key 0x8CD5C157

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to