Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Allowing applications to automatically close while using the defer option

$
0
0
Hi Sean,

I was able to add a parameter (ForceCloseAppsCountdown) and that only required to change 4 lines in the main toolkit code. No UI modification was necessary because the toolkit automatically fits everything accordingly. This is what I did with version 3.2.0:

Added the following parameter to the function Show-InstallationWelcome:
[switch] $ForceCloseAppsCountdown = $false
Changed line 2859 from:
$promptResult = Show-WelcomePrompt -ProcessDescriptions $runningProcessDescriptions -CloseAppsCountdown $closeAppsCountdownGlobal -PersistPrompt $PersistPrompt -AllowDefer -DeferTimes $deferTimes -DeferDeadline $deferDeadlineUniversal -MinimizeWindows $minimizeWindows
To:
$promptResult = Show-WelcomePrompt -ProcessDescriptions $runningProcessDescriptions -CloseAppsCountdown $closeAppsCountdownGlobal -PersistPrompt $PersistPrompt -AllowDefer -DeferTimes $deferTimes -DeferDeadline $deferDeadlineUniversal -MinimizeWindows $minimizeWindows -ForceCloseAppsCountdown $ForceCloseAppsCountdown
Changed line 3033 from:
If ($showDefer -ne $true) {
To:
If ($showDefer -ne $true -or $ForceCloseAppsCountdown -ne $false) {
Changed line 3288 from:
ElseIf ($showCountdown -eq $true) {
To:
If ($showCountdown -eq $true) {
Do you think that it would be possible to include that in the next versions of the toolkit?

Regards,
Anderson Cassimiro

Viewing all articles
Browse latest Browse all 1769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>