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 ?

Sorry I forgot this part. You would need to update the config xml file with this info as well.

    <!--Banner, Logo & Icon Options-->
    <BannerIcon_Options>
        <Icon_Filename>AppDeployToolkitLogo.ico</Icon_Filename>
        <Icon_FilenameX>AppDeployToolkitLogoX.ico</Icon_FilenameX>
        <!-- Specify filename of the icon. -->