microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.56k stars 4.45k forks source link

[Package Issue]: hluk.CopyQ - failed to install #174495

Open wikeaka opened 1 week ago

wikeaka commented 1 week ago

Please confirm these before moving forward

Category of the issue

Installation issue.

Brief description of your issue

Failed to install with exit code 4. It appears that the installer is trying to install to Program Files, even though it is being run with the /CurrentUser option.

Steps to reproduce

Run winget install --id hluk.CopyQ

Actual behavior

The installer failed with exit code 4.

Output:

$ winget install --id hluk.CopyQ
見つかりました CopyQ [hluk.CopyQ] バージョン 8.0.0
このアプリケーションは所有者からライセンス供与されます。
Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
ダウンロード中 https://github.com/hluk/CopyQ/releases/download/v8.0.0/copyq-8.0.0-setup.exe
  ██████████████████████████████  16.7 MB / 16.7 MB
インストーラーハッシュが正常に検証されました
パッケージのインストールを開始しています...
インストーラーが終了コードで失敗しました: 4
インストーラー ログは次で入手できます: C:\Users\wikeaka\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-hluk.CopyQ.8.0.0-2024-09-20-23-45-08.352.log

Expected behavior

Install without error.

Environment

v1.8.1911 の Windows パッケージ マネージャー
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.4894
システム アーキテクチャ: X64
パッケージ: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget ディレクトリ                       
-----------------------------------------------------------------------------------------------------------------------
ログ                                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalSta…
ユーザー設定                              %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalSta…
ポータブル リンク ディレクトリ (ユーザー) %LOCALAPPDATA%\Microsoft\WinGet\Links
ポータブル リンク ディレクトリ (マシン)   C:\Program Files\WinGet\Links
ポータブル パッケージ ルート (ユーザー)   %LOCALAPPDATA%\Microsoft\WinGet\Packages
ポータブル パッケージ ルート              C:\Program Files\WinGet\Packages
ポータブル パッケージ ルート (x86)        C:\Program Files (x86)\WinGet\Packages
インストーラのダウンロード                D:\download

リンク                      
-----------------------------------------------------------------------------------
プライバシーに関する声明    https://aka.ms/winget-privacy
使用許諾契約                https://aka.ms/winget-license
サード パーティに関する通知 https://aka.ms/winget-3rdPartyNotice
ホーム ページ               https://aka.ms/winget
Windows ストアの使用条件    https://www.microsoft.com/en-us/storedocs/terms-of-sale

管理者設定                                状態
----------------------------------------------
LocalManifestFiles                        無効
BypassCertificatePinningForMicrosoftStore 無効
InstallerHashOverride                     無効
LocalArchiveMalwareScanOverride           無効
ProxyCommandLineOptions                   無効
DefaultProxy                              無効

Screenshots and Logs

WinGet-hluk.CopyQ.8.0.0-2024-09-20-23-45-08.352.log

Trenly commented 1 week ago
2024-09-20 23:45:11.638   Creating directory: C:\Program Files\CopyQ
2024-09-20 23:45:11.638   Fatal exception during installation process (Exception):
                          Setup was unable to create the directory "C:\Program Files\CopyQ".

Does this folder already exist ?

wikeaka commented 1 week ago

No. It doesn't exist.

Trenly commented 1 week ago

Are you running as administrator?

wikeaka commented 1 week ago

No. I ran it as a normal user. And the installer didn't show UAC prompt.

Dragon1573 commented 6 days ago

While I'm the admin, this package installs as expected.

image

But without administrator privileges, it fails.

image

Logs ```text 2024-09-26 22:36:10.633 Log opened. (Time zone: UTC+08:00) 2024-09-26 22:36:10.633 Setup version: Inno Setup version 6.2.2 2024-09-26 22:36:10.633 Original Setup EXE: C:\Users\DRAGON~1\AppData\Local\Temp\WinGet\hluk.CopyQ.8.0.0\copyq-8.0.0-setup.exe 2024-09-26 22:36:10.633 Setup command line: /SL5="$1A0C5A,16647903,945664,C:\Users\DRAGON~1\AppData\Local\Temp\WinGet\hluk.CopyQ.8.0.0\copyq-8.0.0-setup.exe" /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Users\Dragon1573\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-hluk.CopyQ.8.0.0-2024-09-26-22-36-07.396.log" /CurrentUser 2024-09-26 22:36:10.633 Compatibility mode: Yes (DetectorsAppHealth) 2024-09-26 22:36:10.633 Windows version: 10.0.22631 (NT platform: Yes) 2024-09-26 22:36:10.633 64-bit Windows: Yes 2024-09-26 22:36:10.633 Processor architecture: x64 2024-09-26 22:36:10.633 User privileges: None 2024-09-26 22:36:10.638 Administrative install mode: No 2024-09-26 22:36:10.638 Install mode root key: HKEY_CURRENT_USER 2024-09-26 22:36:10.638 64-bit install mode: Yes 2024-09-26 22:36:10.641 Created temporary directory: C:\Users\DRAGON~1\AppData\Local\Temp\is-5S02D.tmp 2024-09-26 22:36:11.116 Found 46 files to register with RestartManager. 2024-09-26 22:36:11.116 Calling RestartManager's RmGetList. 2024-09-26 22:36:11.130 RmGetList finished successfully. 2024-09-26 22:36:11.131 RestartManager found no applications using one of our files. 2024-09-26 22:36:11.176 Starting the installation process. 2024-09-26 22:36:11.197 Creating directory: C:\Program Files\CopyQ 2024-09-26 22:36:11.197 Fatal exception during installation process (Exception): Setup was unable to create the directory "C:\Program Files\CopyQ". Error 5: 拒绝访问。. 2024-09-26 22:36:11.197 Exception message: 2024-09-26 22:36:11.197 Defaulting to OK for suppressed message box (OK): Setup was unable to create the directory "C:\Program Files\CopyQ". Error 5: 拒绝访问。. 2024-09-26 22:36:11.197 Defaulting to OK for suppressed message box (OK): Setup was not completed. Please correct the problem and run Setup again. 2024-09-26 22:36:11.197 Rolling back changes. 2024-09-26 22:36:11.236 Starting the uninstallation process. 2024-09-26 22:36:11.236 Uninstallation process succeeded. 2024-09-26 22:36:12.750 Deinitializing Setup. 2024-09-26 22:36:12.801 Log closed. ```

This package will install to C:\Program Files\CopyQ by default. This folders seems required administrator privileges.

stephengillie commented 6 days ago

Hi @wikeaka,

Did the manifest update allow the package to install?

Dragon1573 commented 1 day ago

Did the manifest update allow the package to install?

I haven't checked the update action. But a fresh installation will ask for UAC authorization when running without administrator privileges.

image