Burn doesn't support MSIs that switch install scope today. You'll have to pick 
one at build time.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: Jeff Tyson [mailto:jeff.ty...@microsoft.com] 
Sent: Thursday, May 14, 2015 11:00 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Writing a dual-purpose managed bootstrapper

Hello,

I am trying to build a managed bootstrapper that can install as both per-user 
and per-machine.

In the dual-purpose MSI I set the package scope to "perUser":
    <Package InstallScope="perUser" />

In the bundle I have
<MsiPackage SourceFile="Installer.msi">
        <MsiProperty Name="ALLUSERS"
                     Value="2" />
        <MsiProperty Name="MSIINSTALLPERUSER"
                     Value="[MsiInstallPerUser]" /> </MsiPackage>

Finally in the managed bootstrapper, if the user is an administrator, I set the 
MSI as per-machine Engine.StringVariables["MsiInstallPerUser"] = "";

Otherwise, I set the MSI to per-user
Engine.StringVariables["MsiInstallPerUser"] = "1";


Everything works fine when I install a per-user bundle, however when I try to 
install per-machine I never get the UAC prompt.

Is burn designed to do this or am I doing something wrong?

Thanks,
Jeff Tyson 

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to