Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lightshot scoop app manifest
{
"homepage": "https://prnt.sc",
"license": {
"identifier": "Freeware",
"url": "https://app.prntscr.com/en/license.html"
},
"url": "https://app.prntscr.com/build/setup-lightshot.exe",
"hash": "455b17124a474bfa512580ba9bcd275dc8e1119482ad604b83b3cb5611a6f73f",
"version": "5.4.0.35",
"extract_dir": "lightshot",
"innosetup": true,
"post_install": [
"# clear innounp logs",
"Remove-Item $dir\\innounp.log",
"# ensure Startup folder exist",
"$startup = [environment]::GetFolderPath('Startup')",
"if(!$startup) {",
" $startup = New-Item -ItemType directory -Path \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\" | % {$_.FullName}",
"}",
"# add the program to Windows startup",
"$WshShell = New-Object -comObject WScript.Shell",
"$Shortcut = $WshShell.CreateShortcut(\"$startup\\lightshot.lnk\")",
"$Shortcut.TargetPath = \"$dir\\Lightshot.exe\"",
"$Shortcut.Save()",
"# start the program",
"Start-Process -FilePath \"$dir\\Lightshot.exe\""
],
"uninstaller": {
"script": [
"Remove-Item ([environment]::GetFolderPath('Startup') + '\\lightshot.lnk') -ErrorAction Ignore",
"Get-Process -Name 'Lightshot' | Stop-Process"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment