Downloads:

43,172

Downloads of v 4.2.25.20160422:

28,721

Last Update:

22 Apr 2016

Package Maintainer(s):

Software Author(s):

  • Florian Balmer

Tags:

notepad

Notepad2

4.2.25.20160422 | Updated: 22 Apr 2016

Downloads:

43,172

Downloads of v 4.2.25.20160422:

28,721

Software Author(s):

  • Florian Balmer

Tags:

notepad

Notepad2 4.2.25.20160422

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Notepad2, run the following command from the command line or from PowerShell:

>

To upgrade Notepad2, run the following command from the command line or from PowerShell:

>

To uninstall Notepad2, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade notepad2 -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade notepad2 -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure notepad2 installed
  win_chocolatey:
    name: notepad2
    state: present
    version: 4.2.25.20160422
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'notepad2' do
  action    :install
  version  '4.2.25.20160422'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: notepad2,
    Version: 4.2.25.20160422,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller notepad2
{
   Name     = 'notepad2'
   Ensure   = 'Present'
   Version  = '4.2.25.20160422'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'notepad2':
  provider => 'chocolatey',
  ensure   => '4.2.25.20160422',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install notepad2 version="4.2.25.20160422" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator doc on 25 Apr 2016.

Description

A few years ago, I found myself writing my first PHP projects using metapad. When I was looking around for text editors with syntax highlighting, I have come across the Scintilla source code editing component. I was very much impressed by this project, so I decided to create my own Scintilla-based text editor.

The result is Notepad2, a fast and light-weight Notepad-like text editor with syntax highlighting. This program can be run out of the box without installation, and does not touch your system's registry.


tools\chocolateyInstall.ps1
Install-ChocolateyPackage `
    -PackageName 'notepad2' `
    -FileType 'EXE' `
    -SilentArgs '/SILENT' `
    -Url 'http://www.flos-freeware.ch/zip/Notepad2_4.2.25_x86.exe' `
    -Url64 'http://www.flos-freeware.ch/zip/Notepad2_4.2.25_x64.exe' `
    -Checksum '34fcbb1967f68e51135d12043f067c23' `
    -Checksum64 '8f90342b137d8e42ab97183071c7e6aa'
tools\chocolateyUninstall.ps1
$tools = Split-Path $MyInvocation.MyCommand.Definition

. $tools\uninstall.ps1

$items = (Get-Uninstaller -Name 'Notepad2 (Notepad Replacement)') -split ' '

$uninstaller = $items[0]
$silent = $items[1..$items.Length] -join ' '

Uninstall-ChocolateyPackage `
    -PackageName 'notepad2' `
    -FileType 'EXE' `
    -SilentArgs $silent `
    -File $uninstaller
tools\uninstall.ps1
<#
  .SYNOPSIS

  Get the uninstaller location for most Windows software.

  .DESCRIPTION

  This function finds the correct uninstaller given just an application name.
  Find the name from the Programs and Features Control Panel window.

  .PARAMETER Name

  The name of the application, as found in the Programs and Features applet
  in the Control Panel.

  .EXAMPLE

  Uninstall-ChocolateyPackage 'foo' 'EXE' '/S' (Get-Uninstaller -Name 'Foo')

  .LINK

  https://github.com/AnthonyMastrean/chocolateypackages/blob/master/helpers/uninstall.ps1
#>
function Get-Uninstaller {
  [CmdletBinding()]
  param(
    [Parameter(Mandatory = $true)]
    [ValidateNotNullOrEmpty()]
    [string] $Name
  )

  $local_key     = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
  $machine_key32 = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*'
  $machine_key64 = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'

  @($local_key, $machine_key32, $machine_key64) `
    | ?{ Test-Path $_ } `
    | Get-ItemProperty `
    | ?{ $_.DisplayName -eq $Name } `
    | Select-Object -ExpandProperty UninstallString
}

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.

Version Downloads Last Updated Status
Notepad2 4.2.25.3 11106 Sunday, January 26, 2014 Unknown
Notepad2 4.2.25.2 2541 Tuesday, February 7, 2012 Unknown
Notepad2 4.2.25.1 356 Wednesday, October 26, 2011 Unknown
Notepad2 4.2.25 448 Wednesday, October 26, 2011 Unknown

This package has no dependencies.

Discussion for the Notepad2 Package

Ground Rules:

  • This discussion is only about Notepad2 and the Notepad2 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 Notepad2, 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