File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#
2- for ($i = 0 ; $i -le $args.Count ; $i ++ ) {
2+ for ($i = 0 ; $i -le $args.Count - 1 ; $i ++ ) {
33 $folder += $args [$i ] + " "
44}
5+ $timeStamp = $args [-1 ]
56
67$vboxInstalled = Test-Path $folder ' \..\virtualbox'
78$openjdkInstalled = Test-Path $folder ' \..\jdk8'
Original file line number Diff line number Diff line change 1+ $timeStamp = $args [0 ]
12$folder = Split-Path - Parent - Path $MyInvocation.MyCommand.Definition
23
34Copy-Item $folder / uninstall-helper.ps1 $env: TEMP / uninstall-helper.ps1
45cd ../ ..
56# sign all shell scripts and replace ByPass to AllSigned
6- Start-Process powershell.exe - Verb runAs - ArgumentList " -ExecutionPolicy ByPass -File `" $env: TEMP \uninstall-helper.ps1`" $folder "
7+ Start-Process powershell.exe - Verb runAs - ArgumentList " -ExecutionPolicy ByPass -File `" $env: TEMP \uninstall-helper.ps1`" $folder $timeStamp "
You can’t perform that action at this time.
0 commit comments