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

KONDURU Pavan Pavan.KONDURU at 3ds.com
Wed Sep 9 09:34:29 PDT 2015


Use "NOT Installed" condition where you publish the dialog.

      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog"
Value="AcctInfoDlg" Order="4"> NOT Installed </Publish>

--Pavan

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Brian Enderle
Sent: Wednesday, September 09, 2015 5:44 AM
To: WiX Users
Subject: [wix-users] Only use fragment on new install, not upgrade

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

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer



More information about the wix-users mailing list