We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ameen.jinnah
Posts: 19
Joined: Wed Sep 28, 2016 7:22 am

Unable to Change Property During Upgrade

Hi,

I have a property as INSTALLATIONTYPE. For New Installation, the value of this property must be 1. I have set this in Install Parameters.
During Upgrade, I want this property to be changed as 2. I tried this using the Set Installer Property Value Control Event. But unable to achieve what I want. I'm not sure what I'm missing, Kindly guide me on this.
I have attached the API file.
Attachments
Your Application.zip
(4.48 KiB) Downloaded 579 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unable to Change Property During Upgrade

Hi,

To achieve this, you need to configure your "Set installer property" control event as in the example below:
  • Property: INSTALLATIONTYPE
    Argument: 2
    Condition: OLDPRODUCTS
Can you test this and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ameen.jinnah
Posts: 19
Joined: Wed Sep 28, 2016 7:22 am

Re: Unable to Change Property During Upgrade

Hi Eusebiu,

I did as per your suggestion. Now the property changes its value for the Upgrade. BUT !
If there are 2 applications installed in the server, and I upgrade 1 only. Then When I try for New Instance Installation, this property is still shows value as 2. It did not change to 1. I need to upgrade all the installed instances, then only this property changed back to 1 for New Instance Installation.

Is there any way to correct this issue?
Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unable to Change Property During Upgrade

Hi,

I'm afraid that I do not fully understand your scenario. Can you please give me more details (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ameen.jinnah
Posts: 19
Joined: Wed Sep 28, 2016 7:22 am

Re: Unable to Change Property During Upgrade

Hi Eusebiu,

As per your suggestion the INSTALLATIONTYPE property changed as 2.

If I have more than 1 instance (for example 2 instance in a server) version 2.0.0. Now I build a new installer of version 3.0.0. I want to upgrade the existing 2 instances as well as install one more new instance (3rd instance).

STEP 1: When I upgrade the first instance in the server, the property is set as 2. This is correct.
STEP 2: Next I want to install new instance (3rd instance). Here the property is still 2. Since it is new instance I want INSTALLATIONTYPE as 1. This is not happening.

Instead of Step 2, If I upgrade second instance in the server to version 3.0.0 and then install new instance (3rd instance) the property becomes 1.

Is there anyway, I want to set this property as 1 even if there are any old version lies on the server.
Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unable to Change Property During Upgrade

Hi,

For this, you can try to create a "Registry SubKeys Enumeration" extended search (i.e. INSTALLED_INSTANCES)in the "Search" page as in the example below:
  • Criteria: Registry SubKeys Enumeration
    Registry key: HKLM\SOFTWARE\Your Company
    Minimum: 1
Then, change the condition for the "Set installer property" custom action as follows: OLDPRODUCTS AND (INSTALLED_INSTANCES >< ProductName)

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”