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:

1,113,711

Downloads of v 2.16.3:

126,238

Last Update:

23 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.3 | Updated: 23 Apr 2024

Downloads:

1,113,711

Downloads of v 2.16.3:

126,238

Software Author(s):

  • The NASM development team

NetWide Assembler (install) 2.16.3

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by The NASM development team. The inclusion of The NASM development team trademark(s), if any, upon this webpage is solely to identify The NASM development team goods or services and not for commercial purposes.

  • 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.3'
    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.3'
end

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


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

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


package { 'nasm':
  ensure   => '2.16.3',
  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 27 Sep 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.03-installer-x64.exe
md5: 4205B5973D293543E89C2069635117E3 | sha1: 1A67E9FE7605777A78096007600BFA1492AD0E9C | sha256: 657E1252676CFB26A008835C20A760F731C8E0414469A4ED0F83F0FB059CDD35 | sha512: 50E4B38098F468604B6B6D7873F4100B9305716C4946CE8092F94275E71C8905D36FB8B0C0096410C9EF33F5A93E92DFC68B08E1B59AD8BE4B111C1E2546B14D
tools\nasm-2.16.03-installer-x86.exe
md5: 19D96398428D25677CC8832DE74AD107 | sha1: FD76F5F1DA5C112787B8812B0B0C4EC044145E94 | sha256: 65456969B095B1BE4574F50B797732CFF97A19F60F97DCDD68281DA5FDC30FA1 | sha512: 92ED726AED704C1B8E8DBC7B3CC97706FC7AC177D0B47CF816DF3DA02383AE029B03F4D5B536A050C9262E2426BEBC6FF2FA0BC7254D20EA2C7B8E023D3E2A6F
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.03
x86 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.16.03//win32/nasm-2.16.03-installer-x86.exe
x86 CheckSum : 65456969B095B1BE4574F50B797732CFF97A19F60F97DCDD68281DA5FDC30FA1
x64 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.16.03//win64/nasm-2.16.03-installer-x64.exe
x64 CheckSum : 657E1252676CFB26A008835C20A760F731C8E0414469A4ED0F83F0FB059CDD35

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.2 9842 Wednesday, April 10, 2024 Approved
NetWide Assembler (install) 2.16.01.20221231 302440 Saturday, December 31, 2022 Approved
NetWide Assembler (install) 2.16.01 4400 Friday, December 23, 2022 Approved
NetWide Assembler (install) 2.15.05 178227 Friday, November 5, 2021 Approved
NetWide Assembler 2.14.02 466677 Monday, June 17, 2019 Approved
NetWide Assembler 2.14 13259 Tuesday, November 13, 2018 Approved
NetWide Assembler 2.13.03 4280 Monday, March 5, 2018 Approved
NetWide Assembler 2.13.02 2710 Tuesday, December 5, 2017 Approved
NetWide Assembler 2.13.01 1172 Monday, July 17, 2017 Approved
NetWide Assembler 2.12.02 2411 Friday, August 12, 2016 Approved
NetWide Assembler 2.12.01 575 Wednesday, May 11, 2016 Approved
NetWide Assembler 2.10.06 1480 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