I’m using the line:
Show-InstallationWelcome -CloseApps 'iexplore,helppane' -CheckDiskSpace -PersistPrompt -BlockExecution
because I have a vendor MSI that insists on launching their website as well as a helpfile program after installation is complete, even with ‘/qn ISSILENTINSTALL=1’ parameters.
The blocking is working well, but I don’t want the popup “Launching this application has been temporarily blocked…”
Is there a way to turn off the -BlockExecution popup?
you MIGHT be able but you will have to modify AppDeployToolkitMain.ps1
Near the bottom look for this code:
# Attempt to acquire an exclusive lock on the mutex, attempt will fail after 1 millisecond if unable to acquire exclusive lock
If ((Test-IsMutexAvailable -MutexName $showBlockedAppDialogMutexName -MutexWaitTimeInMilliseconds 1) -and ($showBlockedAppDialogMutex.WaitOne(1))) {
[boolean]$showBlockedAppDialogMutexLocked = $true
Show-InstallationPrompt -Title $installTitle -Message $configBlockExecutionMessage -Icon 'Warning' -ButtonRightText 'OK'
Exit 0
}
comment out the line starting with Show-InstallationPrompt
Good luck.
That worked!
Thank you. You saved me a lot of time searching for that one line (12063).