[wix-users] Only use fragment on new install, not upgrade

Brian Enderle brianke at gmail.com
Wed Sep 9 05:43:40 PDT 2015

I have the following fragment in my Product.wxs file that shows a screen in
which the user can enter SQL information.

  <!-- Custom UI definition -->
    <UI Id="WixUI_CustomInstallDir">
      <!-- Use WixUI_InstallDir as base UI -->
      <UIRef Id="WixUI_InstallDir" />

      <!-- Add new screen to capture Account Info between InstallDir and
VerifyReady -->
      <DialogRef Id="AcctInfoDlg" />
      <!-- From InstallDirDlg, Next button takes us to AcctInfoDlg -->
      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog"
      <!-- From VerifyReadyDlg, Back button takes us to AcctInfoDlg-->
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="AcctInfoDlg">NOT Installed</Publish>


Is it possible to turn off this fragment if the product is already
installed (i.e., skip the AcctInfDlg screen) since this info would already
be in a configuration file stored in ProgramData?


If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein

More information about the wix-users mailing list