Unwanted Reboots

Topics: Archive - General
Feb 11, 2015 at 9:19 PM
I'm a newbie as PSADT, but I've got this sorta working. Problem is that it up and reboots near the end of the installation, but the app itself does NOT require or invoke a restart. I can't tell if it's SCCM screwing something up or PSADT. Everything looks right. Any ideas how I can tell where the restart is coming from? I'm using v3.6.
Coordinator
Feb 12, 2015 at 12:41 PM
Hi, can you share the deployment script and log files?
Feb 12, 2015 at 5:54 PM
Edited Feb 12, 2015 at 6:03 PM
Thanks for the reply. I'll try to offer some smaller versions of the relevant parts of the log. I should add, that the three things that are mainly going on here (run cmd file, run exe file, and run another cmd file)...I can do this all from a batch file and everything goes smoothly--no errors, no reboots. Also, reboots don't always happen, but happen quite a bit.

Here is one PC that rebooted, its' relevant PSADT log portion:

<![LOG[[Installation] :: [TurnOFFSymantec.cmd] successfully resolved to fully qualified path [C:\windows\ccmcache\91\Files\TurnOFFSymantec.cmd].]LOG]!><time="09:20:23.714-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\windows\ccmcache\91\Files]]LOG]!><time="09:20:23.802-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\windows\ccmcache\91\Files\TurnOFFSymantec.cmd]...]LOG]!><time="09:20:23.812-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution completed successfully with exit code [0]]LOG]!><time="09:20:28.001-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [RVOutlookAddinSetup_10_0_1_32bit.exe] successfully resolved to fully qualified path [C:\windows\ccmcache\91\Files\RVOutlookAddinSetup_10_0_1_32bit.exe].]LOG]!><time="09:20:31.044-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\windows\ccmcache\91\Files]]LOG]!><time="09:20:31.059-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\windows\ccmcache\91\Files\RVOutlookAddinSetup_10_0_1_32bit.exe /URL=http://crestron/Fusion/OutLookWebService /verysilent]...]LOG]!><time="09:20:31.068-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">

Here is another:

<![LOG[[Installation] :: [TurnOFFSymantec.cmd] successfully resolved to fully qualified path [C:\WINDOWS\ccmcache\2d\Files\TurnOFFSymantec.cmd].]LOG]!><time="12:26:18.444-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\WINDOWS\ccmcache\2d\Files]]LOG]!><time="12:26:18.465-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\ccmcache\2d\Files\TurnOFFSymantec.cmd]...]LOG]!><time="12:26:18.471-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution completed successfully with exit code [0]]LOG]!><time="12:26:20.869-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [RVOutlookAddinSetup_10_0_1_32bit.exe] successfully resolved to fully qualified path [C:\WINDOWS\ccmcache\2d\Files\RVOutlookAddinSetup_10_0_1_32bit.exe].]LOG]!><time="12:26:23.911-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\WINDOWS\ccmcache\2d\Files]]LOG]!><time="12:26:23.919-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\ccmcache\2d\Files\RVOutlookAddinSetup_10_0_1_32bit.exe /URL=http://crestron/Fusion/OutLookWebService /verysilent]...]LOG]!><time="12:26:23.927-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution failed with exit code [1073807364]]LOG]!><time="12:26:50.954-360" date="02-12-2015" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="3" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Close the installation progress dialog.]LOG]!><time="12:26:50.972-360" date="02-12-2015" component="Close-InstallationProgress" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Crestron_FusionRVOutlookAddin_10.0.1_EN_01 Installation completed with exit code [1073807364].]LOG]!><time="12:26:50.987-360" date="02-12-2015" component="Exit-Script" context="NT AUTHORITY\SYSTEM" type="1" thread="3" file="Deploy-Application.ps1">

And then here is my Deploy-Application.ps1 script. I'm only posting the part I've changed from the default:

*===============================================

    ##* INSTALLATION 
    ##*===============================================
    [string]$installPhase = 'Installation'

    ## <Perform Installation tasks here>
    $currentDirectory = [System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition)

    Execute-Process -FilePath "TurnOFFSymantec.cmd" -WindowStyle Hidden
    Start-Sleep -s 3
    Execute-Process -FilePath "RVOutlookAddinSetup_10_0_1_32bit.exe" -Arguments "/URL=http://crestron/Fusion/OutLookWebService /verysilent"
    Execute-Process -FilePath "TurnONSymantec.cmd"  -WindowStyle Hidden

    ##*===============================================
    ##* POST-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Post-Installation'

    ## <Perform Post-Installation tasks here>
    ##Show-InstallationRestartPrompt -Nocountdown

    ## Display a message at the end of the install
    ##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
Feb 17, 2015 at 5:21 PM
Turns out the package wrapper on this exe (Inno Setup) is at fault. Once I discovered what it was made with, I was able to make it produce logs and sure enough, it was the reboot culprit. I drilled down to the MSI itself, and have been using it standalone and it operates fine now. Now to integrate the MSI into PSADT...