Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
506 views
in Technique[技术] by (71.8m points)

vbscript - wix installer update process and confirmation dialog

As part of the update process which is working well for us, we would like to add an extra confirmation dialog so an end user can accept or decline the installation of this newer version.

  • Do you confirm you want to install this new version?
    • Yes: we continue process
    • No: is cancels installation

If you can help me by giving me full instructions, condition to add UPGRADINGPRODUCTCODE..and custom action displaying a popup it would be great.

Thx,

Julien

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Completely full instructions are not feasible because you need to create a dialog to insert when an upgrade is detected, and that needs hooking into the Next/Back sequencing. I'll also add that most people know that they are installing an upgrade of a product they have installed and don't need an extra prompt, so that's why this is uncommon.

In general you make the "do you want to upgrade" dialog with Next and Cancel buttons asking whether the upgrade should proceed. Condition showing this on WIX_UPGRADE_DETECTED. UPGRADINGPRODUCTCODE is not relevant because it is set in the older product that is being upgraded.

The WIX_UPGRADE_DETECTED property is the product code (or list) of the product(s) being upgraded, so you could think about querying the name and version of that product, but this typically doesn't work when the query requires elevation (because the UI sequence is not elevated).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...