diff --git a/packages/didier-stevens-beta.vm/didier-stevens-beta.vm.nuspec b/packages/didier-stevens-beta.vm/didier-stevens-beta.vm.nuspec index 6d4ad3677..65f525209 100644 --- a/packages/didier-stevens-beta.vm/didier-stevens-beta.vm.nuspec +++ b/packages/didier-stevens-beta.vm/didier-stevens-beta.vm.nuspec @@ -2,11 +2,11 @@ didier-stevens-beta.vm - 0.0.0.20231221 + 0.0.0.20240122 Didier Stevens Beta versions of Didier Stevens's software - + diff --git a/packages/didier-stevens-beta.vm/tools/chocolateyinstall.ps1 b/packages/didier-stevens-beta.vm/tools/chocolateyinstall.ps1 index 4c66f66f9..a8e6e6453 100644 --- a/packages/didier-stevens-beta.vm/tools/chocolateyinstall.ps1 +++ b/packages/didier-stevens-beta.vm/tools/chocolateyinstall.ps1 @@ -17,15 +17,16 @@ try { $toolDir = Get-Item "${Env:RAW_TOOLS_DIR}\Beta-*" VM-Assert-Path $toolDir - # Add shortcut for commonly used office tools + # Add shortcut for commonly used office python tools ForEach ($toolName in @('onedump')) { - $executablePath = Join-Path $toolDir "$toolName.py" - VM-Install-Shortcut $toolName $category $executablePath -consoleApp $true -arguments "--help" + $executablePath = (Get-Command python).Source + $filePath = Join-Path $toolDir "$toolName.py" + $arguments = $filePath + " --help" + VM-Install-Shortcut $toolName $category $executablePath -consoleApp $true -arguments $arguments } # Add tools to Path - $path = [Environment]::GetEnvironmentVariable("Path", "Machine") + [IO.Path]::PathSeparator + $toolDir - [Environment]::SetEnvironmentVariable("Path", $path, "Machine") + VM-Add-To-Path $toolDir } catch { VM-Write-Log-Exception $_ }