Skip to content

Failed to update powershell preview by winget because it told me need the old(now) version package(msi) to uninstall #24052

@hoshiizumiya

Description

@hoshiizumiya

Prerequisites

Steps to reproduce

winget install --id Microsoft.Powershell.Preview --source winget

Now I didn't notice that I even need the old package to uninstall the powershell in windows control panel?

I firstly installed powershell by winget too

Expected behavior

insatll finished

Actual behavior

Found an existing package already installed. Trying to upgrade the installed package...
Found PowerShell Preview [Microsoft.PowerShell.Preview] Version 7.5.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Installation abandoned

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.0-preview.2
PSEdition                      Core
GitCommitId                    7.5.0-preview.2
OS                             Microsoft Windows 10.0.26244
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

OS Data

C:\WINDOWS\system32              26244       彼方           00330-80000-00000-AA835 10.0.26244

Windows update log

=== Logging started: 2024/7/14/星期日  23:50:53 ===
Action start 23:50:53: INSTALL.
Action start 23:50:53: FindRelatedProducts.
Action ended 23:50:53: FindRelatedProducts. Return value 1.
Action start 23:50:53: AppSearch.
Action ended 23:50:53: AppSearch. Return value 1.
Action start 23:50:53: AddExplorerContextMenuOpenPowerShell_DeleteIfOff.
Action ended 23:50:53: AddExplorerContextMenuOpenPowerShell_DeleteIfOff. Return value 1.
Action start 23:50:53: AddFileContextMenuRunPowerShell_DeleteIfOff.
Action ended 23:50:53: AddFileContextMenuRunPowerShell_DeleteIfOff. Return value 1.
Action start 23:50:53: AddToPath_SetDefault.
Action ended 23:50:53: AddToPath_SetDefault. Return value 1.
Action start 23:50:53: DisableTelemetry_DeleteIfOff.
Action ended 23:50:53: DisableTelemetry_DeleteIfOff. Return value 1.
Action start 23:50:53: EnableMU_SetDefault.
Action ended 23:50:53: EnableMU_SetDefault. Return value 1.
Action start 23:50:53: EnablePsRemoting_DeleteIfOff.
Action ended 23:50:53: EnablePsRemoting_DeleteIfOff. Return value 1.
Action start 23:50:53: RegisterManifest_SetDefault.
Action ended 23:50:53: RegisterManifest_SetDefault. Return value 1.
Action start 23:50:53: UseMU_SetDefault.
Action ended 23:50:53: UseMU_SetDefault. Return value 1.
Action start 23:50:53: LaunchConditions.
Action ended 23:50:53: LaunchConditions. Return value 1.
Action start 23:50:53: ValidateProductID.
Action ended 23:50:53: ValidateProductID. Return value 1.
Action start 23:50:53: CostInitialize.
Action ended 23:50:53: CostInitialize. Return value 1.
Action start 23:50:53: FileCost.
Action ended 23:50:53: FileCost. Return value 1.
Action start 23:50:53: CostFinalize.
Action ended 23:50:55: CostFinalize. Return value 1.
Action start 23:50:55: MigrateFeatureStates.
Action ended 23:50:56: MigrateFeatureStates. Return value 1.
Action start 23:50:56: InstallValidate.
Action ended 23:51:36: InstallValidate. Return value 1.
Action start 23:51:36: RemoveExistingProducts.
CustomAction  returned actual error code 1612 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (FC:B0) [23:51:36:451]: Product: PowerShell 7-preview-x64 -- Error 1714. The older version of PowerShell 7-preview-x64 cannot be removed.  Contact your technical support group.  System Error 1612.

