I have run a command or script in WIX, how can I obtain its running results or output?
After running a command or script, only whether it has been successfully executed can be obtained, can not set the resulr to a property.
I want to use commands or scripts to check if the current installation environment of the Installer is Win10 or above.
<Binary Id="OSMajorVersionScript" SourceFile="test.bat" />
<CustomAction Id="GetWindowsMajorVersion"
Execute="immediate"
Property="WindowsMajorVersion"
Return="check"
Impersonate="yes"
BinaryKey="OSMajorVersionScript"
DllEntry="WixShellExec"/>
Hope someone can answer my question. Thank you very much
New contributor
junhong fan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.