Domanda

Ho creato un file di installazione che funziona fantastico.

Ora, ogni volta che ricostruisco un'applicazione senza modificare altro che il codice del pacchetto viene modificato e poi mentre installerò questa versione, una finestra di dialogo arriverà "Dialog upgrade" che mi chiede di aggiornare un'applicazione.

Ora in questa situazione voglio visualizzare un dialogo aggiuntivo creato da me.

Sto usando il tipo di progetto MSI di base insatllshield 2012.

È stato utile?

Soluzione

I solved this problem.

There are two properties exist in Installshield named "IS_MINOR_UPGRADE" and "IS_MAJOR_UPGRADE".

When there is a minor upgrade at that time IS_MINOR_UPGRADE will set to 1. And same for Major upgrade.

So using these properties, I can recognize the Upgrade mode.

Altri suggerimenti

Any time you change the package code but not the product code you are talking about a Minor Upgrade or possibly a Small Update if you don't change the ProductVersion. Either way, the only way to create a custom message like you ask is to write your own setup.exe / update.exe bootstrapper to detect the update scenario and display your confirmation UI.

There's nothing built into MSI or IS that allows you to easily change this.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top