WiX Toolset で提供される VB Custom Action Project テンプレートを使用して、インストーラー ( Advanced Installerでビルド) 用の最初のカスタム アクションを作成しようとしています。基本的に、マシン上の RAM の量をテストして、前提条件がまだ存在しない場合にどのバージョンをインストールする必要があるかを判断したいだけです。
私がこれまでに持っているもの(半疑似コード)は次のとおりです。
Public Class CustomActions
<CustomAction()> _
Public Shared Function CustomAction1(ByVal session As Session) As ActionResult
session.Log("Begin CustomAction1")
If New Microsoft.VisualBasic.Devices.ComputerInfo().TotalPhysicalMemory > [ram size here] Then
Return ActionResult.Success
Else
Return ActionResult.SkipRemainingActions
End If
End Function
End Class
私が知りたいのは、ActionResult.SkipRemainingActions を返すことが、テストされているマシンの RAM が成功を促す結果よりも少ない場合に使用する正しい選択であるかどうかです。