SAOImageDS9 Silent Install (How-To Guide)

SAOImageDS9 is an image display and visualization tool for astronomical data. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of SAOImageDS9 from the command line using the EXE installer.

How to Install SAOImageDS9 Silently

SAOImageDS9 Silent Install

  1. Navigate to: https://ds9.si.edu/download/win64/
  2. Download the “SAOImageDS9 x.y.z Install.exe” to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following commands:
mkdir "%SYSTEMDRIVE%\SAOImageDS9"
tar -xf "SAOImageDS9 x.y.z Install.exe" --directory "%SYSTEMDRIVE%\SAOImageDS9"

Create a SAOImageDS9 Start Menu Shortcut with Windows PowerShell

  • Open PowerShell ISE or your favorite PowerShell editor
  • Add the following lines:
$TargetFile = "$env:SystemDrive\SAOImageDS9\ds9.exe"
$WorkingDir = "$env:SystemDrive\SAOImageDS9"
$ShortcutFile = "$env:ALLUSERSPROFILE\Microsoft\Windows\Start Menu\Programs\SAOImageDS9.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.WorkingDirectory = $WorkingDir
$Shortcut.Save()
  • Save the file to C:\Downloads and name it: SAOImageDS9StartMenuSC.ps1
  • Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  • Navigate to the C:\Downloads folder
  • Enter the following command:
    • Powershell.exe -ExecutionPolicy ByPass -File ".\SAOImageDS9StartMenuSC.ps1"

Create a SAOImageDS9 Desktop Shortcut with Windows PowerShell

  • Open PowerShell ISE or your favorite PowerShell editor
  • Add the following lines:
$TargetFile = "$env:SystemDrive\SAOImageDS9\ds9.exe"
$WorkingDir = "$env:SystemDrive\SAOImageDS9"
$ShortcutFile = "$env:PUBLIC\Desktop\SAOImageDS9.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.WorkingDirectory = $WorkingDir
$Shortcut.Save()
  • Save the file to C:\Downloads and name it: SAOImageDS9DesktopSC.ps1
  • Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  • Navigate to the C:\Downloads folder
  • Enter the following command:
    • Powershell.exe -ExecutionPolicy ByPass -File ".\SAOImageDS9DesktopSC.ps1"

Software Title:SAOImageDS9
Vendor:Smithsonian Astrophysical Observatory
Architecture:x64
Installer Type:EXE
Silent Install Switch:mkdir "%SYSTEMDRIVE%\SAOImageDS9" && tar -xf "SAOImageDS9 x.y.z Install.exe" --directory "%SYSTEMDRIVE%\SAOImageDS9"
Silent Uninstall Switch:RMDIR /Q /S "%SYSTEMDRIVE%\SAOImageDS9"
Download Link:https://ds9.si.edu/download/win64/
PowerShell Script:https://silentinstallhq.com/saoimageds9-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-saoimageds9-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

SAOImageDS9 Unattended Install (Not Silent)

"SAOImageDS9 x.y.z Install.exe" /auto "C:\SAOImageDS9"

How to Uninstall SAOImageDS9 Silently

Check out the following post for a scripted solution:

SAOImageDS9 Install and Uninstall (PowerShell)
SAOImageDS9 Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter the following set of commands:

SAOImageDS9 Silent Uninstall

RMDIR /Q /S "%SYSTEMDRIVE%\SAOImageDS9"
DEL "%PUBLIC%\Desktop\SAOImageDS9.lnk"
DEL "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\SAOImageDS9.lnk"

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Jason Bergner

I am an accomplished Software Engineer at Patch My PC, leveraging more than 18 years of hands-on experience in Configuration Manager administration and application packaging. I am driven by a genuine passion for solving complex problems and consistently strive to discover innovative and effective solutions. Sharing my extensive knowledge of application deployments is a true joy for me, and I am honored to contribute to the community here at Silent Install HQ.

Recent Posts