Hello
I have a problem.
In the “Pre-Installation” I need something to do and after that it must be a reboot. For that I use the “Show_InstallationRestartPrompt” and want to give an exit code back to SCCM.
This part looks like that:
<code> $AllowRebootPassThru = $True Show-InstallationRestartPrompt -NoCountdown exit-script -exitcode "1641" </code>
Now, the “Show_InstallationRestartPrompt” closes the Installation dialog and completed with exit code 0…
<code> [Pre-Installation] :: Invoking Show-InstallationRestartPrompt asynchronously with no countdown... Show-InstallationRestartPrompt 16.03.2016 10:51:24 448 (0x01C0) [Pre-Installation] :: Close the installation progress dialog. Close-InstallationProgress 16.03.2016 10:51:24 448 (0x01C0) [Pre-Installation] :: Microsoft_AppVExcel2016_16.0.6366.2036_x64_EN_01 Installation completed with exit code [0]. Exit-Script 16.03.2016 10:51:24 448 (0x01C0) [Pre-Installation] :: ------------------------------------------------------------------------------- Exit-Script 16.03.2016 10:51:24 448 (0x01C0) </code>
So SCCM thinks everything is ok and runs the detection method and fail, while the user get the window for restart.
After the restart, the failed app can be retried and it works, but its no so smooth like it should be
what can/should I do here?
thanks