-
Notifications
You must be signed in to change notification settings - Fork 1
/
chocolateyinstall.ps1
23 lines (18 loc) · 1.01 KB
/
chocolateyinstall.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$ErrorActionPreference = 'Stop';
$toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$webFilePath = Join-Path $env:TEMP $env:ChocolateyPackageName | Join-Path -ChildPath $env:ChocolateyPackageVersion | Join-Path -ChildPath 'LyricsFinder.exe'
$getArgs = @{
packageName = $env:ChocolateyPackageName
fileFullPath = $webFilePath
url = 'https://www.mediahuman.com/download/LyricsFinder.exe'
checksum = '6f84a47a9efda50126b8db7d5acfeeb7a6d678ab407be01a6eed1e0957d576af'
checksumType = 'sha256'
}
Get-ChocolateyWebFile @getArgs
"Extracting using innounp..."
innounp -x "$webFilePath" -d"$toolsDir" -y -q
Remove-Item -path "$toolsDir\{tmp}" -recurse
Remove-Item -path "$toolsDir\install_script.iss"
Move-Item -Path "$toolsDir\{app}\*" -Destination "$toolsDir" -Force -ErrorAction SilentlyContinue
Remove-Item -path "$toolsDir\{app}"
Install-ChocolateyShortcut -shortcutFilePath "$($env:ProgramData)\Microsoft\Windows\Start Menu\Lyrics Finder.lnk" -targetPath "$toolsDir\LyricsFinder.exe"