Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shortcuts in didier-stevens-beta.vm #854

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/didier-stevens-beta.vm/didier-stevens-beta.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>didier-stevens-beta.vm</id>
<version>0.0.0.20231221</version>
<version>0.0.0.20240122</version>
<authors>Didier Stevens</authors>
<description>Beta versions of Didier Stevens's software</description>
<dependencies>
<dependency id="common.vm" />
<dependency id="common.vm" version="0.0.0.20231221" />
<dependency id="python3.vm" />
</dependencies>
</metadata>
Expand Down
11 changes: 6 additions & 5 deletions packages/didier-stevens-beta.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 $_
}
Loading