Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

977,976

Downloads of v 2.16.2:

6,668

Last Update:

10 Apr 2024

Package Maintainer(s):

Software Author(s):

  • The NASM development team

Tags:

nasm assembler 80x86 x86-64 x86 compiler foss embedded

NetWide Assembler (install)

  • 1
  • 2
  • 3

2.16.2 | Updated: 10 Apr 2024

Downloads:

977,976

Downloads of v 2.16.2:

6,668

Software Author(s):

  • The NASM development team

NetWide Assembler (install) 2.16.2

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

To upgrade NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

To uninstall NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade nasm -y --source="'INTERNAL REPO 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 nasm -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install nasm
  win_chocolatey:
    name: nasm
    version: '2.16.2'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'nasm' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.16.2'
end

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


cChocoPackageInstaller nasm
{
    Name     = "nasm"
    Version  = "2.16.2"
    Source   = "INTERNAL REPO URL"
}

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


package { 'nasm':
  ensure   => '2.16.2',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 10 Apr 2024.

Description

The Netwide Assembler, NASM, is an 80x86 and x86-64 assembler designed for portability and modularity. It supports a range of object file formats, including Linux and *BSD a.out, ELF, Mach-O, 16-bit and 32-bit .obj (OMF) format, COFF (including its Win32 and Win64 variants.) It can also output plain binary files, Intel hex and Motorola S-Record formats. Its syntax is designed to be simple and easy to understand, similar to the syntax in the Intel Software Developer Manual with minimal complexity. It supports all currently known x86 architectural extensions, and has strong support for macros.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'

# On upgrades, the NASM installer sometimes adds an additional Start 
#   Menu folder without removing the old one.  Take an inventory 
#   before install attempt.
$StartMenu = Join-Path $env:ProgramData '\Microsoft\Windows\Start Menu'
$PreSMfolders = Get-ChildItem $StartMenu -Filter "Netwide Assembler*" -Recurse -Directory | 
                     Select-Object -ExpandProperty fullname

$toolsDir   = Split-Path -parent $MyInvocation.MyCommand.Definition
$Files = Get-ChildItem $toolsDir -Filter '*.exe' |
               Sort-Object LastWriteTime | 
               Select-Object -Last 2

$File32 = ($Files | Where-Object {$_.Name -match 'x86\.exe'}).fullname
$File64 = ($Files | Where-Object {$_.Name -match 'x64\.exe'}).fullname

$packageArgs = @{
   packageName    = $env:ChocolateyPackageName
   fileType       = 'EXE'
   File           = $File32
   File64         = $File64
   softwareName   = "$env:ChocolateyPackageName*"
   silentArgs     = '/S'
   validExitCodes = @(0)
}

Install-ChocolateyInstallPackage @packageArgs

foreach ($File in $Files) {
   Remove-Item $File.fullname -ea 0 -force
}

# Take another inventory of NASM Start Menu folders after install
$PostSMfolders = Get-ChildItem $StartMenu -Filter "Netwide Assembler*" -Recurse -Directory |
                     Select-Object -ExpandProperty fullname

if ($PostSMfolders.count -eq 1) {
   $Folder2Rename = $PostSMfolders
} elseif (($PostSMfolders.count - $PreSMfolders.count) -eq 1) {
   # Remove old NASM Start Menu folders
   $PostSMfolders | ForEach-Object {
      if ($PreSMfolders -contains $_) {
         Remove-Item $_ -Recurse -Force
      } else {
         $Folder2Rename = $_
      }
   }
}

if ($Folder2Rename) {
   # Rename the remaining folder to strip the version number.
   $null = Rename-Item $Folder2Rename ($Folder2Rename -replace '[0-9.]','').trim() -Force
} else {
   Write-Warning "Can't rename NASM Start Menu folder!"
}

tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

# The NASM uninstaller isn't silent and hangs.  No registry entries,
#   so just remove all the files.

$StartMenu = Join-Path $env:ProgramData '\Microsoft\Windows\Start Menu'
$SMfolder = Get-ChildItem $StartMenu -Filter "Netwide Assembler*" -Recurse -Directory
if ($SMfolder) {
   $null = Remove-Item $SMfolder.FullName -Recurse -Force
   Write-Verbose "Removed NASM icons in Start Menu."
}

if (Test-Path 'C:\Users\Public\Desktop\nasm.lnk') {
   $null = Remove-Item 'C:\Users\Public\Desktop\nasm.lnk' -Force
   Write-Verbose "Removed NASM icon on public desktop."
} 

if (Test-Path "$env:ProgramFiles\NASM") {
   $null = Remove-Item "$env:ProgramFiles\NASM" -Recurse -Force
   Write-Verbose "Removed NASM folder from Program Files."
}






tools\LICENSE.txt
From: https://github.com/netwide-assembler/nasm/blob/master/LICENSE

NASM is now licensed under the 2-clause BSD license, also known as the
simplified BSD license.

    Copyright 1996-2010 the NASM Authors - All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following
    conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
      
      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
      CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
      INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
      DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
      CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
      LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
      OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
      EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tools\nasm-2.16.02-installer-x64.exe
md5: 8DD67537EA16EA79C596C953E8264019 | sha1: C5A46B2F8E2217338F42147342375EE6A285ED7C | sha256: E85B3BFBA3EBB40131E50BFCB61AC5FBDE428A246E42A5423A5659087A147DC7 | sha512: 324D329BCA4AAB75C24F20CDDB07CE0FA66C87D22BE595DA518EA2310431C2F1E261EFA03087FE3696FC14BB89739B18CC66AFF6DDD7C72EABEFE827A3499894
tools\nasm-2.16.02-installer-x86.exe
md5: 81798FF11463911725766774A7E02A62 | sha1: 980B3B41724019B2212F44ABF954C1C05C495061 | sha256: 4D339AED62ACAE8289BFAF34EA799753A4763B6C95CD27B2B5DD036352C8DBBC | sha512: 5C8C6E63AD86768E438932CB8F4DB2C176C7CDFA8E38334CA468F6724D87D5644A177DF79839A7B40EC53A9F68AA5D76A21D79FFAED1583A2530295D67583E8D
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
The current and past binaries of NASM are available from the main site:
   https://www.nasm.us/
and clicking on the version number for "Stable" under "Latest version".

Specifically:
   https://www.nasm.us/pub/nasm/releasebuilds/<version>

Once there, the "win32" and "win64" folders contain the binaries used
in this package.

Direct Download:

Version      : 2.16.02
x86 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.16.02//win32/nasm-2.16.02-installer-x86.exe
x86 CheckSum : 4D339AED62ACAE8289BFAF34EA799753A4763B6C95CD27B2B5DD036352C8DBBC
x64 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.16.02//win64/nasm-2.16.02-installer-x64.exe
x64 CheckSum : E85B3BFBA3EBB40131E50BFCB61AC5FBDE428A246E42A5423A5659087A147DC7

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
NetWide Assembler (install) 2.16.01.20221231 302209 Saturday, December 31, 2022 Approved
NetWide Assembler (install) 2.16.01 4053 Friday, December 23, 2022 Approved
NetWide Assembler (install) 2.15.05 178150 Friday, November 5, 2021 Approved
NetWide Assembler 2.14.02 461196 Monday, June 17, 2019 Approved
NetWide Assembler 2.14 13190 Tuesday, November 13, 2018 Approved
NetWide Assembler 2.13.03 4261 Monday, March 5, 2018 Approved
NetWide Assembler 2.13.02 2692 Tuesday, December 5, 2017 Approved
NetWide Assembler 2.13.01 1144 Monday, July 17, 2017 Approved
NetWide Assembler 2.12.02 2390 Friday, August 12, 2016 Approved
NetWide Assembler 2.12.01 559 Wednesday, May 11, 2016 Approved
NetWide Assembler 2.10.06 1464 Thursday, December 6, 2012 Approved

This package has no dependencies.

Discussion for the NetWide Assembler (install) Package

Ground Rules:

  • This discussion is only about NetWide Assembler (install) and the NetWide Assembler (install) 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 NetWide Assembler (install), 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