XML Notepad is an open-source XML editor that features incremental search in both tree and text views, drag/drop support, IntelliSense, find/replace with regular expressions and XPath expressions, and support for XInclude. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of XML Notepad from the command line using the MSI installer.
How to Install XML Notepad Silently
XML Notepad Silent Install (MSI)
- Navigate to: https://microsoft.github.io/XmlNotepad/#install/
- Select Standalone Installer
- Extract the XmlNotepadSetup.zip file using 7-Zip to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: MsiExec.exe /i XmlNotepadSetup.msi /qn
- Press Enter
After a few moments you should see the XML Notepad shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | XML Notepad |
Vendor: | Lovett Software |
Architecture: | x86 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i XmlNotepadSetup.msi /qn |
Silent Uninstall Switch: |
|
Repair Command: |
|
Download Link: | https://microsoft.github.io/XmlNotepad/#install/ |
PowerShell Script: | https://silentinstallhq.com/xml-notepad-install-and-uninstall-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create an Installation Log File
The XML Notepad MSI installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.
XML Notepad Silent Install (MSI) with Logging
MsiExec.exe /i XmlNotepadSetup.msi /qn /L*v "%WINDIR%\Temp\XMLNotepad-Install.log" |
Disable XML Notepad Auto-Update
- Install XML Notepad and open the application
- Navigate to the View tab and Select Options…
- Under Updates, Change Enable Updates from True to False
- Click OK and Exit out of the XML Notepad application
- Navigate to the current user profile “C:\Users\%Username%\AppData\Local\Microsoft\Xml Notepad”
- Copy the XmlNotepad.settings file to the C:\Downloads directory with the XML Notepad MSI
- Uninstall XML Notepad and delete the “C:\Users\%Username%\AppData\Local\Microsoft\Xml Notepad” directory
- Follow the “How to Install XML Notepad Silently” steps mentioned earlier in the article and then copy the XmlNotepad.settings file to the “%LocalAppData%\Microsoft\Xml Notepad” directory
Now when you launch XML Notepad for the first time, you can confirm that the Enable Updates setting is set to False under View-> Options-> Updates-> Enable Updates -> False
Disable XML Notepad Analytics
- Install XML Notepad and open the application
- Navigate to the View tab and Select Options…
- Under Analytics, Change Allow Analytics from True to False
- Click OK and Exit out of the XML Notepad application
- Navigate to the current user profile “C:\Users\%Username%\AppData\Local\Microsoft\Xml Notepad”
- Copy the XmlNotepad.settings file to the C:\Downloads directory with the XML Notepad MSI
- Uninstall XML Notepad and delete the “C:\Users\%Username%\AppData\Local\Microsoft\Xml Notepad” directory
- Follow the “How to Install XML Notepad Silently” steps mentioned earlier in the article and then copy the XmlNotepad.settings file to the “%LocalAppData%\Microsoft\Xml Notepad” directory
Now when you launch XML Notepad for the first time, you can confirm that the Allow Analytics setting is set to False under View-> Options-> Analytics-> Allow Analytics -> False
How to Uninstall XML Notepad Silently
Check out the XML Notepad Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
XML Notepad Silent Uninstall (MSI)
|
XML Notepad Silent Uninstall (MSI) with Logging
/L*v "%WINDIR%\Temp\XMLNotepad-Uninstall.log" |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.