Deploy Lightshot with PSADT, Intune, and Silent Install

Overview

This page explains how to deploy Lightshot 5.5.0.7 from Skillbrains to managed Windows devices, with the verified silent switches, the vendor uninstaller, the PSADT v4 package, the Intune settings and the detection rule together in one place.

Lightshot uses an EXE installer. The installer was built with Inno Setup.

ItemValue
ProductLightshot
PublisherSkillbrains
Version5.5.0.7
Installer typeEXE
Architecturex86
Scopemachine
ConfidenceHigh
Data freshnessCurrent
Verification statusStatic analysis of the vendor package; 17 of 17 deployment facts verified

Note: Deployment commands on this page were derived by statically analysing the vendor package. They were not executed or tested on a device.

Deployment Facts

Installation and removal are driven by Inno Setup switches rather than a Windows Installer package, so the arguments are the important facts here.

ItemValue
Installer fileSkillbrains.Lightshot.5.5.0.7.X86.exe
Install methodThe vendor EXE installer with silent switches
Install arguments/SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG="{ToolkitLogDir}\_Skillbrains.Lightshot.5.5.0.7.X86_Install.log"
Uninstall methodThe vendor uninstaller with silent switches
Uninstall target%ProgramFiles(x86)%\Skillbrains\lightshot\unins000.exe
Uninstall arguments/SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG="{ToolkitLogDir}\_unins000_Uninstall.log"
Install contextSystem (machine-wide)
Restart behaviorThe install arguments suppress restarts

Additional steps in the verified deployment:

WhenActionTarget
After installationRemoves%ProgramData%\Microsoft\Windows\Start Menu\Programs\Lightshot\Uninstall Lightshot.lnk

Silent Install

The command uses every switch the verified data lists, including the one that writes an installation log and the one that suppresses restarts.

Run this command from the folder that contains the EXE installer.

"Skillbrains.Lightshot.5.5.0.7.X86.exe" /SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG="{ToolkitLogDir}\_Skillbrains.Lightshot.5.5.0.7.X86_Install.log"

This command runs in the system context (machine-wide). The arguments suppress restarts.

Caution: The command contains the placeholder {ToolkitLogDir}, which has no stand-alone equivalent. Replace it with a suitable folder, or remove the switch that uses it.

Silent Uninstall

Removal runs the vendor's own Inno Setup uninstaller with matching silent switches.

Silent uninstall command:

"%ProgramFiles(x86)%\Skillbrains\lightshot\unins000.exe" /SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG="{ToolkitLogDir}\_unins000_Uninstall.log"

Caution: The uninstall command contains the same placeholder {ToolkitLogDir}; replace it in the same way.

PSADT v4 Deployment

In the toolkit package the same installer and uninstaller are started for you, and the package also deletes an uninstall shortcut in the Start Menu after installation.

The PSADT v4 deployment below targets PSAppDeployToolkit 4.1.8. The entry point is Invoke-AppDeployToolkit.ps1.

Commands of the install phase (Install-ADTDeployment). The generated script also wraps them in the standard toolkit scaffolding:

## Install
Start-ADTProcess -FilePath "$($adtSession.DirFiles)\Skillbrains.Lightshot.5.5.0.7.X86.exe" -ArgumentList "/SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG=`"$((Get-ADTConfig).Toolkit.LogPath)\_Skillbrains.Lightshot.5.5.0.7.X86_Install.log`""
## Post-Install
Remove-ADTFile -Path "$([Environment]::GetFolderPath('CommonPrograms'))\Lightshot\Uninstall Lightshot.lnk"

Commands of the uninstall phase (Uninstall-ADTDeployment). The generated script also wraps them in the standard toolkit scaffolding:

## Uninstall
Start-ADTProcess -FilePath "$(${env:ProgramFiles(x86)})\Skillbrains\lightshot\unins000.exe" -ArgumentList "/SP- /SUPPRESSMSGBOXES /VERYSILENT /NORESTART /LOG=`"$((Get-ADTConfig).Toolkit.LogPath)\_unins000_Uninstall.log`""

Run the package from its folder:

powershell.exe -ExecutionPolicy Bypass -File Invoke-AppDeployToolkit.ps1 -DeploymentType Install -DeployMode Silent
powershell.exe -ExecutionPolicy Bypass -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall -DeployMode Silent

Microsoft Intune

Because the commands depend on the toolkit, the app's install and uninstall command lines call the PSADT package instead of the installer directly.

Approach: PSADT package. The deployment has 1 additional pre/post/cleanup step; install/uninstall values contain runtime symbols that only a script can resolve.

ItemValue
Install behaviorSystem
Restart behaviorsuppress (from the verified install arguments)
Architecturex86
Scopemachine
Minimum operating systemNot available in the verified source data. Select it in Intune yourself.
Return codesPackage-specific return codes: Not available in the verified source data.

Install command:

powershell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-AppDeployToolkit.ps1 -DeploymentType Install -DeployMode Silent

Uninstall command:

powershell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall -DeployMode Silent

Intune detection rule types for this application: registry value. See Detection Rules for the values.

Caution: This Intune configuration is not fully verified. The comparison operator of the detection rule could not be verified from the source data. Choose the operator yourself when you set up the version check.

Detection Rules

Detection reads the installed version from the application's uninstall entry in the registry view used by x86 applications and compares it with the target version.

ItemValue
Rule typeRegistry value
Key pathHKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{30A5B3C9-2084-4063-A32A-628A98DE512B}_is1
Value nameDisplayVersion
Target value5.5.0.7
Registry view32-bit
Comparison operatorOperator code 1 (its meaning is not documented in the verified source data; confirm it before relying on this rule)

Requirements, Scope and Architecture

ItemValue
Architecturex86
Scopemachine
Install contextSystem (machine-wide)
Minimum operating systemNot available in the verified source data.

Package

A PSADT v4 package for Lightshot was assembled from the pinned PSAppDeployToolkit 4.1.8 and the vendor installer. Public download of this package is not offered yet.

ItemValue
Package fileLightshot-5.5.0.7-psadt-v4.zip
ToolkitPSAppDeployToolkit 4.1.8
Files223
Size (bytes)11845390
SHA-256a5385bb3f74507924f457d86ede2f04e0abb99ea8b859176da0dbe44cdef2a16
Installer SHA-256928c2808421dfd487ffa697379548cbe682c0e13aeb595eb89973ba9c515b8a1
Static validation19 of 19 checks passed

Version and Freshness

The deployment data on this page reflects Lightshot 5.5.0.7.

When this page was generated, the source data reported no newer version.

Source Confidence and Verification

ConfidenceHow it was obtainedFacts
VerifiedRead directlyInstaller file, Installer type, Architecture
HighRead directlyInstall method, Uninstall method, Scope, Detection rule
HighRead, with run-time variablesInstall arguments, Uninstall target

Overall confidence is High. Confidence levels are Verified (read from installer metadata or confirmed by independent sources), High, Medium, Low and Unknown.

Frequently Asked Questions

Which installer technology does Lightshot use?

Lightshot ships as an Inno Setup EXE, so the silent options are Inno Setup switches.

How do I install Lightshot silently?

Use the command in the Silent Install section. It installs for the machine and suppresses restarts, but its log switch contains a placeholder that you must replace first.

How do I uninstall Lightshot silently?

Use the command in the Silent Uninstall section, which runs the vendor uninstaller. Its log switch has the same placeholder to replace.

How is Lightshot detected in Intune?

By a registry value that holds the installed version; see Detection Rules for the values.

Does the Lightshot installation restart the device?

No. The verified install arguments suppress restarts.