Downloads:

76

Downloads of v 20.0.0:

18

Last Update:

11 Jan 2021

Package Maintainer(s):

Software Author(s):

  • NI

Tags:

nisoftware frc ni national instruments first robotics admin

NI FRC Game Tools

20.0.0 | Updated: 11 Jan 2021

Downloads:

76

Downloads of v 20.0.0:

18

Maintainer(s):

Software Author(s):

  • NI

NI FRC Game Tools 20.0.0

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install NI FRC Game Tools, run the following command from the command line or from PowerShell:

>

To upgrade NI FRC Game Tools, run the following command from the command line or from PowerShell:

>

To uninstall NI FRC Game Tools, 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 ni-frcgametools -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 ni-frcgametools -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 ni-frcgametools installed
  win_chocolatey:
    name: ni-frcgametools
    state: present
    version: 20.0.0
    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 'ni-frcgametools' do
  action    :install
  version  '20.0.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: ni-frcgametools,
    Version: 20.0.0,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller ni-frcgametools
{
   Name     = 'ni-frcgametools'
   Ensure   = 'Present'
   Version  = '20.0.0'
   Source   = 'STEP 3 URL'
}

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


package { 'ni-frcgametools':
  provider => 'chocolatey',
  ensure   => '20.0.0',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install ni-frcgametools version="20.0.0" 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.

This package was approved by moderator TheCakeIsNaOH on 16 Feb 2021.

Description

The National Instruments FRC Game Tools is required for programming and controlling robots in the FIRST FRC Robotics competition.


tools\.skipAutoUninstall
 
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors
# Note: Install programming environments such as NI LabVIEW or Microsoft Visual Studio before installing this product.

$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = "https://download.ni.com/support/nipkg/products/ni-f/ni-frc-2020-game-tools/20.0/offline/ni-frc-2020-game-tools_20.0.0_offline.iso"

$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  softwareName   = 'NISoftware*'
  fileType       = 'EXE' 
  Url            = $url
  file           = 'Install.exe'
  checksum       = 'a75e1fb30c441790a5f63cef0df5de16a07d45291313b011371bec7e95f777ab'
  checksumType   = 'sha256'
  silentArgs     = '--passive --accept-eulas --prevent-reboot --prevent-activation'
  validExitCodes = @(0, -125071, -126300)
}

Install-ChocolateyIsoPackage @packageArgs #https://docs.chocolatey.org/en-us/guides/create/mount-an-iso-in-chocolatey-package
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors

# The directory for the ni unistaller exe is stored in a reg key
$uninstallerLocation = Join-Path (Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\WOW6432Node\National Instruments\Common\Installer\MIF\MetaUninstaller' -Name 'Path') "uninst.exe"
$systemDriveLetter = (Get-WmiObject Win32_OperatingSystem).getPropertyValue("SystemDrive")
$niProgramDataLocation = Join-Path $systemDriveLetter "\ProgramData\National Instruments"

$packageArgs = @{
  PackageName    = $env:ChocolateyPackageName
  FileType       = "exe"
  SilentArgs     = "/qb /x all"
  File           = $uninstallerLocation
  validExitCodes = @(0, 3010)
}

Write-Host "`nUninstalling NI FRC Game Tools"
Write-Host "`n`tRunning the NI uninstaller..."
Uninstall-ChocolateyPackage  @packageArgs

Write-Host "`n`tRemoving the NI ProgramData folder..." #The uninstaller does not remove this
if (Test-Path -Path $niProgramDataLocation) {
  Remove-Item $niProgramDataLocation -ErrorAction SilentlyContinue -Force -Recurse
  
  if (!(Test-Path -Path $niProgramDataLocation)) {
    Write-Host "`n`t`tRemoved the NI ProgramData folder at `"$niProgramDataLocation`"" -ForegroundColor Green
  } else {
    Write-Host "`n`t`tAn error occured while trying to delete the NI ProgramData folder at `"$niProgramDataLocation`"" -ForegroundColor Red
  }
} else {
  Write-Host "It appears that the NI ProgramData folder expected at `"$niProgramDataLocation`" does not exists. This could either mean NI was never installed or the uninstaller removed it like it should, but doesn't." -ForegroundColor Yellow
}

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.

Version Downloads Last Updated Status
NI FRC Game Tools 19.0.0 29 Sunday, January 3, 2021 Approved
Discussion for the NI FRC Game Tools Package

Ground Rules:

  • This discussion is only about NI FRC Game Tools and the NI FRC Game Tools 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 NI FRC Game Tools, 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