コード例 #1
0
ファイル: SccmRuleExtension.cs プロジェクト: akiker/CV2
 private static string ToWindowsInstallerClause(SccmWindowInstallerDetectionRule windowsInstallerRule)
 {
     var clause = new StringBuilder();
     if (windowsInstallerRule.MsiProductCodeMustExist)
     {
         clause.AppendFormat("MSI Product Code: {0} Exists", windowsInstallerRule.ProductCode);
     }
     else
     {
         clause.AppendFormat("MSI Product Code: {0} Version: {1} {2}", windowsInstallerRule.ProductCode,
             windowsInstallerRule.MsiRuleOperator, windowsInstallerRule.MsiRuleValue);
     }
     return clause.ToString();
 }
コード例 #2
0
ファイル: SccmRuleExtension.cs プロジェクト: akiker/CV2
 private static SccmWindowInstallerDetectionRule CreateNewWindowsInstallerRuleWithDefaults()
 {
     var windowInstallerRule = new SccmWindowInstallerDetectionRule
     {
         MsiProductCodeMustExist = true,
         MsiRuleOperator = WindowsInstallerRuleOperatorType.Equals,
         MsiRuleProperty = WindowsInstallerRulePropertyType.Version,
         MsiRuleValue = string.Empty,
         ProductCode = string.Empty
     };
     return windowInstallerRule;
 }