Error 1714. The older version of PowerShell 7-preview-x64 cannot be removed.  Contact your technical support group.  System Error 1612.
Action ended 23:51:36: RemoveExistingProducts. Return value 3.
Action ended 23:51:36: INSTALL. Return value 3.
Property(S): UpgradeCode = {39243D76-ADAF-42B1-94FB-16ECF83237C8}
Property(S): WINDOWS_PRODUCT_NAME = Windows 10 Pro
Property(S): ProductName = PowerShell 7-preview-x64
Property(S): UNIVERSAL_C_RUNTIME_INSTALLED = C:\WINDOWS\System32\ucrtbase.dll
Property(S): PWRSHPLUGIN_VERSION = C:\WINDOWS\System32\pwrshplugin.dll
Property(S): ADD_PATH = 1
Property(S): REGISTER_MANIFEST = 1
Property(S): USE_MU = 1
Property(S): ENABLE_MU = 1
Property(S): VersionFolder = C:\Program Files\PowerShell\7-preview\
Property(S): ApplicationProgramsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\
Property(S): dir29BCD5E4F7C373C512ED73538E9DCDDC = C:\Program Files\PowerShell\7-preview\assets\
Property(S): dirC8E9F16F9A20BA1D5DDCCA5A45CDBB30 = C:\Program Files\PowerShell\7-preview\cs\
Property(S): dir62737D9B68FCE1A160FD7060BABA7D16 = C:\Program Files\PowerShell\7-preview\de\
Property(S): dirA0F95362C57A863D0BBD3169843E0168 = C:\Program Files\PowerShell\7-preview\en-US\
Property(S): dirE9741044F11F34C9FB894C3195538F19 = C:\Program Files\PowerShell\7-preview\es\
Property(S): dir129AF85AD0C10215FE56B9AC914B957D = C:\Program Files\PowerShell\7-preview\fr\
Property(S): dir1264D4B514CA91C40526D37CCEB9A7FC = C:\Program Files\PowerShell\7-preview\it\
Property(S): dir73E2E403359779398A69DED9DDBC6DCE = C:\Program Files\PowerShell\7-preview\ja\
Property(S): dir7420AA9104B3567C205C9A83CC1F34A7 = C:\Program Files\PowerShell\7-preview\ko\
Property(S): dir2C1939E11D676420ED32C4A4AB5AE75F = C:\Program Files\PowerShell\7-preview\Modules\CimCmdlets\
Property(S): dir10CFC3C98E09FE79358AC32CCD4B96E5 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Archive\
Property(S): dirC50829A786E72246CACCBE4C6689C6C9 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Archive\en-US\
Property(S): dir31B5BAA615507779F83CF03A348466C1 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Diagnostics\
Property(S): dir788172CBE294D89D86540F1EBB3FD60E = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Host\
Property(S): dirECB880C70FDD8930882746B467651E08 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Management\
Property(S): dirF05D78794A7CFC1D6D5C075B45BAC8F5 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.PSResourceGet\
Property(S): dir8D8C89A7042272443AAD6B15FD28E0C3 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.PSResourceGet\dependencies\
Property(S): dir77ED6D9C3E903DBD86023B4147613C43 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Security\
Property(S): dir0E88D2CCD80746F7EDF99F9DD1687BAA = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.PowerShell.Utility\
Property(S): dir41B4E481D523428CC40AC292A82551B8 = C:\Program Files\PowerShell\7-preview\Modules\Microsoft.WSMan.Management\
Property(S): dir49D8912EEC014CC5E115AF458DCF2CA4 = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\
Property(S): dir6C1BB471B6383C089D81F64B5DD73478 = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\
Property(S): dir19137259174FA168E2A98C0DE7F5C4CF = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\DSCResources\
Property(S): dir32587E315FA1A97FDDB567A3286EF048 = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\DSCResources\MSFT_PackageManagement\
Property(S): dir0D916A27AF9AF236C5132EEBFBDF56FE = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\DSCResources\MSFT_PackageManagementSource\
Property(S): dirEAB721D6318D568A49AEA38030918B44 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\
Property(S): dir5D179693457FD105A9BF6EE22FDC2AAB = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\DscResources\MSFT_PSModule\
Property(S): dir42FACA0A4431D6480656ABB87B1268A4 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\DscResources\MSFT_PSModule\en-US\
Property(S): dirDF497608BA3EF44FCA2A32F0C4D4F352 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\DscResources\MSFT_PSRepository\
Property(S): dir12B4128448EF2722B624A35F57971FF5 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\DscResources\MSFT_PSRepository\en-US\
Property(S): dirE5A887F74A82AB96B8AB7CCEF82F47B2 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\en-US\
Property(S): dirDB2CEFA56C315B226653C4E64FBEF160 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\Modules\PowerShellGet.LocalizationHelper\
Property(S): dirE01946542067D1C861CC7DF0D5BB8ACF = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\Modules\PowerShellGet.ResourceHelper\
Property(S): dirCA5C513F14E66F0D1B7DAF9CBBE23DBD = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\Modules\PowerShellGet.ResourceHelper\en-US\
Property(S): dir2576B73BDE30FA4D2C1C913F436EF71A = C:\Program Files\PowerShell\7-preview\Modules\PSDiagnostics\
Property(S): dir1C5AA76211D7FE86DC7DDC23EB034410 = C:\Program Files\PowerShell\7-preview\Modules\PSReadLine\
Property(S): dirB1FC05811EF7A59C452FB6DCD3FE826E = C:\Program Files\PowerShell\7-preview\Modules\PSReadLine\net462\
Property(S): dirB09703E2A790A1385FA41A6FB108B1B1 = C:\Program Files\PowerShell\7-preview\Modules\PSReadLine\net6plus\
Property(S): dir182A15E851610C69D5B4E57FFB3174FD = C:\Program Files\PowerShell\7-preview\Modules\PSReadLine\_manifest\spdx_2.2\
Property(S): dir64C4A7E6FBFA999B0B1089C3B6329808 = C:\Program Files\PowerShell\7-preview\Modules\ThreadJob\
Property(S): dirB1948D3067EC6852D865F155890B6A49 = C:\Program Files\PowerShell\7-preview\pl\
Property(S): dirA795EBE3D9A05E237E5ECB87AF8C70B2 = C:\Program Files\PowerShell\7-preview\preview\
Property(S): dir9D9F1D6767B1AD48B2122A8C111752AD = C:\Program Files\PowerShell\7-preview\pt-BR\
Property(S): dir89E392FF051220BD65ACE074648AC9F2 = C:\Program Files\PowerShell\7-preview\ref\
Property(S): dirCE7DB17C1E42197C1A13CE00FCD6442E = C:\Program Files\PowerShell\7-preview\ru\
Property(S): dir842155AEA241156657E942697D8F273E = C:\Program Files\PowerShell\7-preview\Schemas\PSMaml\
Property(S): dirDB5D004B9B9F05D25686B885C26EAB34 = C:\Program Files\PowerShell\7-preview\tr\
Property(S): dirE68CFAB1AC98CEEAB4F0562418F0F3D2 = C:\Program Files\PowerShell\7-preview\zh-Hans\
Property(S): dirF9B025A6638C5CB49BF617BB6C290F31 = C:\Program Files\PowerShell\7-preview\zh-Hant\
Property(S): WixUIRMOption = UseRM
Property(S): WIXUI_INSTALLDIR = INSTALLFOLDER
Property(S): ALLUSERS = 1
Property(S): ARPNOMODIFY = 1
Property(S): INSTALLFOLDER = C:\Program Files\PowerShell\
Property(S): ProgramFiles64Folder = C:\Program Files\
Property(S): TARGETDIR = D:\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): dir24CCF01988855BEFB4C3BF8108980D51 = C:\Program Files\PowerShell\7-preview\Modules\
Property(S): dirBBE36A532E108F528F909E24675FC239 = C:\Program Files\PowerShell\7-preview\Modules\PackageManagement\coreclr\
Property(S): dirC2F54593B7F8D16F7F85F04D0C6B9AB1 = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\DscResources\
Property(S): dir2B0623C7E40F0436837D94AF7CEA2B2E = C:\Program Files\PowerShell\7-preview\Modules\PowerShellGet\Modules\
Property(S): dir83AD83F09EEC1C0E5496565C1309747B = C:\Program Files\PowerShell\7-preview\Modules\PSReadLine\_manifest\
Property(S): dir3197FD2AB1E0FD018C36EA35DF8817F3 = C:\Program Files\PowerShell\7-preview\Schemas\
Property(S): ARPPRODUCTICON = PowerShellExe.ico
Property(S): ARPHELPLINK = https://github.com/PowerShell/PowerShell
Property(S): WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT = Open PowerShell
Property(S): WixShellExecTarget = [VersionFolder]pwsh.exe
Property(S): REINSTALLMODE = dmus
Property(S): Manufacturer = Microsoft Corporation
Property(S): ProductCode = {E0C3B95F-7B7E-4DA9-B70F-C47507AE7BE7}
Property(S): ProductLanguage = 1033
Property(S): ProductVersion = 7.5.0.3
Property(S): DefaultUIFont = WixUI_Font_Normal
Property(S): WixUI_Mode = InstallDir
Property(S): ErrorDialog = ErrorDlg
Property(S): SecureCustomProperties = PWRSHPLUGIN_VERSION;UNIVERSAL_C_RUNTIME_INSTALLED;WIX_DOWNGRADE_DETECTED;WIX_UPGRADE_DETECTED
Property(S): WIX_UPGRADE_DETECTED = {661AF5A8-2FC6-4BA4-A457-90FE7F8E31CC}
Property(S): MsiLogFileLocation = C:\Users\彼方\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.PowerShell.Preview.7.5.0.3-2024-07-14-23-50-51.186.log
Property(S): PackageCode = {ED3159A3-3BC6-497C-ACDE-4292CC481288}
Property(S): ProductState = -1
Property(S): PackagecodeChanging = 1
Property(S): REBOOTPROMPT = S
Property(S): REBOOT = ReallySuppress
Property(S): CURRENTDIRECTORY = C:\Users\彼方
Property(S): CLIENTUILEVEL = 2
Property(S): CLIENTPROCESSID = 2364
Property(S): VersionDatabase = 200
Property(S): MsiSystemRebootPending = 1
Property(S): VersionMsi = 5.00
Property(S): VersionNT = 603
Property(S): VersionNT64 = 603
Property(S): WindowsBuild = 9600
Property(S): ServicePackLevel = 0
Property(S): ServicePackLevelMinor = 0
Property(S): MsiNTProductType = 1
Property(S): WindowsFolder = C:\WINDOWS\
Property(S): WindowsVolume = C:\
Property(S): System64Folder = C:\WINDOWS\system32\
Property(S): SystemFolder = C:\WINDOWS\SysWOW64\
Property(S): RemoteAdminTS = 1
Property(S): TempFolder = C:\Users\彼方\AppData\Local\Temp\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
Property(S): AppDataFolder = C:\Users\彼方\AppData\Roaming\
Property(S): FavoritesFolder = C:\Users\彼方\Favorites\
Property(S): NetHoodFolder = C:\Users\彼方\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\Users\彼方\Documents\
Property(S): PrintHoodFolder = C:\Users\彼方\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\Users\彼方\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\Users\彼方\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\Users\彼方\AppData\Local\
Property(S): MyPicturesFolder = C:\Users\彼方\Pictures\
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(S): DesktopFolder = C:\Users\Public\Desktop\
Property(S): FontsFolder = C:\WINDOWS\Fonts\
Property(S): GPTSupport = 1
Property(S): OLEAdvtSupport = 1
Property(S): ShellAdvtSupport = 1
Property(S): MsiAMD64 = 6
Property(S): Msix64 = 6
Property(S): Intel = 6
Property(S): PhysicalMemory = 16092
Property(S): VirtualMemory = 641
Property(S): LogonUser = 彼方
Property(S): UserSID = S-1-5-21-3440601734-2057412974-162595477-1001
Property(S): UserLanguageID = 2052
Property(S): ComputerName = XIAOMIBOOKPRO
Property(S): SystemLanguageID = 2052
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 34
Property(S): BorderTop = 1
Property(S): BorderSide = 1
Property(S): TextHeight = 16
Property(S): TextInternalLeading = 3
Property(S): ColorBits = 32
Property(S): TTCSupport = 1
Property(S): Time = 23:51:36
Property(S): Date = 2024/7/14
Property(S): MsiNetAssemblySupport = 4.8.9032.0
Property(S): MsiWin32AssemblySupport = 6.3.26244.5000
Property(S): RedirectedDllSupport = 2
Property(S): AdminUser = 1
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = 彼方
Property(S): DATABASE = C:\WINDOWS\Installer\24e37fb5.msi
Property(S): OriginalDatabase = C:\Users\彼方\AppData\Local\Temp\WinGet\Microsoft.PowerShell.Preview.7.5.0.3\PowerShell-7.5.0-preview.3-win-x64.msi
Property(S): UILevel = 3
Property(S): MsiUIProgressOnly = 1
Property(S): MsiUIHideCancel = 1
Property(S): ACTION = INSTALL
Property(S): MIGRATE = {661AF5A8-2FC6-4BA4-A457-90FE7F8E31CC}
Property(S): ROOTDRIVE = D:\
Property(S): CostingComplete = 1
Property(S): OutOfDiskSpace = 0
Property(S): OutOfNoRbDiskSpace = 0
Property(S): PrimaryVolumeSpaceAvailable = 0
Property(S): PrimaryVolumeSpaceRequired = 0
Property(S): PrimaryVolumeSpaceRemaining = 0
Property(S): INSTALLLEVEL = 1
MSI (s) (FC:B0) [23:51:36:476]: Windows Installer installed the product. Product Name: PowerShell 7-preview-x64. Product Version: 7.5.0.3. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

=== Logging stopped: 2024/7/14/星期日  23:51:36 ===

Visuals

Screenshot 2024-07-14 235012

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions