I don’t know if it’s because I’ve tried to install the application multiple times and it’s left lingering objects in the registry, but my installation pops this up twice during my installation. If I hit OK on both instances, it runs through fine. What is the cause?
It depends what you are deploying…
Some applications run themselves silently as part of the setup, so it might be this that is occuring
Can you paste a few lines either side of the command that contains the -BlockExecution switch and we may be able to advise
N.B. Remember to use the pre-formatted text button on the toolbar </> to insert your code
I think this is what you wanted to see? Some stuff may not be needed as I was testing a lot from Googling like the end unblock-adtappexecution. It’s from Invoke-AppDeployToolkit.ps1
In some older versions of 4.0.x, there were issues with the toolkit not unblocking correctly. I’d suggest cleaning the offending registry keys manually, then testing again with 4.1.0 where most of this code has been refactored as part of the client/server stuff.
Lastly, you don’t need to explicitly call Unblock-ADTAppExecution as when Block-ADTAppExecution is called within Show-ADTInstallationWelcome, a callback is added so that Unblock-ADTAppExecution is called within Close-ADTSession for you.