I am using wix and want to call command line after installation.
How can I do this?
My command line is here "bcdedit.exe /set {current} nx AlwaysOff" // this makes dep off
Yes, I've read about custom actions, but I didn't see any example with command line.
P.S. bcdedit is usual exe in Win 7 and higher.
P.S. currently I have next script and it does not work:
Directory ="INSTALLLOCATION"
ExeCommand ='echo hello> echo_test.txt'
Execute ="immediate"
Return ="asyncNoWait"
/>
echo
is not an executable, it is the command of the command processor cmd.exe
. Change your ExeCommand
value to cmd.exe /c "echo hello >echo_test.txt"
.
Your echo_test.txt
would be in an arbitrary directory, you have to use absolute paths to get predictable results.