Hey folks… We don’t want a message at the end of an install letting users know that it’s finished. How can I prevent that from showing up.
I already commented the following lines, but it just makes the initial window stay put and not go away.
## Display a message at the end of the install
# If (-not $useDefaultMsi) { Show-InstallationPrompt -Message 'Your mapped network drives have been removed.' -ButtonRightText 'OK' -Icon Information -NoWait }
Yep. I’ve done that. as mentioned above I commented out the 2nd line, but it just causes the main window that pops up during thea ctual install to hang, and never go away.
You’re making this way too complicated… unless I’m misunderstanding your question. Don’t comment out the entire row… Literally all you have to do is comment out the command itself like below:
## Display a message at the end of the install
If (-not $useDefaultMsi) { <#Show-InstallationPrompt -Message 'You can customize text to appear at the end of an install or remove it completely for unattended installations.' -ButtonRightText 'OK' -Icon Information -NoWait#> }