Skip to content

Commit

Permalink
Merge pull request #933 from Ana06/fix2
Browse files Browse the repository at this point in the history
[installer] Fix creation of Admin Command Prompt
  • Loading branch information
Ana06 authored Mar 4, 2024
2 parents 752842d + 0abd739 commit 11f59e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/installer.vm/installer.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>installer.vm</id>
<version>0.0.0.20240304</version>
<version>0.0.0.20240305</version>
<authors>Mandiant</authors>
<description>Generic installer for custom virtual machines.</description>
<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions packages/installer.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ try {
$shortcutDir = ${Env:RAW_TOOLS_DIR}
$shortcut = Join-Path $shortcutDir "$toolName.lnk"
$workingDir = Join-Path ${Env:UserProfile} "Desktop"
$target = "$executablePath /k `"cd $workingDir`""
$arguments = "/k `"cd `"$workingDir`"`""

Install-ChocolateyShortcut -shortcutFilePath $shortcut -targetPath $target -RunAsAdmin
Install-ChocolateyShortcut -shortcutFilePath $shortcut -targetPath $executablePath -Arguments $arguments -RunAsAdmin
VM-Assert-Path $shortcut

Import-StartLayout -LayoutPath $customLayout -MountPath "C:\"
Expand Down

0 comments on commit 11f59e9

Please sign in to comment.