How to Add Notepad++ plugins to an MSIX package

Written by Alex Marin · February 25th, 2021

#MSIX #TIPS

Did you package Notepad++ as an MSIX, and need to add extra plugins to it?

With MSI technology, you have various options to do this:

The good news is that with MSIX, you can add extra plugins much easier with a modification package.

TipModification packages work for MSIXs like MSTs for MSI packages.

NoteModification packages perform installations in their own directory separate from the original package, and the directory gets registered as an add-on to the main package. This makes it so that when you launch an application -- the virtual file system and registry are merged between the main MSIX and the modification package.

In this article, I will walk you through how to add extra plugins by using a modification package for MSIX in Advanced Installer.

Create A Modification Package with Advanced Installer

For this example, we chose to add a simple Autosave plugin. In Notepad++, you can add all the plugins you need in this location:

%ProgramFiles(x86)%\Notepad++\plugins\PLUGINNAME

For our plugin, we created a folder called "AutoSave" under the “Plugins” folder.

Assuming you have a packaged MSIX for Notepad++, here are the steps needed to create a modification package with Advanced Installer:

1. Open Advanced Installer.

2. Select New.

3. When you get to the Project Category, select Windows Store.

4. Double-click on Modification Package.

5. A dialog to Select Target Package will appear. Select your MSIX package and click OK.

Select target package
Select target package

6. Then, navigate to the Files and Folders page.

7. Go to the plugins folder and add the AutoSave folder (along with its contents).

Add autosave folder
Add AutoSave folder

8. Next, proceed to the Digital Signature page and sign the MSIX package.

9. Finally, click Build (from the upper left corner).

And that’s it, the modification package is now created and ready to be installed.

After the installation of the base Notepad++ package, when the modification package is installed, the following window will appear:

Install app
Install app

After clicking Install and opening Notepad++, we can see that the AutoSave plugin is now recognized and loaded.

Recognized loaded plugin
Recognized loaded plugin

Conclusion

If you don’t want to repackage your main application when you need to add plugins, you can create a modification package as an easy alternative to do so.

However, please keep in mind that during the launch of Notepad++, the virtual file system and registry are merged. That means that only files and folders under the VFS folder are merged.

If your main package has files outside of the VFS folder, these will not be merged during the launch, and the plugins will not be executed.

For a more in-depth analysis of modification packages, we recommend to check out our MSIX Modification Packages: Deploying custom application configurations article.

Did you find this quick tutorial helpful? Share your tips with us in the comments.

Subscribe to Our Newsletter

Sign up for free and be the first to receive the latest news, videos, exclusive How-Tos, and guides from Advanced Installer.

Comments: