display dialogs in wise upgrades

Prafful Sharma's picture

Hi,

Is there a way to hide display dialogs in a upgrade scenario,
the previous version of the installer has some display prompts popping up in a custom action in a un-install custom action.

now in a upgrade scenario the user is required to Ok ! or cancel this, before proceeding ahead.

Is there a way to handle this custom action which already exists in the old distributed installer such that in a upgrade scenario these prompts do not appear.

<< Please note: these prompts are to display the values of some temporary variables etc >>

With Regards

Prafful Sharma.

EdT's picture

Not easily solved

Whoever wrote these custom actions originally, clearly did not consider the upgrade scenario. If these custom actions are only displaying temp variables, then they are effectively a debug function, which should have been removed from the production MSI.

So your options are to either create a modified MSI without these custom actions, or with correctly conditioned custom actions that do not run on upgrade, and REINSTALL the MSI, then install the upgrade, or to train the users in the correct response to the custom action dialogs.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

piyushnasa's picture

extra effort

You would have to do the extra effort to solve this.
I would suggest you to make changes to the previous version so that during uninstall the dialog do not appear. Then you can push that package again with REINSTALLMODE=vomus option.
This will forcefully replace the MSI stored in cache (C:\windows\installer). When you create an upgrade then this will not be a problem.
Hope it helps.
 

Piyush Nasa
Altiris Certified Professional (ACP)

Prafful Sharma's picture

one single exe file ...

can this be done in one single exe file. If yes, can you shed more light on the approach this can be done.

i.e REINSTALLMODE=vomus initially push the msi after it's verified it exists and later upgrade to the new installer.
    the reason I am asking this, is because with REINSTALLMODE=vomus it implies that it is a minor upgrade and it can be pushed with
    manual instructions to  run msiexec /i (msi) REINSTALLMODE=vomus. later upgrade using the new product

 

Thanks

piyushnasa's picture

2 MSI will be required

If you are using this method then 2 MSI will be required. As mentioned by  EDT in below comment is what I wil suggest. You can use Wise script to run them in one click, one after another.
Let me know if my above mentioned solution helps.

Piyush Nasa
Altiris Certified Professional (ACP)

Prafful Sharma's picture

Thanks Piyush This will work,

Thanks Piyush

This will work, we are planning to address the issue by documentation, but if this gets critical, I will choose this solution where I will edit the WSE script to:-

1. Install the minor upgade
2. followed by the Installation of the major upgrade which will remove the previous msi and install successfully.

EdT's picture

You need two separate installs

Since your original MSI is flawed, you need to fix the problem with the "minor upgrade" you are referring to, using REINSTALLMODE=vomus
This will re-cache the original MSI with the corrected version. Once this has been done, you can now perform the upgrade.

To do this in a single EXE, you would still need the minor upgrade MSI and the upgrade MSI, package them with Wisescript Editor so that both are installed to the temp folder, then run the minor upgrade, wait a few seconds, and then run the major upgrade. Then clean up the temp folder and exit the Wisescript.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.