fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Product Name and Install location property

Hi
I have to do a major upgrade. Please let me know from which properties I can access the product name, Install location and is upgrade of the already installed instance during the upgrade installation. Also is it possible to execute custom in action in the published events of the OK button of the upgrade prompt screen
Attachments
UpgradeScreen.JPG
UpgradeScreen.JPG (37.81 KiB) Viewed 7963 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product Name and Install location property

Hello,

In order to enumerate the products with a specified upgrade code you can use MsiEnumRelatedProducts function.

For each installed product you can use the MsiGetProductInfo function which returns product information (in your case, ProductName and APPDIR).
Also is it possible to execute custom in action in the published events of the OK button of the upgrade prompt screen
I'm afraid you cannot add a published event on the related control as the dialog is displayed by the bootstrapper.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Re: Product Name and Install location property

Hi
I have created multiple instances. During the upgrade installation it will popup all the instances having the same upgrade code. How can I Identify the selected instance among the list. As I don't have the product code of the previous instance (I have choose the option generate instances at installation time) I can't use the MsiGetProductInfo function.
Could you please let me know how can resolve this issue

Regards
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Re: Product Name and Install location property

Hi
I am expecting your favorable response
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product Name and Install location property

Hello,

I'm sorry for my delay reply.
I'm afraid I don't quite understand what is your scenario. Why would you need the related information?

Please note that the related dialog is displayed by the bootstrapper and it cannot be customized, e.g. add public events on controls.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Re: Product Name and Install location property

Hi
As per our existing architecture of the installer (created with installshield) during the upgrade installation it wont accept any input from the user and all the inputs will be extracted from the config files created in the first installation. I have migrated the installer to the advanced installer. But I have stucked here. In order to achieve this I need the selected instance name and installed directory. Please help me how will I get this information from the boots trapper or suggest the workaround to achieve this. I have attached a test aip file
Attachments
InstalledInstances.JPG
InstalledInstances.JPG (42.28 KiB) Viewed 7779 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product Name and Install location property

Hi,

As I said, you cannot add any custom action on this dialog.
However, you can add your custom actions after this dialog, when the .MSI installation starts. There, you can use the MsiEnumRelatedProducts function.

For each installed product you can use the MsiGetProductInfo function which returns product information (in your case, ProductName and APPDIR).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Re: Product Name and Install location property

HI Dan
If multiple instances are there how will I get the selected instance name using the above function ?

Return to “Common Problems”