Skip to content

Instantly share code, notes, and snippets.

@fabiojb
Created October 24, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiojb/46328fb554ab49da8a6c5ca8bffce2a9 to your computer and use it in GitHub Desktop.
Save fabiojb/46328fb554ab49da8a6c5ca8bffce2a9 to your computer and use it in GitHub Desktop.
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