Skip to content

Commit

Permalink
Fix the unresolved chrome path at cyberchef.vm
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Jul 24, 2024
1 parent d5f5c33 commit 4951414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cyberchef.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ try {
$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"
$chromePath = Join-Path ${Env:ProgramFiles} "Google\Chrome\Application\chrome.exe"
$arguments = "start `"`" `"$chromePath`" $htmlPath && exit"
$executableArgs = "/C $arguments"
$iconLocation = "%ProgramFiles%\Google\Chrome\Application\chrome.exe"

Install-ChocolateyShortcut -ShortcutFilePath $shortcut -TargetPath $executableCmd -Arguments $executableArgs -WorkingDirectory $toolDir -WindowStyle 7 -IconLocation $iconLocation
Install-ChocolateyShortcut -ShortcutFilePath $shortcut -TargetPath $executableCmd -Arguments $executableArgs -WorkingDirectory $toolDir -WindowStyle 7 -IconLocation $chromePath

VM-Assert-Path $shortcut
} catch {
Expand Down

0 comments on commit 4951414

Please sign in to comment.