[wix-users] Skip InstallDirDlg on Upgrade

Abid Hussain abid.hussain at abid76.de
Wed Aug 7 06:48:42 PDT 2019


Hi all,

 

I would like to suppress the InstallDirDlg on upgrade. But my approach
doesn't work. The InstallDirDlg also shows up when an upgrade is installed.

 

I'm quite new to WiX so maybe I'm missing something.

 

Here's the Product.wxs file contents:

 

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Product Id="*" Name="MyApp" Language="1031" Version="1.0.1.0"
Manufacturer="Abid" UpgradeCode="8dc49e86-c23a-4541-bef2-259bdec14a57">

    <Package InstallerVersion="200" Compressed="yes"
InstallScope="perMachine" />

 

    <UI>

      <UIRef Id="WixUI_InstallDir" />

      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="InstallDirDlg">1</Publish>

      <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog"
Value="WelcomeDlg">NOT Installed</Publish>

    </UI>

 

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />

    <Property Id="INSTALLDIR">

      <RegistrySearch Id="ProgramRegistry" Type="raw" Root="HKCU"
Key='Software\[Manufacturer]\[ProductName]' Name='InstallDir' />

    </Property>

 

    <MajorUpgrade DowngradeErrorMessage="Eine neuere Version von
[ProductName] ist bereits installiert." />

    <MediaTemplate EmbedCab="yes" />

<!-- ... --->

</Wix>

 

I also asked this question on stack overflow
<https://stackoverflow.com/questions/57147781/how-to-skip-installdir-dialog-
on-upgrade>
https://stackoverflow.com/questions/57147781/how-to-skip-installdir-dialog-o
n-upgrade but with no success.

 

Any ideas what I can do?

 

Regards,

 

Abid



More information about the wix-users mailing list