Different Icons/Logos for Install vs Uninstall

So a simple but cool trick. Change the window icon/logo for an install vs uninstall. In the “AppDeployToolkitMain.ps1” file change the following in the ‘Variables Declaration’ section:

# Get Banner and Icon details
[Xml.XmlElement]$xmlBannerIconOptions = $xmlConfig.BannerIcon_Options
if($deploymentType -eq 'Uninstall'){[string]$configBannerIconFileName = $xmlBannerIconOptions.Icon_FilenameX}
else{[string]$configBannerIconFileName = $xmlBannerIconOptions.Icon_Filename}

Now just add your Install and Uninstall icons/logos into the same directory to do something like this:
Install:
install
Uninstall:
uninstall

Directory:
files

3 Likes

Hello,

This doesn’t seem to work for function Show-InstallationPrompt. Could you please provide me information about this ?