Bump. Would the below command take care of what I need? Remove-RegistryKey -Key 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe' -Name 'Debugger' -ContinueOnError = $true
From: [email protected] [mailto:[email protected]] On Behalf Of Murray, Mike Sent: Tuesday, February 17, 2015 3:19 PM To: [email protected] Subject: RE: [mssms] Quick PS App Deploy Toolkit question Or rather, would this be better? Remove-RegistryKey -Key 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe' -Name 'Debugger' -ContinueOnError = $true From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Murray, Mike Sent: Tuesday, February 17, 2015 2:17 PM To: [email protected]<mailto:[email protected]> Subject: RE: [mssms] Quick PS App Deploy Toolkit question Yeah, it’s not automatically doing it in every case. Weird. So this should be all I need? ##*=============================================== ##* POST-INSTALLATION ##*=============================================== [string]$installPhase = 'Post-Installation' ## <Perform Post-Installation tasks here> ## Clean up IE registry key Remove-RegistryKey -Key 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe\Debugger' ## Display a message at the end of the install Show-InstallationPrompt -Message 'Installation complete.' -ButtonRightText 'OK' -Icon Information -NoWait From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Sean Pomeroy Sent: Tuesday, February 17, 2015 2:02 PM To: [email protected]<mailto:[email protected]> Subject: Re: [mssms] Quick PS App Deploy Toolkit question That key should automatically be removed after the program is installed. If you wanted to put a check in, I would put it above the Show-InstallationPrompt. I would also use the built in functions to look for the registry key and remove it if it exists. It's covered in the documentation: Get-RegistryKey, Remove-RegistyKey. On Tue Feb 17 2015 at 4:01:23 PM Murray, Mike <[email protected]<mailto:[email protected]>> wrote: We’re deploying the latest Java release using the toolkit, but a few users have had a problem launching IE after it installs. This article explains: http://psappdeploytoolkit.codeplex.com/discussions/554051 In our case, the registry key causing the issue is located in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe. The Debugger key reads: “wscript.exe "C:\Users\Public\PSAppDeployToolkit\AppDeployToolkit_BlockAppExecutionMessage.vbs" Someone in the comments recommended some PowerShell code that could remove the registry entry that is causing the issue. I am looking to add this to the post-installation section of Deploy-Application.ps1. Can someone take a look at the code below and confirm this should do the trick? Thanks! ##*=============================================== ##* POST-INSTALLATION ##*=============================================== [string]$installPhase = 'Post-Installation' ## <Perform Post-Installation tasks here> ## Display a message at the end of the install Show-InstallationPrompt -Message 'Installation complete.' -ButtonRightText 'OK' -Icon Information -NoWait ## Clean up IE registry key Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" -Recurse | ForEach-Object { Get-ItemProperty $_.pspath } | Where-Object {$_.Debugger -like "*PSAppDeployToolkit*"} | Remove-ItemProperty -Name Debugger Best Regards, Mike Murray Desktop Management Coordinator - IT Support Services California State University, Chico 530.898.4357 [email protected]<mailto:[email protected]>

