/build/static/layout/Breadcrumb_cap_w.png

Setting Custom Action Condition

Hello together,

I'm trying to set a condition for a CA.

At first I get the Computername to a Property. F.e. the property "COMPUTERNAME"="ds-fed"

The next CA should only run, if the property "COMPUTERNAME" contains "ds". I need a condition with an "LIKE".

Can anybody please help me to get the right condition.

Thank you


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Set objNet = CreateObject("WScript.Network") strCompName = objNet.ComputerName .... If Left(strCompName,3) = "XYZ" Then ...... End If
Posted by: jagadeish 12 years ago
Red Belt
2

You can write VBScript custom action as shown below

Set objNet = CreateObject("WScript.Network")
strCompName = objNet.ComputerName
....
If Left(strCompName,3) = "XYZ" Then

......

End If

Posted by: kleynpackager 12 years ago
Orange Belt
0

Thank you very much. Work's very nice!!!


Comments:
  • Hi kleynpackager, could you mention the options you selected during the custom action preperation, like which sequence, what mode... etc one after one ??? - srikanth.deep 12 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