Show-InstallationPrompt generating exit code 1618

I’m using the PowerShell Toolkit to clean up the Microsoft Office environment on some computers (remove old versions of Office, upgrade to Office 365, etc.). The OS we’re running is Windows 7 64-bit.

I’m to the point where I’ve tested the script by installing it manually and via SCCM. Everything works great with the exception of my last step. We’re going to run this both when users are and are not logged in. For the logged-in users, I’d like to display a notification at the end of the script that says something like “Hey, the install is finished, so you can go ahead and start using your Office applications again”.

Here’s the code I’m using for that (everything is the default language from the script template except for the Show-InstallationPrompt line):

## Display a message at the end of the install
If (-not $useDefaultMsi) { 
	Show-InstallationPrompt -Message "The Microsoft Office cleanup process will complete shortly. When this message goes away, you may continue working as normal."  -Icon Information -Timeout 60

If I use that line, the script exits with an error code of 1618. If I remove that line, script exits with an error code of 0.

I haven’t changed anything in AppDeployToolkitConfig.xml; here’s what I think is the relevant section of code:

<InstallationUI_Timeout>6900</InstallationUI_Timeout> <!--Time in seconds to automatically timeout installation dialogs. Default is 1 hour and 55 minutes so that dialogs timeout before SCCM times out.-->
<InstallationUI_ExitCode>1618</InstallationUI_ExitCode> <!-- Exit code used when a UI prompt times out or the user opts to defer. -->
<InstallationDefer_ExitCode>60012</InstallationDefer_ExitCode> <!-- Exit code used when a user opts to defer. -->
<InstallationPrompt_PersistInterval>60</InstallationPrompt_PersistInterval> <-- Time in seconds after which the prompt should be repositioned centre screen when the -PersistPrompt parameter is used. Default is 60 seconds. -->

My question is: is there a way I can retain the Show-InstallationPrompt line without it throwing the 1618 error code?

how do I resolve exit code 1618?
how do i use [Show-InstallationPrompt] without any buttons?

Any luck with this?
I’m running into the same issue.

This function shouldn’t be changing exit codes. Can you supply a log file?

1618 from an msi means - Another installation is already in progress

Thanks for looking into this.
I actually just figured it out. The -NoWait parameter withing the Show-InstallationPrompt command allows the script to display a message as well as continue the script.
Thank you.