Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Notepad++ Settings Installation

1.0.0.20141029

Package test results have failed.

This package was approved by moderator ferventcoder on 10/30/2014.

Allows Notepad++ settings to be installed from a provided URL.

To use, you will need to call Chocolatey like so:

choco install notepadplusplus.settings -params 'url=https://yoursite.com/NotepadSettings/'

I recommend using the -Force flag for subsequent settings updates.

Because Notepad++ has several configuration files, the URL must specify a folder. The package installation will then attempt to download all of the following files:
* config.xml
* contextMenu.xml
* functionList.xml
* langs.xml
* shortcuts.xml
* stylers.xml
* <your theme>.xml

To get your theme copied, you must drop your current theme file into the directory as well.

To install Notepad++ Settings Installation, run the following command from the command line or from PowerShell:

C:\> choco install notepadplusplus.settings

To upgrade Notepad++ Settings Installation, run the following command from the command line or from PowerShell:

C:\> choco upgrade notepadplusplus.settings

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $packageName = "Notepadplusplus.Settings"
    
    try 
    {
    	$params = $env:chocolateyPackageParameters -split ';' | ConvertFrom-StringData
    	$url = $params.url;
    	$programFiles = if (${env:ProgramFiles(x86)} -ne $null) { ${env:ProgramFiles(x86)} } else { $env:ProgramFiles }
    	
    	if ($url)
    	{
    		Write-Host "Downloading from URL $url"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\config.xml" "$url/config.xml"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\contextMenu.xml" "$url/contextMenu.xml"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\functionList.xml" "$url/functionList.xml"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\langs.xml" "$url/langs.xml"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\shortcuts.xml" "$url/shortcuts.xml"
    		Get-ChocolateyWebFile $packageName "$env:appdata\Notepad++\stylers.xml" "$url/stylers.xml"
    		
    		# Find the theme file
    		$themeNode = Select-Xml -Path "$env:appdata\notepad++\config.xml" -XPath "//GUIConfig[@name='stylerTheme']"
    		$themePath = $themeNode.node.path
    		$themeFile = Split-Path $themePath -Leaf
    		Get-ChocolateyWebFile $packageName "$programFiles\Notepad++\themes\$themeFile" "$url/$themeFile"
    	}
    	else 
    	{
    		throw "No URL specified. Try calling choco install Notepadplusplus.Settings -params 'url=http://example.com/NotepadSettings/'"
    	}
    	
    	Write-ChocolateySuccess "$packageName"
    } 
    catch 
    {
    	Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
    	throw
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Jason Capriotti

Tags

Release Notes

1.0.0.20141029 - Had a bug due to a rogue space, cleaning up error messaging.
1.0.0.20141015 - Fixing issue with incorrect Program Files path on 32-bit systems.

Version History

Version Downloads Last updated Status
Notepad++ Settings Installation 1.0.0.20141027 252 Monday, October 27, 2014 approved
Notepad++ Settings Installation 1.0.0.20141015 248 Wednesday, October 15, 2014  
Notepad++ Settings Installation 1.0.0.20141005 226 Sunday, October 5, 2014  

Discussion for the Notepad++ Settings Installation Package

Ground rules:

  • This discussion is only about Notepad++ Settings Installation and the Notepad++ Settings Installation package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Notepad++ Settings Installation, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok