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!

duec
Posts: 6
Joined: Wed Mar 30, 2016 9:39 am

Properties not updated at run time

Hi all,

I'm trying to pass some properties to a chained package prerequisite. In the "properties" textbox I wrote

Code: Select all

SELECTED_WEBSITE=[\"][SELECTED_WEBSITE][\"] 
and I make sure the value ha a valid value before I confirm installation but then the installation fails and I found this in the log

Code: Select all

Web Service.msi SELECTED_WEBSITE=""
Could you pint me in the right direction?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Properties not updated at run time

Hi,

In order to send some properties to the chained prerequisite you need to write them between square brackets, as in the following example:

Code: Select all

SELECTED_WEBSITE=[SELECTED_WEBSITE]
Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
duec
Posts: 6
Joined: Wed Mar 30, 2016 9:39 am

Re: Properties not updated at run time

Hi Eusebiu, thanks for answering me,

I tried what you suggest as my first attempt but some of the properties values have spaces in them like "default web site" and so I had to enclose the property in quotes then I use the suggested syntax for include special characters [\x].

Is there a better way?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Properties not updated at run time

Hi,

If the value of your properties contain spaces you can use square brackets and also enclose them in quotes as below:

Code: Select all

SELECTED_WEBSITE="[SELECTED_WEBSITE]"
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
duec
Posts: 6
Joined: Wed Mar 30, 2016 9:39 am

Re: Properties not updated at run time

Hi, FYI I resolved the issue.

I had to explicitly create SELECTED_WEBSITE property in the calling installer even if it was automatically generated by a IISBrowse command.

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Properties not updated at run time

You're welcome. I'm glad you got this working.

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

Return to “Building Installers”