cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom action and conditions

Hi,

I'm working with adminstudio 8.6 and i would like to create custum actions with conditions.

My goal is to copy some files when the computername is ITL-C1CISVS-002 for example.
I also have to create conditions when the computername starts with ITL.
Concerning the last condition, COMPUTERNAME<>"ITL" works fine.

I have an issue when i want to precise the entire computername by using the same synthax.

Maybe a condition like COMPUTERNAME<>"ITL" AND COMPUTERNAME<>"C1CISVS" AND COMPUTERNAME<>"002" works.

I'm going to try it.

Thanks for your help,

Franck:confused:
(2) Replies
CChong
By Level 11 Flexeran
Level 11 Flexeran
Franck,

I am not sure of the precise format of the MSI COMPUTERNAME property, but you might have more options.

The MSI conditional statement syntax does allow a '=' comparison as well as a NOT operator. Example: NOT (COMPUTERNAME = "my computer name")

Allen Saxton
Acresso Software
You'll want to take care to use the correct capitalization: the built-in property is ComputerName, for example.

You might also see the MSI help topic "Conditional Statement Syntax" for other string-comparison operators; the << operator will tell you if a string starts a particular way, for example.

(Follow-up of sorts [thread=181396]here[/thread], too.)