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

Brian Enderle brianke at gmail.com
Tue Aug 25 11:38:32 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 -->
  <Fragment>
    <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"
Value="AcctInfoDlg" Order="4">WIXUI_DONTVALIDATEPATH OR
WIXUI_INSTALLDIR_VALID="1"</Publish>
      <!-- From VerifyReadyDlg, Back button takes us to AcctInfoDlg-->
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="AcctInfoDlg">NOT Installed</Publish>
    </UI>

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
  </Fragment>

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?


Brian

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


More information about the wix-users mailing list