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

New Post: Show-InstallationRestartPrompt, Title has no spaces between words

$
0
0
Hi

Noticed this as well, took a quick look at the AppDeployToolkitMain.ps1,
Start-Process $PSHOME\powershell.exe -ArgumentList "-ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -File `"$scriptPath`" -ReferringApplication `"$installName`" -ShowInstallationRestartPrompt $installRestartPromptParameters" -WindowStyle Hidden -ErrorAction SilentlyContinue
It is calling another process for the reboot and $installTitle is resetting to "Microsoft InternetExplorer 11.0" from "Microsoft Internet Explorer 11.0" (for example).

You can check by adding the Write-Log here,
# Set the install name if the referring application parameter was specified
If ($ReferringApplication -ne "") {
    $installName = $ReferringApplication
    $installTitle = $ReferringApplication -replace "_"," "
    $installPhase = "Asynchronous"
}

Write-Log "TEST: $installTitle"
Also, the Asynchronous log is using this log name: PS_AppDeployToolkitMain_3.1.5.log, shouldn't this be the same as other log name but ends differently, for example, XXX_XXX_1.0_Asynchronous.log

I think the log name become "PS_AppDeployToolkitMain_3.1.5.log" because of this part,
# Set up sample variables if Dot Sourcing the script or app details have not been specified
If ((!$appVendor) -and (!$appName) -and (!$appVersion)) {
    $appVendor = "PS"
    $appName = $appDeployMainScriptFriendlyName
    $appVersion = $appDeployMainScriptVersion
    $appLang = $currentLanguage
    $appRevision = "01"
    $appArch = ""
}
/Andy

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

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