|
2022-04-13 14:38:27,980 2320 [DEBUG] - XmlConfiguration is now operational
|
|
2022-04-13 14:38:28,041 2320 [INFO ] - ============================================================
|
|
2022-04-13 14:38:28,277 2320 [INFO ] - Chocolatey v1.1.0
|
|
2022-04-13 14:38:28,291 2320 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
|
|
2022-04-13 14:38:28,291 2320 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
|
|
2022-04-13 14:38:28,291 2320 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
|
|
2022-04-13 14:38:28,307 2320 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall gsudo --version 1.3.0 -dvy --execution-timeout=2700
|
|
2022-04-13 14:38:28,307 2320 [DEBUG] - Received arguments: uninstall gsudo --version 1.3.0 -dvy --execution-timeout=2700
|
|
2022-04-13 14:38:28,355 2320 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
|
|
2022-04-13 14:38:28,355 2320 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
|
|
2022-04-13 14:38:28,370 2320 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
|
|
2022-04-13 14:38:28,479 2320 [DEBUG] - Performing validation checks.
|
|
2022-04-13 14:38:28,479 2320 [DEBUG] - Global Configuration Validation Checks:
|
|
2022-04-13 14:38:28,479 2320 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
|
|
2022-04-13 14:38:28,479 2320 [DEBUG] - System State Validation Checks:
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - Reboot Requirement Checks:
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending Computer Rename = Checked
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending Component Based Servicing = Checked
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending Windows Auto Update = Checked
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending File Rename Operations = Ignored
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending Windows Package Installer = Checked
|
|
2022-04-13 14:38:28,495 2320 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
|
|
2022-04-13 14:38:28,495 2320 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
|
|
2022-04-13 14:38:28,511 2320 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
|
|
2022-04-13 14:38:28,511 2320 [DEBUG] -
|
|
NOTE: Hiding sensitive configuration data! Please double and triple
|
|
check to be sure no sensitive data is shown, especially if copying
|
|
output to a gist for review.
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - Configuration: CommandName='uninstall'|
|
|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
|
|
ContainsLegacyPackageInstalls='True'|
|
|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
|
|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
|
|
SourceType='normal'|Debug='True'|Verbose='True'|Trace='False'|
|
|
Force='False'|Noop='False'|HelpRequested='False'|
|
|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
|
|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
|
|
AcceptLicense='True'|AllowUnofficialBuild='False'|Input='gsudo'|
|
|
Version='1.3.0'|AllVersions='False'|SkipPackageInstallProvider='False'|
|
|
PackageNames='gsudo'|Prerelease='False'|ForceX86='False'|
|
|
OverrideArguments='False'|NotSilent='False'|
|
|
ApplyPackageParametersToDependencies='False'|
|
|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
|
|
AllowMultipleVersions='False'|AllowDowngrade='False'|
|
|
ForceDependencies='False'|Information.PlatformType='Windows'|
|
|
Information.PlatformVersion='6.3.9600.0'|
|
|
Information.PlatformName='Windows Server 2012 R2'|
|
|
Information.ChocolateyVersion='1.1.0.0'|
|
|
Information.ChocolateyProductVersion='1.1.0'|
|
|
Information.FullName='choco, Version=1.1.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
|
|
|
|
Information.Is64BitOperatingSystem='True'|
|
|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
|
|
Information.UserName='vagrant'|
|
|
Information.UserDomainName='WIN-E5K8TM30719'|
|
|
Information.IsUserAdministrator='True'|
|
|
Information.IsUserSystemAccount='False'|
|
|
Information.IsUserRemoteDesktop='False'|
|
|
Information.IsUserRemote='True'|
|
|
Information.IsProcessElevated='True'|
|
|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
|
|
Information.CurrentDirectory='C:\Windows\system32'|
|
|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
|
|
Features.AllowEmptyChecksums='False'|
|
|
Features.AllowEmptyChecksumsSecure='True'|
|
|
Features.FailOnAutoUninstaller='False'|
|
|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
|
|
Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'|
|
|
Features.VirusCheck='False'|
|
|
Features.FailOnInvalidOrMissingLicense='False'|
|
|
Features.IgnoreInvalidOptionsSwitches='True'|
|
|
Features.UsePackageExitCodes='True'|
|
|
Features.UseEnhancedExitCodes='False'|
|
|
Features.UseFipsCompliantChecksums='False'|
|
|
Features.ShowNonElevatedWarnings='True'|
|
|
Features.ShowDownloadProgress='False'|
|
|
Features.StopOnFirstPackageFailure='False'|
|
|
Features.UseRememberedArgumentsForUpgrades='False'|
|
|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
|
|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
|
|
Features.RemovePackageInformationOnUninstall='False'|
|
|
Features.ExitOnRebootDetected='False'|
|
|
Features.LogValidationResultsOnWarnings='True'|
|
|
Features.UsePackageRepositoryOptimizations='True'|
|
|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
|
|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
|
|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
|
|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
|
|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
|
|
ListCommand.DownloadCacheAvailable='False'|
|
|
ListCommand.NotBroken='False'|
|
|
ListCommand.IncludeVersionOverrides='False'|
|
|
UpgradeCommand.FailOnUnfound='False'|
|
|
UpgradeCommand.FailOnNotInstalled='False'|
|
|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
|
|
UpgradeCommand.ExcludePrerelease='False'|
|
|
NewCommand.AutomaticPackage='False'|
|
|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
|
|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
|
|
SourceCommand.AllowSelfService='False'|
|
|
SourceCommand.VisibleToAdminsOnly='False'|
|
|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
|
|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
|
|
OutdatedCommand.IgnorePinned='False'|
|
|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
|
|
TemplateCommand.Command='unknown'|
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
|
|
2022-04-13 14:38:28,526 2320 [INFO ] - Uninstalling the following packages:
|
|
2022-04-13 14:38:28,526 2320 [INFO ] - gsudo
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - Current environment values (may contain sensitive data):
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - * 'ChocolateyLastPathUpdate'='132943342842299283' ('User')
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - * 'ChocolateyToolsLocation'='C:\tools' ('User')
|
|
2022-04-13 14:38:28,526 2320 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;C:\tools\gsudo\Current;' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
|
|
2022-04-13 14:38:28,542 2320 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
|
|
2022-04-13 14:38:28,557 2320 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 60 Stepping 3, GenuineIntel' ('Machine')
|
|
2022-04-13 14:38:28,557 2320 [DEBUG] - * 'PROCESSOR_REVISION'='3c03' ('Machine')
|
|
2022-04-13 14:38:28,557 2320 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
|
|
2022-04-13 14:38:28,557 2320 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
|
|
2022-04-13 14:38:28,667 2320 [DEBUG] - Running list with the following filter = ''
|
|
2022-04-13 14:38:28,667 2320 [DEBUG] - --- Start of List ---
|
|
2022-04-13 14:38:28,807 2320 [DEBUG] - gsudo 1.3.0
|
|
2022-04-13 14:38:28,807 2320 [DEBUG] - --- End of List ---
|
|
2022-04-13 14:38:28,854 2320 [DEBUG] - Setting installer args for gsudo
|
|
2022-04-13 14:38:28,854 2320 [DEBUG] - Setting package parameters for gsudo
|
|
2022-04-13 14:38:28,854 2320 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1':
|
|
2022-04-13 14:38:28,854 2320 [DEBUG] - $ErrorActionPreference = 'Ignore'
|
|
|
|
if (Get-Process gsudo 2> $null) {
|
|
if (Get-Command gsudo.exe 2> $null) {
|
|
# Stop any gsudo open cache sessions, if any.
|
|
gsudo.exe -k 2> $null
|
|
Start-Sleep -Milliseconds 500
|
|
}
|
|
}
|
|
|
|
$ToolsLocation = Get-ToolsLocation
|
|
if ([System.Environment]::CurrentDirectory -like "$ToolsLocation*") {
|
|
Write-Output -Verbose "Changing directory to $ToolsLocation to ensure successfull install/upgrade."
|
|
Set-Location $ToolsLocation
|
|
}
|
|
|
|
$ErrorActionPreference = 'Continue'
|
|
|
|
2022-04-13 14:38:28,886 2320 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1' -installArguments '' -packageParameters ''']
|
|
2022-04-13 14:38:28,886 2320 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
|
|
2022-04-13 14:38:29,058 2320 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:29,167 2320 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:29,182 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:29,198 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:29,214 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:29,230 2320 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2022-04-13 14:38:29,230 2320 [DEBUG] - Loading community extensions
|
|
2022-04-13 14:38:29,245 2320 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
|
|
2022-04-13 14:38:29,245 2320 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2022-04-13 14:38:29,276 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:29,292 2320 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,308 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:29,323 2320 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:29,339 2320 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:29,355 2320 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:29,386 2320 [DEBUG] - ---------------------------Script Execution---------------------------
|
|
2022-04-13 14:38:29,386 2320 [DEBUG] - Running 'ChocolateyScriptRunner' for gsudo v1.3.0 with packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\gsudo', installArguments: '', packageParameters: '',
|
|
2022-04-13 14:38:29,401 2320 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1'
|
|
2022-04-13 14:38:29,417 2320 [DEBUG] - Running Get-ToolsLocation
|
|
2022-04-13 14:38:29,433 2320 [DEBUG] - ----------------------------------------------------------------------
|
|
2022-04-13 14:38:29,464 2320 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1' -installArguments '' -packageParameters '''] exited with '0'.
|
|
2022-04-13 14:38:29,526 2320 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
|
|
2022-04-13 14:38:29,526 2320 [DEBUG] - Backing up existing gsudo prior to operation.
|
|
2022-04-13 14:38:29,526 2320 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\gsudo'
|
|
to 'C:\ProgramData\chocolatey\lib-bkp\gsudo'
|
|
2022-04-13 14:38:31,542 2320 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\gsudo".
|
|
2022-04-13 14:38:31,542 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\gsudo.nupkg"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\gsudo.nupkg".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\gsudo.nuspec"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\gsudo.nuspec".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\gsudo\bin".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\gsudo"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\gsudo.exe"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo.exe".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\gsudo.exe.ignore"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo.exe.ignore".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\gsudoModule.psd1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\gsudoModule.psd1".
|
|
2022-04-13 14:38:31,558 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\gsudoModule.psm1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\gsudoModule.psm1".
|
|
2022-04-13 14:38:31,573 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\Invoke-gsudo.ps1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\Invoke-gsudo.ps1".
|
|
2022-04-13 14:38:31,589 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\bin\sudo.exe.ignore"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\bin\sudo.exe.ignore".
|
|
2022-04-13 14:38:31,589 2320 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\gsudo\tools".
|
|
2022-04-13 14:38:31,620 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\chocolateybeforemodify.ps1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1".
|
|
2022-04-13 14:38:31,651 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\chocolateyinstall.ps1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyinstall.ps1".
|
|
2022-04-13 14:38:31,667 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\chocolateyuninstall.ps1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1".
|
|
2022-04-13 14:38:31,667 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\LICENSE.txt"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\LICENSE.txt".
|
|
2022-04-13 14:38:31,667 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\Uninstall-ChocolateyPath.psm1"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\Uninstall-ChocolateyPath.psm1".
|
|
2022-04-13 14:38:31,667 2320 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\gsudo\tools\VERIFICATION.txt"
|
|
to "C:\ProgramData\chocolatey\lib\gsudo\tools\VERIFICATION.txt".
|
|
2022-04-13 14:38:33,230 2320 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\gsudo'
|
|
2022-04-13 14:38:33,230 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\gsudo.nupkg'
|
|
with checksum 'F887EFB4D5427B138F2A7749A5AE8B3F'
|
|
2022-04-13 14:38:33,230 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\gsudo.nuspec'
|
|
with checksum 'ED864BAFBF99B021EC98E95AFD4503F3'
|
|
2022-04-13 14:38:33,230 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo'
|
|
with checksum 'E24994CDC06D3CF4CE28A78AF769C999'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo.exe'
|
|
with checksum '5438370D02F609BC2F547C11EF9A556A'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\gsudo.exe.ignore'
|
|
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\gsudoModule.psd1'
|
|
with checksum '7E6A44725AC3DD7CED799D02F35D1BFC'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\gsudoModule.psm1'
|
|
with checksum '137CDA2AD5E1F90D0764C4F383F6D51F'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\Invoke-gsudo.ps1'
|
|
with checksum '697016B6E77E225E1F42B98F5BFBDE1E'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\bin\sudo.exe.ignore'
|
|
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateybeforemodify.ps1'
|
|
with checksum 'A5EF147A3A71398ABEEF0BA940174454'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyinstall.ps1'
|
|
with checksum '4583CDCB81E756A57FDDEA6071414CFB'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1'
|
|
with checksum '2135CDE845968A836D417C468112DDDD'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\LICENSE.txt'
|
|
with checksum 'F5F8DE654F0576F6C48F8A77C5C4DEB0'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\Uninstall-ChocolateyPath.psm1'
|
|
with checksum 'A559C0EDEF7519E16C8A040779C2556D'
|
|
2022-04-13 14:38:33,245 2320 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\gsudo\tools\VERIFICATION.txt'
|
|
with checksum '5DF720EBF93D774143CC78145439F325'
|
|
2022-04-13 14:38:33,416 2320 [INFO ] - [NuGet] Uninstalling 'gsudo 1.3.0'.
|
|
2022-04-13 14:38:33,416 2320 [INFO ] -
|
|
gsudo v1.3.0
|
|
2022-04-13 14:38:33,416 2320 [DEBUG] - Setting installer args for gsudo
|
|
2022-04-13 14:38:33,432 2320 [DEBUG] - Setting package parameters for gsudo
|
|
2022-04-13 14:38:33,432 2320 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1':
|
|
2022-04-13 14:38:33,432 2320 [DEBUG] - Import-Module (Join-Path (Split-Path -parent $MyInvocation.MyCommand.Definition) "Uninstall-ChocolateyPath.psm1")
|
|
|
|
function MarkFileDelete {
|
|
param(
|
|
[parameter(Mandatory=$true)]
|
|
[string] $path
|
|
)
|
|
|
|
# the code below has been used from
|
|
# https://blogs.technet.com/b/heyscriptingguy/archive/2013/10/19/weekend-scripter-use-powershell-and-pinvoke-to-remove-stubborn-files.aspx
|
|
# with inspiration from
|
|
# http://www.leeholmes.com/blog/2009/02/17/moving-and-deleting-really-locked-files-in-powershell/
|
|
# and error handling from
|
|
# https://blogs.technet.com/b/heyscriptingguy/archive/2013/06/25/use-powershell-to-interact-with-the-windows-api-part-1.aspx
|
|
|
|
Add-Type @'
|
|
using System;
|
|
using System.Text;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class Posh
|
|
{
|
|
public enum MoveFileFlags
|
|
{
|
|
MOVEFILE_DELAY_UNTIL_REBOOT = 0x00000004
|
|
}
|
|
|
|
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
|
static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, MoveFileFlags dwFlags);
|
|
|
|
public static bool MarkFileDelete (string sourcefile)
|
|
{
|
|
return MoveFileEx(sourcefile, null, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);
|
|
}
|
|
}
|
|
'@
|
|
$deleteResult = [Posh]::MarkFileDelete($path)
|
|
|
|
if ($deleteResult) {
|
|
write-Warning "(Delete of $path failed: Will be deleted at next boot.)"
|
|
} else {
|
|
write-Warning "(Error marking $path for deletion at next boot.)"
|
|
}
|
|
}
|
|
|
|
|
|
$installPath = "$(Get-ToolsLocation)\gsudo"
|
|
Uninstall-ChocolateyPath "$installPath\Current" 'Machine'
|
|
|
|
$ErrorActionPreference="Ignore"
|
|
|
|
# Delete symlinks in Pwsh 5.
|
|
Get-ChildItem $installPath -Recurse |? LinkType -eq 'SymbolicLink'|%{$_.Delete()}
|
|
# Delete the rest.
|
|
Remove-Item $installPath -Recurse -Force -ErrorAction Ignore
|
|
Remove-Item $installPath -Recurse -Force -ErrorAction Ignore
|
|
|
|
if (Test-Path $installPath) {
|
|
# Files are in use so delete failed.
|
|
# Rename used files and directories.
|
|
|
|
Get-ChildItem $installPath -Recurse -Exclude "*.deleteMe" | Sort-Object -Descending {(++$script:i)} | % { Rename-Item -Path $_.FullName -NewName ($_.Name + ".deleteMe") ; } *> $NULL
|
|
# Mark remaining for delete after restart.
|
|
Get-ChildItem $installPath -Recurse | % { MarkFileDelete ( $_.FullName) }
|
|
MarkFileDelete ( $installPath );
|
|
}
|
|
|
|
$ErrorActionPreference = 'Continue'
|
|
|
|
2022-04-13 14:38:33,432 2320 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters ''']
|
|
2022-04-13 14:38:33,432 2320 [DEBUG] - Redirecting Microsoft.PowerShell.Security, requested by ''
|
|
2022-04-13 14:38:33,463 2320 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
|
|
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=5.0.0.0' or one of its dependencies. The system cannot find the file specified.
|
|
2022-04-13 14:38:33,463 2320 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
|
|
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=4.0.0.0' or one of its dependencies. The system cannot find the file specified.
|
|
2022-04-13 14:38:33,463 2320 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
|
|
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=3.0.0.0' or one of its dependencies. The system cannot find the file specified.
|
|
2022-04-13 14:38:33,463 2320 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
|
|
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified.
|
|
2022-04-13 14:38:33,542 2320 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:33,573 2320 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,589 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:33,604 2320 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2022-04-13 14:38:33,604 2320 [DEBUG] - Loading community extensions
|
|
2022-04-13 14:38:33,620 2320 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:33,620 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:33,635 2320 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
|
|
2022-04-13 14:38:33,651 2320 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,666 2320 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
|
|
2022-04-13 14:38:33,666 2320 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
|
|
2022-04-13 14:38:33,666 2320 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
|
|
2022-04-13 14:38:33,666 2320 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
|
|
2022-04-13 14:38:33,682 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2022-04-13 14:38:33,698 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
|
|
2022-04-13 14:38:33,713 2320 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
|
|
2022-04-13 14:38:33,729 2320 [DEBUG] - ---------------------------Script Execution---------------------------
|
|
2022-04-13 14:38:33,729 2320 [DEBUG] - Running 'ChocolateyScriptRunner' for gsudo v1.3.0 with packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\gsudo', installArguments: '', packageParameters: '',
|
|
2022-04-13 14:38:33,729 2320 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1'
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\lib\gsudo\tools\Uninstall-ChocolateyPath.psm1'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPath'.
|
|
2022-04-13 14:38:33,729 2320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPath'.
|
|
2022-04-13 14:38:33,729 2320 [DEBUG] - Running Get-ToolsLocation
|
|
2022-04-13 14:38:33,745 2320 [DEBUG] - Running Uninstall-ChocolateyPath -pathToUninstall 'C:\tools\gsudo\Current' -pathType 'Machine'
|
|
2022-04-13 14:38:33,745 2320 [DEBUG] - Running Update-SessionEnvironment
|
|
2022-04-13 14:38:33,808 2320 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
|
|
2022-04-13 14:38:33,933 2320 [INFO ] - PATH environment variable has C:\tools\gsudo\Current in it. Removing...
|
|
2022-04-13 14:38:33,933 2320 [INFO ] -
|
|
2022-04-13 14:38:33,933 2320 [INFO ] - VERBOSE: Choosing not to expand environment names
|
|
2022-04-13 14:38:33,964 2320 [DEBUG] - Test-ProcessAdminRights: returning True
|
|
2022-04-13 14:38:33,980 2320 [DEBUG] - Running Set-EnvironmentVariable -Name 'Path' -Value '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' -Scope 'Machine'
|
|
2022-04-13 14:38:33,995 2320 [DEBUG] - Registry type for Path is/will be ExpandString
|
|
2022-04-13 14:38:34,011 2320 [DEBUG] - |
|
using System; |
|
using System.Runtime.InteropServices; |
|
|
|
namespace Win32 |
|
{ |
|
public class NativeMethods |
|
{ |
|
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
|
|
public static extern IntPtr SendMessageTimeout(
|
|
IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
|
|
uint fuFlags, uint uTimeout, out UIntPtr lpdwResult); |
|
|
|
} |
|
|
|
} |
|
|
|
2022-04-13 14:38:34,120 2320 [DEBUG] - Running Update-SessionEnvironment
|
|
2022-04-13 14:38:34,120 2320 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
|
|
2022-04-13 14:38:34,167 2320 [DEBUG] - ----------------------------------------------------------------------
|
|
2022-04-13 14:38:34,167 2320 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\gsudo\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
|
|
2022-04-13 14:38:34,245 2320 [INFO ] - Skipping auto uninstaller - No registry snapshot.
|
|
2022-04-13 14:38:34,245 2320 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
|
|
2022-04-13 14:38:34,261 2320 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
|
|
2022-04-13 14:38:34,277 2320 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\gsudo".
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'chocolateybeforemodify.ps1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'chocolateyinstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'chocolateyuninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'LICENSE.txt' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'Uninstall-ChocolateyPath.psm1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,291 2320 [DEBUG] - [NuGet] Removed file 'VERIFICATION.txt' to folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\gsudo\tools'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudo' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudo.exe' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudo.exe.ignore' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudoModule.psd1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudoModule.psm1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'Invoke-gsudo.ps1' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'sudo.exe.ignore' to folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\gsudo\bin'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudo.nuspec' to folder 'C:\ProgramData\chocolatey\lib\gsudo'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed file 'gsudo.nupkg' to folder 'C:\ProgramData\chocolatey\lib\gsudo'.
|
|
2022-04-13 14:38:34,308 2320 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\gsudo'.
|
|
2022-04-13 14:38:34,323 2320 [INFO ] - [NuGet] Successfully uninstalled 'gsudo 1.3.0'.
|
|
2022-04-13 14:38:34,323 2320 [INFO ] - gsudo has been successfully uninstalled.
|
|
2022-04-13 14:38:34,323 2320 [DEBUG] - Removing nupkg if it still exists.
|
|
2022-04-13 14:38:34,323 2320 [DEBUG] - Ensuring removal of installation files.
|
|
2022-04-13 14:38:34,323 2320 [DEBUG] - Ensuring removal of package cache files.
|
|
2022-04-13 14:38:34,339 2320 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
|
|
see the changes (or in powershell/cmd.exe just type `refreshenv`).
|
|
2022-04-13 14:38:34,339 2320 [DEBUG] - The following values have been added/changed (may contain sensitive data):
|
|
2022-04-13 14:38:34,339 2320 [DEBUG] - * ChocolateyLastPathUpdate='132943343141047171' (User)
|
|
2022-04-13 14:38:34,339 2320 [DEBUG] - * Path='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' (Machine)
|
|
2022-04-13 14:38:34,355 2320 [WARN ] -
|
|
Chocolatey uninstalled 1/1 packages.
|
|
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
|
|
2022-04-13 14:38:34,355 2320 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
|
|
2022-04-13 14:38:34,355 2320 [DEBUG] - Exiting with 0
|