Internet Explorer not installing for non admins

Hi,

Has anyone been able to deploy IE11.msi created with IEAK to users who are admins and also to non admins? I have treied changing the Admin section of the XML to False. But the install still fails.

PsApp deploy launches but a few seconds after the first psappdeploy screen that shows the installation progress the last notification appears saying that the application has installed.

The deployment is set to run as system and allow user interaction.

The bubble then appears by the clock saying it has failed

This is the code that i am using. Have I missed a step?

<code>##*===============================================
	##* VARIABLE DECLARATION
	##*===============================================
	## Variables: Application
	[string]$appVendor = &#039;Microsoft&#039;
	[string]$appName = &#039;Internet Explorer&#039;
	[string]$appVersion = &#039;11&#039;
	[string]$appArch = &#039;x86&#039;
	[string]$appLang = &#039;EN&#039;
	[string]$appRevision = &#039;01&#039;
	[string]$appScriptVersion = &#039;1.0.0&#039;
	[string]$appScriptDate = &#039;11/02/2016&#039;
	[string]$appScriptAuthor = &#039;Group IT&#039;
	##*===============================================
</code>
<code>If ($deploymentType -ine &#039;Uninstall&#039;) {
		##*===============================================
		##* PRE-INSTALLATION
		##*===============================================
		[string]$installPhase = &#039;Pre-Installation&#039;
		
		## Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install, and persist the prompt
		Show-InstallationWelcome -CloseApps &#039;iexplorer&#039; -BlockExecution -AllowDefer -Deferdays 1 -CheckDiskSpace -PersistPrompt  
		## Prompt the user to close the following applications if they are running:
	    Show-InstallationWelcome -CloseApps &#039;iexplore&#039;

     
		## Show Progress Message (with the default message)
		Show-InstallationProgress -StatusMessage ‘IE11 will now be installed/updated. This may take some time. Please wait…’

		 

		## &amp;lt;Perform Pre-Installation tasks here&amp;gt;
		
		
		##*===============================================
		##* INSTALLATION 
		##*===============================================
		[string]$installPhase = &#039;Installation&#039;
		
		
		# Install the base MSI
	    Execute-MSI -Action Install -Path &#039;IE11-Setup-Full.msi&#039;

      		
		## &amp;lt;Perform Installation tasks here&amp;gt;
		
		
		##*===============================================
		##* POST-INSTALLATION
		##*===============================================
		[string]$installPhase = &#039;Post-Installation&#039;
		
		## &amp;lt;Perform Post-Installation tasks here&amp;gt;
		
		## Display a message at the end of the install
		If (-not $useDefaultMsi) { Show-InstallationPrompt -Message &#039;Internet Explorer is now installed. Please contact the IT Service Desk if you have any queries&#039; -ButtonRightText &#039;OK&#039; -Icon Information -NoWait }
        
        # Prompt for a restart
        Show-InstallationRestartPrompt -NoCountdown
	}

	ElseIf ($deploymentType -ieq &#039;Uninstall&#039;)
	{
         
       
		##*===============================================
		##* PRE-UNINSTALLATION
		##*===============================================
		[string]$installPhase = &#039;Pre-Uninstallation&#039;
		
		## Show Welcome Message, close Internet Explorer with a 60 second countdown before automatically closing
		Show-InstallationWelcome -CloseApps &#039;iexplore&#039; -BlockExecution -AllowDefer -DeferTimes 2
		
		## Show Progress Message (with the default message)
		Show-InstallationProgress
		
		## &amp;lt;Perform Pre-Uninstallation tasks here&amp;gt;
		
		
		##*===============================================
		##* UNINSTALLATION
		##*===============================================
		[string]$installPhase = &#039;Uninstallation&#039;
		
		## Handle Zero-Config MSI Uninstallations
		If ($useDefaultMsi) {
			[hashtable]$ExecuteDefaultMSISplat =  @{ Action = &#039;Uninstall&#039;; Path = $defaultMsiFile }; If ($defaultMstFile) { $ExecuteDefaultMSISplat.Add(&#039;Transform&#039;, $defaultMstFile) }
			Execute-MSI @ExecuteDefaultMSISplat
		}
		
		# &amp;lt;Perform Uninstallation tasks here&amp;gt;
		
		
		##*===============================================
		##* POST-UNINSTALLATION
		##*===============================================
		[string]$installPhase = &#039;Post-Uninstallation&#039;
		
		## &amp;lt;Perform Post-Uninstallation tasks here&amp;gt;
		
		
	}
	
	##*===============================================
	##* END SCRIPT BODY
	##*===============================================
	
	## Call the Exit-Script function to perform final cleanup operations
	Exit-Script -ExitCode $mainExitCode
}
Catch {
	[int32]$mainExitCode = 60001
	[string]$mainErrorMessage = &amp;quot;$(Resolve-Error)&amp;quot;
	Write-Log -Message $mainErrorMessage -Severity 3 -Source $deployAppScriptFriendlyName
	Show-DialogBox -Text $mainErrorMessage -Icon &#039;Stop&#039;
	Exit-Script -ExitCode $mainExitCode
}</code>

I was meant to add above that the MSI installs successfully and silently when manually run

Maybe an additional Parameter will help you…

Execute-MSI -Action Install -Path "$dirFiles\DUMMY.msi" -Parameters "ALLUSERS=1 /QN"

because in most application without the ALLUSERS=1 the app will be installed just for the system account…

I re created the msi and it is now working when I launch it manually.
Ive another issue where the Files folder the msi inside it, AppDeployToolkitMain.cs adn the AppDeployToolkitMain.cs will not download to the client. It sits on downloading 0% complete

I cannot find any errors in the logs.

Hi Emmet,

 Did you manage to solve the issue? I'm having a similar one but with my code, like yours the the first appdeploy window appears and seconds later, the second window appears  with the bubble saying installation complete. 

If I change the msi filename @ line "Execute-MSI -Action Install -Path ‘IE11-Setup-Full.msi’ with a different msi that is in the “Files” folder the code will launch the different msi as should. I have testing by double clicking on “Deploy-Application.exe”

Here is my deploy-application.ps1 ;

<code>
       

#
.SYNOPSIS
	This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
	The script is provided as a template to perform an install or uninstall of an application(s).
	The script either performs an &quot;Install&quot; deployment type or an &quot;Uninstall&quot; deployment type.
	The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install.
	The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application.
.PARAMETER DeploymentType
	The type of deployment to perform. Default is: Install.
.PARAMETER DeployMode
	Specifies whether the installation should be run in Interactive, Silent, or NonInteractive mode. Default is: Interactive. Options: Interactive = Shows dialogs, Silent = No dialogs, NonInteractive = Very silent, i.e. no blocking apps. NonInteractive mode is automatically set if it is detected that the process is not user interactive.
.PARAMETER AllowRebootPassThru
	Allows the 3010 return code (requires restart) to be passed back to the parent process (e.g. SCCM) if detected from an installation. If 3010 is passed back to SCCM, a reboot prompt will be triggered.
.PARAMETER TerminalServerMode
	Changes to &quot;user install mode&quot; and back to &quot;user execute mode&quot; for installing/uninstalling applications for Remote Destkop Session Hosts/Citrix servers.
.PARAMETER DisableLogging
	Disables logging to file for the script. Default is: $false.
.EXAMPLE
	Deploy-Application.ps1
.EXAMPLE
	Deploy-Application.ps1 -DeployMode &#039;Silent&#039;
.EXAMPLE
	Deploy-Application.ps1 -AllowRebootPassThru -AllowDefer
.EXAMPLE
	Deploy-Application.ps1 -DeploymentType Uninstall
.NOTES
	Toolkit Exit Code Ranges:
	60000 - 68999: Reserved for built-in exit codes in Deploy-Application.ps1, Deploy-Application.exe, and AppDeployToolkitMain.ps1
	69000 - 69999: Recommended for user customized exit codes in Deploy-Application.ps1
	70000 - 79999: Recommended for user customized exit codes in AppDeployToolkitExtensions.ps1
.LINK
	http://psappdeploytoolkit.com
#&gt;
[CmdletBinding()]
Param (
	[Parameter(Mandatory=$false)]
	[ValidateSet(&#039;Install&#039;,&#039;Uninstall&#039;)]
	[string]$DeploymentType = &#039;Install&#039;,
	[Parameter(Mandatory=$false)]
	[ValidateSet(&#039;Interactive&#039;,&#039;Silent&#039;,&#039;NonInteractive&#039;)]
	[string]$DeployMode = &#039;Interactive&#039;,
	[Parameter(Mandatory=$false)]
	[switch]$AllowRebootPassThru = $false,
	[Parameter(Mandatory=$false)]
	[switch]$TerminalServerMode = $false,
	[Parameter(Mandatory=$false)]
	[switch]$DisableLogging = $false
)

Try {
	## Set the script execution policy for this process
	Try { Set-ExecutionPolicy -ExecutionPolicy &#039;ByPass&#039; -Scope &#039;Process&#039; -Force -ErrorAction &#039;Stop&#039; } Catch {}
	
	##*===============================================
	##* VARIABLE DECLARATION
	##*===============================================
	## Variables: Application
	[string]$appVendor = &#039;Microsoft&#039;
	[string]$appName = &#039;Internet Explorer&#039;
	[string]$appVersion = &#039;11&#039;
	[string]$appArch = &#039;&#039;
	[string]$appLang = &#039;EN&#039;
	[string]$appRevision = &#039;01&#039;
	[string]$appScriptVersion = &#039;0.0.1&#039;
	[string]$appScriptDate = &#039;19/02/2016&#039;
	[string]$appScriptAuthor = &#039;Simon Box&#039;
	##*===============================================
	
	##* Do not modify section below
	#region DoNotModify
	
	## Variables: Exit Code
	[int32]$mainExitCode = 0
	
	## Variables: Script
	[string]$deployAppScriptFriendlyName = &#039;Deploy Application&#039;
	[version]$deployAppScriptVersion = [version]&#039;0.0.1&#039;
	[string]$deployAppScriptDate = &#039;09/02/2016&#039;
	[hashtable]$deployAppScriptParameters = $psBoundParameters
	
	## Variables: Environment
	If (Test-Path -LiteralPath &#039;variable:HostInvocation&#039;) { $InvocationInfo = $HostInvocation } Else { $InvocationInfo = $MyInvocation }
	[string]$scriptDirectory = Split-Path -Path $InvocationInfo.MyCommand.Definition -Parent
	
	## Dot source the required App Deploy Toolkit Functions
	Try {
		[string]$moduleAppDeployToolkitMain = &quot;$scriptDirectory\AppDeployToolkit\AppDeployToolkitMain.ps1&quot;
		If (-not (Test-Path -LiteralPath $moduleAppDeployToolkitMain -PathType &#039;Leaf&#039;)) { Throw &quot;Module does not exist at the specified location [$moduleAppDeployToolkitMain].&quot; }
		If ($DisableLogging) { . $moduleAppDeployToolkitMain -DisableLogging } Else { . $moduleAppDeployToolkitMain }
	}
	Catch {
		If ($mainExitCode -eq 0){ [int32]$mainExitCode = 60008 }
		Write-Error -Message &quot;Module [$moduleAppDeployToolkitMain] failed to load: &lt;code&gt;n$($_.Exception.Message)&lt;/code&gt;n </code>

n$($_.InvocationInfo.PositionMessage)" -ErrorAction ‘Continue’
## Exit the script, returning the exit code to SCCM
If (Test-Path -LiteralPath ‘variable:HostInvocation’) { $script:ExitCode = $mainExitCode; Exit } Else { Exit $mainExitCode }
}

#endregion
##* Do not modify section above
##*===============================================
##* END VARIABLE DECLARATION
##*===============================================

If ($deploymentType -ine 'Uninstall') {
	##*===============================================
	##* PRE-INSTALLATION
	##*===============================================
	[string]$installPhase = 'Pre-Installation'
	
	## Prompt the user to close the following applications if they are running:
    Show-InstallationWelcome -CloseApps 'iexplore' 
    # Show Progress Message (with the default message)
    Show-InstallationProgress
    # Remove any previous versions of Adobe Reader
    # Remove-MSIApplications -Name 'Objective Navigator'
	
	
	##*===============================================
	##* INSTALLATION
	##*===============================================
	[string]$installPhase = 'Installation'
	
	# Install the base MSI and apply a transform
    Execute-MSI -Action Install -Path 'IE11-Setup-Full.msi'
    # Install the patch
    # Execute-MSI -Action Patch -Path 'Adobe_Reader_11.0.6_EN.msp'
	
	
	##*===============================================
	##* POST-INSTALLATION
	##*===============================================
	[string]$installPhase = 'Post-Installation'
	
	## &lt;Perform Post-Installation tasks here&gt;
    
	
	## Display a message at the end of the install
    
	Show-InstallationPrompt -Message 'Interner Explorer has been upgraded to Version 11 Please restart your device before opening any of your programs. Thank You

’ -ButtonRightText ‘OK’ -Icon Information -NoWait
}
ElseIf ($deploymentType -ieq ‘Uninstall’)
{
##===============================================
##
PRE-UNINSTALLATION
##*===============================================
[string]$installPhase = ‘Pre-Uninstallation’

	## Prompt the user to close the following applications if they are running:
    Show-InstallationWelcome -CloseApps 'iexplore' -AllowDefer -DeferTimes 3
	
	## Show Progress Message (with a message to indicate the application is being uninstalled)
    # Show-InstallationProgress -StatusMessage 'Uninstalling application [$installTitle]. Please Wait...'
	
	
	##*===============================================
	##* UNINSTALLATION
	##*===============================================
	[string]$installPhase = 'Uninstallation'
	
    ## Remove this version of Adobe Reader
    # Execute-MSI -Action Uninstall -Path '{E31F1C64-BA40-4364-9400-FA6545264615}'
	
	
	##*===============================================
	##* POST-UNINSTALLATION
	##*===============================================
	[string]$installPhase = 'Post-Uninstallation'
	
	## &lt;Perform Post-Uninstallation tasks here&gt;
    
    
}

##*===============================================
##* END SCRIPT BODY
##*===============================================

## Call the Exit-Script function to perform final cleanup operations
Exit-Script -ExitCode $mainExitCode

}
Catch {
[int32]$mainExitCode = 1
[string]$mainErrorMessage = “$(Resolve-Error)”
Write-Log -Message $mainErrorMessage -Severity 3 -Source $deployAppScriptFriendlyName
Show-DialogBox -Text $mainErrorMessage -Icon ‘Stop’
Exit-Script -ExitCode $mainExitCode
}