This project is read-only.

Feature request: Allow us to decide whether or not to use the -Force arg when closing apps

Topics: Archive - General
Nov 27, 2013 at 5:57 PM
Scenario: User clicks 'Close programs' button but they forgot to save their open Word document. Using the -Force arg in Stop-Process means the user has lost their work.
# Force the applications to close
ElseIf ($promptResult -eq "Close") {
    Write-Log "User selected to force the applications to close..."
    Stop-Process ($runningProcesses | Select ID -ExpandProperty ID) -Force -ErrorAction SilentlyContinue
    Sleep -Seconds 2
}
Feature request: Allow us to bypass this by using an override argument in our -CloseApps arg in Show-InstallationWelcome. Perhaps something like ForceClose=False, or similar.