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!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Does Set Installer Property CA Support Operators?

Can I set an installer property based on the value of a few parameters? e.g.

Can I set the Value field to:

[PARAM1] & [PARAM2] & [PARAM3]

these params will either be "0", '1" or not existent.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Does Set Installer Property CA Support Operators?

Hello Scott,

If you want to set a property to a value including another property values, then this is possible. However, to make sure I fully understand your requirements, can you please give us more details about your scenario (maybe exemplify a bit)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Does Set Installer Property CA Support Operators?

Well I have 4 registry search global parameters for two product registry keys, say:

PARAM1, PARAM1_64, PARAM2, PARAM2_64

if ANY of these is set (via a registry search) it means "Product A" is installed.

instead of sending my merge module all 4 four of these I want to send the merge module one parameter, e.g. PRODUCT_A_INSTALLED = 1.

So I was going to create a Set Installer Property CA for PRODUCT_A_INSTALLED. Will setting its "Value" equal to:

PARAM1 & PARAM1_64 & PARAM2 & PARAM2_64

work?

I don't think the Search wizard will allow me to point all 4 registry searches at one variable?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Does Set Installer Property CA Support Operators?

Hi Scott,

Try setting this in the condition field of the custom action instead:

Code: Select all

PARAM1 AND PARAM1_64 AND PARAM2 AND PARAM2_64
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Does Set Installer Property CA Support Operators?

Yes and I ended up getting:

MSI (c) (DC:90) [14:25:04:846]: PROPERTY CHANGE: Modifying CXMY_CITRIX_SERVER property. Its current value is '0'. Its new value: ' AND AND AND 1'.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Does Set Installer Property CA Support Operators?

It would be cool if this work but as a workaround I made my PARAM checks part of the install/run condition:

(PARAM1 OR PARAM1_64 OR PARAM2 OR PARAM2_64)

and then set the property to "1"
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”