Automate Notepad ++ Deployment with ConfigMgr

This will automate the install of Notepad ++ and Disable Update Notifications using the config.model.xml file.

Create your Folder Structure:

Download Notepad++ here:

Scripts & Files available here:
Download the EXE into the folder (Delete the blank place holder)

Create your Install & Uninstall Scripts:

load_npp.cmd Script:




config.model.xml file (This will set specific settings for your environment)


I’m going to skip some of the pictures, and go right to the deployment type & detection methods, look at previous posts for a template to go from.


In the Content Tab, make sure it is pointing to your ConfigMgr Content Source.




For Detection Method, I used a registry setting.  Each time it updates, I only have to change the Version Value, which makes it quite easy to update to the new version.



That should do it.


Happy Deployments!

2 thoughts on “Automate Notepad ++ Deployment with ConfigMgr”

  1. Hey thanks for this, it worked pretty well. I did have one issue though, when uninstalling I received an error with a code of 0x87D00325, though it did uninstall the application properly. The problem was that the Notepad++ uninstall.exe calls another process that actually handles the uninstall and then exits which causes the script to move on to the next step. This causes ConfigMgr to run the detection check before the uninstall process is actually completed. The solution was to add a sleep command to the uninstall script to pause it long enough for the uninstall to complete. You may need to adjust the sleep period based on your environment. Here's what my uninstall script looks like:

    REM Notepad ++ UnInstall Script

    taskkill /F /IM notepad++*

    REM Remove old Updater Folder (Created during last install)
    rmdir "C:\Program Files (x86)\Notepad++\updaterdisable" /S /Q

    REM Run Notepad++ Installer File Silently
    "C:\Program Files (x86)\Notepad++\uninstall.exe" /S

    REM Pause for a few seconds to allow the uninstaller to complete and ensure correct uninstall detection by ConfigMgr
    sleep 5

    REM Remove old Updater Folder (Created during last install)
    rmdir "C:\Program Files (x86)\Notepad++" /S /Q


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.