[wix-users] dual-mode MSI with per-MACHINE default - how to debug?

Hoover, Jacob Jacob.Hoover at greenheck.com
Sat Nov 4 18:54:22 PDT 2017

Does this help?


I've not messed with Dual mode installs in quite some time.  Also, what version of Windows Installer are you using?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Alan Sinclair via wix-users
Sent: Friday, November 3, 2017 10:49 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Alan Sinclair <anadem at gmail.com>
Subject: [wix-users] dual-mode MSI with per-MACHINE default - how to debug?

How do I make a dual-mode installer which has per-MACHINE as the default?
Is it even possible?

I'm using WixUI_Advanced, to get the user's choice of per-user or per-machine, via InstallScope dialog.

If I use MSIINSTALLPERUSER=1 and ALLUSERS=2 the default is per-user, and the MSI works as expected, but no other combo works right.

When the default is made to be per-machine, and the user chooses per-user at the InstallScope dialog, the "Install/InstallNoShield" button is set correctly but the UAC prompt is always shown.  (I.e. ALLUSERS must have been set correctly, but something else is triggering UAC prompting)

Is a per-machine default possible on a dual-mode MSI, and if so, how do I debug this?


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

here's minimal code:

<?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Product Name='Foobar 1.0' Id='DE429F61-F846-4E6F-8873-75D49BB0C3CB'
    Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'>

    <Package Id='*' Keywords='Installer' Description="Acme's Foobar 1.0 Installer"
      Comments='Foobar is a registered trademark of Acme Ltd.'
Manufacturer='Acme Ltd.'
      InstallerVersion='100' Languages='1033' Compressed='yes'
SummaryCodepage='1252' />

    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
    <Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" />

    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='ProgramFilesFolder' Name='PFiles'>
        <Directory Id='Acme' Name='Acme'>
          <Directory Id="APPLICATIONFOLDER"  Name='Foobar 1.0'>
            <Component Id='MainExecutable'
              <File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1'
Source='FoobarAppl10.exe' KeyPath='yes'>
      <Directory Id="DesktopFolder" Name="Desktop" />

    <Feature Id='Complete' Level='1' Title='MyCo' Description='The complete package.' >
            <ComponentRef Id='MainExecutable' />

    <UIRef Id="WixUI_Advanced" />

    <Property Id="ApplicationFolderName" Value="My Program" />
    <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
    <Property Id='ALLUSERS' Value='2' />
    <Property Id='MSIINSTALLPERUSER' Value='1' />


WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list