Pre-processor instruction:
#expr Exec( \
"powershell", "-ExecutionPolicy Bypass -File UpdateDatabaseVersionInfo.ps1", \
SourcePath, SW_HIDE)
It works fine. But it shows a PowerShell window. But I passed SW_HIDE
.
Can that be fixed?
SW_*
values go to the fifth argument of the Exec
function. Pass default non-zero value to the fourth "wait" argument:
#expr Exec("powershell", "...", SourcePath, 1, SW_HIDE)