Crashes after Refresh the Desktop and the Windows Explorer environment process block

Hi guys,
I’ve been using PSADT for a long time, we have scripts/templates for almost all projects and it’s using v3.8.4. We’ve had no issue. However, I was just packaging this week and when I was testing, after this

Refresh the Desktop and the Windows Explorer environment process block.

the script kept crashing.

  • As I am writing this, I tested by just executing Deploy-Application.exe and that runs the whole script just fine but when running from ISE it will crash right after that file.
    It happens after Execute-MSI or Remove-MSIApplications is ran.
    It executes and exits just fine … with 0.
    It installs (and removes) the software just fine.

thoughts?

You might have to upgrade to v3.9.3.

Windows 10 morphs with the windows updates.

FYI: That Refresh Desktop is done inside the Execute-MSI and Remove-MSIApplications functions in-case the environment variables get changed by the MSI.