Wix: show custom dialog if previous version found

前端 未结 1 1139
甜味超标
甜味超标 2021-01-13 08:56

I want to customize my installer to show custom dialog when previous version is already installed: after Welcome dialog user should see a custom dialog OldVersionDlg

1条回答
  •  走了就别回头了
    2021-01-13 09:37

    The problem was caused by the second line in WixUI_Wizard.wxs. For some reason WiX always uses it. So, to implement checking of previous version we need to exclude PREVIOUSVERSIONSINSTALLED from the second condition:

    PREVIOUSVERSIONSINSTALLED
    NOT Installed AND NOT PREVIOUSVERSIONSINSTALLED
    

    0 讨论(0)
提交回复
热议问题