You can set "[UILevel]" in ExeCommand and access them through arguments.
<CustomAction Id="customActionId" BinaryKey="InstallerProgram" ExeCommand="[UILevel]" Execute="deferred" Return="check" /> static void Main(string[] args) { var uiLevel = args[0]; //==> [Here is the UILevel][1] }
DaNeSh
source share