2024-12-12 16:03:24 -05:00
|
|
|
|
$ErrorActionPreference = 'Stop';
|
2024-12-16 13:29:26 -05:00
|
|
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|
|
|
|
$installDir = "C:\Program Files (x86)\Cricut Design Space\"
|
2020-03-09 10:22:27 -04:00
|
|
|
|
|
|
|
|
|
$packageArgs = @{
|
|
|
|
|
packageName = $env:ChocolateyPackageName
|
2024-12-12 16:03:24 -05:00
|
|
|
|
File = '\\ucs\software\CricutDesignSpace-Install-v8.60.67.exe'
|
2024-12-16 13:29:26 -05:00
|
|
|
|
Checksum = '78b04935a1be4cef0e9f690a75b53c86c5783d8491760a5dada709544cf25d0c'
|
|
|
|
|
ChecksumType = 'sha256'
|
|
|
|
|
UnzipLocation = $toolsDir
|
2020-03-09 10:22:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
2024-12-16 13:29:26 -05:00
|
|
|
|
Install-ChocolateyZipPackage @packageArgs
|
2020-03-10 11:49:09 -04:00
|
|
|
|
|
2024-12-16 13:29:26 -05:00
|
|
|
|
$innerPackageArgs = @{
|
|
|
|
|
File = "$(Join-Path $toolsDir '$PLUGINSDIR/app-32.7z')"
|
|
|
|
|
Destination = $installDir
|
|
|
|
|
}
|
2020-03-10 11:49:09 -04:00
|
|
|
|
|
2024-12-16 13:29:26 -05:00
|
|
|
|
Get-ChocolateyUnzip @innerPackageArgs
|
2020-03-10 11:49:09 -04:00
|
|
|
|
|
2024-12-16 13:29:26 -05:00
|
|
|
|
$shortcutArgs = @{
|
|
|
|
|
ShortcutFilePath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cricut Design Space.lnk"
|
|
|
|
|
TargetPath = "$(Join-Path $installDir 'Cricut Design Space.exe')"
|
|
|
|
|
WorkingDirectory = $installDir
|
|
|
|
|
IconLocation = "$(Join-Path $installDir 'Cricut Design Space.exe')"
|
|
|
|
|
Description = "Cricut Design Space Application"
|
|
|
|
|
}
|
2020-03-10 11:49:09 -04:00
|
|
|
|
|
2024-12-16 13:29:26 -05:00
|
|
|
|
Install-ChocolateyShortcut @shortcutArgs
|