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
- Navigate to: https://ds9.si.edu/download/win64/
- Download the “SAOImageDS9 x.y.z Install.exe” to a folder created at (C:\Downloads)
- 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 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:
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- 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.