简体   繁体   中英

WIX: How to set the version found after FindRelatedProducts in the Install UI Sequence

I am creating a WIX installer with upgrade functions. Here is our target: we want the installer informs the user that it finds a related product by outputting the version number of the found one in installer UI. And only after the user confirms this upgrade the installation will go on. However, I don't know how to set a property (or variable), to be displayed in a dialog UI. Currently I have already added one confirm dialog which has the condition "NOT Installed AND UPGRADEFOUND". I just need to put the version number string into this dialog. Can anyone tell me how to do that? Thanks in advance!

You have two options here. You can either use the FileSearch element to get the version stored in the main binary of your application or you can store the version in the registry using the remember property pattern on install and then re-read that when you upgrade.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM