diff --git a/packages/cyberchef.vm/cyberchef.vm.nuspec b/packages/cyberchef.vm/cyberchef.vm.nuspec index 4505658a..ae13b2d2 100644 --- a/packages/cyberchef.vm/cyberchef.vm.nuspec +++ b/packages/cyberchef.vm/cyberchef.vm.nuspec @@ -2,7 +2,7 @@ cyberchef.vm - 10.19.0.20240913 + 10.19.0.20241002 GCHQ The Cyber Swiss Army Knife - a web app for encryption, encoding, compression, data analysis, and more. diff --git a/packages/cyberchef.vm/tools/chocolateyinstall.ps1 b/packages/cyberchef.vm/tools/chocolateyinstall.ps1 index 50bea9ae..eb2591b3 100644 --- a/packages/cyberchef.vm/tools/chocolateyinstall.ps1 +++ b/packages/cyberchef.vm/tools/chocolateyinstall.ps1 @@ -6,7 +6,6 @@ try { $category = 'Utilities' $toolName = 'CyberChef' - $shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category $toolDir = Join-Path ${Env:RAW_TOOLS_DIR} $toolName $packageArgs = @{ @@ -19,17 +18,10 @@ try { Install-ChocolateyZipPackage @packageArgs VM-Assert-Path $toolDir - $shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category - $shortcut = Join-Path $shortcutDir "$toolName.lnk" - $executableCmd = Join-Path ${Env:WinDir} "system32\cmd.exe" -Resolve - $htmlPath = Join-Path $toolDir "CyberChef_v10.19.0.html" -Resolve - $arguments = "start chrome $htmlPath && exit" - $executableArgs = "/C $arguments" - $iconLocation = VM-Create-Ico (Join-Path $toolDir "images\cyberchef-128x128.png") # Create .ico for cyberchef icon - - Install-ChocolateyShortcut -ShortcutFilePath $shortcut -TargetPath $executableCmd -Arguments $executableArgs -WorkingDirectory $toolDir -WindowStyle 7 -IconLocation $iconLocation - - VM-Assert-Path $shortcut + $chromePath = "${env:ProgramFiles}\Google\Chrome\Application\chrome.exe" + $cyberchefPath = Get-Item "$toolDir\CyberChef*.html" + $iconLocation = VM-Create-Ico (Join-Path $toolDir "images\cyberchef-128x128.png") + VM-Install-Shortcut -toolName $toolName -category $category -executablePath $chromePath -arguments "-home $cyberchefPath" -iconLocation $iconLocation } catch { VM-Write-Log-Exception $_ }