Open mboom opened 2 years ago
Can you try running winget source reset --force
in an administrator terminal?
I tried that and it did not help me. I included the commands and the output in the screenshot and logs section.
🤦♂️I was looking at the bottom of the logfile and missed the fact that you already ran the command.
I suspect that this is caused by SmartScreen (with no data backing that up) failing within ShellExecute and resulting in what looks like no association.
If you tack on --silent
to the install, it uses a different path and shouldn't have the same issue.
@denelon, we have two options around fixing this type of error:
Regardless of the source of the error, it is definitely within the call to ShellExecute. The question becomes whether SmartScreen gives us enough to warrant the issues (even if it is not SmartScreen that is failing).
Thank you for your reactions. It looks like @JohnMcPMS is thinking in the right direction. The silent flag indeed works. Running the following command successfully launch the UAC prompt and installs the software without errors.
PS C:\> winget install --id IDRIX.VeraCrypt --exact --source winget --silent
Found VeraCrypt [IDRIX.VeraCrypt] Version 1.25.9
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...
Successfully installed
Thank you and please let me know if I can help you with testing.
Hello @mboom, This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.
Template: msftbot/noRecentActivity
Any movement on this? Smart screen blocking interactive installs means winget isn't an ideal distribution method for us.
I tried the latest version in winget, (as of today, oct 10/2023) : 1.25.9
and it works when you install from an elevated terminal.
when will it be updated? there is v1.26.7 already
what happened? package dissapeared from winget
@felixsanz See -
it's back. had to deinstall the older version first and reinstall the downloaded msi
SEP-2-2024. It has happened again. VeraCrypt 1.26.14 Fix needed ASAP
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
An error occurs at the moment the installer tries to launch a UAC privilege elevation prompt.
Steps to reproduce
PS C:> winget install --id IDRIX.VeraCrypt --exact --source winget Found VeraCrypt [IDRIX.VeraCrypt] Version 1.25.9 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. \
Actual behavior
The following error window opens:
Window name: %TMP%\WinGet\IDRIX.VeraCrypt.1.25.9\VeraCrypt_Setup_x64_1.25.9.msi Message: This file does not have an app associated with it for performing this action. Please install an app or, if one is already installed, create an association in the Default App Settings page.
Expected behavior
I expect the UAC privilege elevation prompt to launch.
Environment
Screenshots and Logs
Note: log file %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-IDRIX.VeraCrypt.1.25.9-2022-08-10-08-25-16.124.log does not exists.
Note: I checked that the default Windows installer program is associated with msi files. Other packages with msi installers do not have this issue.
Note: I can start %TMP%\WinGet\IDRIX.VeraCrypt.1.25.9\VeraCrypt_Setup_x64_1.25.9.msi manually.
Note: Running PowerShell as administrator gives another error.
2022-08-10 08:25:11.933 [CORE] WinGet, version [1.3.2091], activity [{0D87060F-33CE-49D1-8CF8-F60E983F0790}] 2022-08-10 08:25:11.934 [CORE] OS: Windows.Desktop v10.0.19044.1826 2022-08-10 08:25:11.934 [CORE] Command line Args: "%TMP%\Microsoft\WindowsApps\winget.exe" install --id IDRIX.VeraCrypt --exact --source winget 2022-08-10 08:25:11.934 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2091.0 2022-08-10 08:25:11.934 [CORE] IsCOMCall:0; Caller: winget-cli 2022-08-10 08:25:11.950 [CLI ] WinGet invoked with arguments: 'install' '--id' 'IDRIX.VeraCrypt' '--exact' '--source' 'winget' 2022-08-10 08:25:11.950 [CLI ] Found subcommand: install 2022-08-10 08:25:11.950 [CLI ] Leaf command to execute: root:install 2022-08-10 08:25:11.958 [CLI ] Executing command: install 2022-08-10 08:25:11.968 [REPO] Named source requested, found: winget 2022-08-10 08:25:11.969 [REPO] Source past auto update time [5 mins]; it has been at least 638 mins 2022-08-10 08:25:12.524 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2022-08-10 08:25:12.524 [CORE] Found matching extension. 2022-08-10 08:25:12.530 [CORE] Downloading to path: %TMP%\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix 2022-08-10 08:25:12.531 [CORE] Started applying motw to %TMP%\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3 2022-08-10 08:25:12.534 [CORE] Finished applying motw 2022-08-10 08:25:12.534 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source.msix 2022-08-10 08:25:13.206 [CORE] Download completed. 2022-08-10 08:25:13.208 [CORE] Starting AddPackage operation #0: file:///%TMP%/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1 2022-08-10 08:25:13.218 [CORE] Begin waiting for operation #0 2022-08-10 08:25:13.219 [CORE] Begin blocking for operation #0 2022-08-10 08:25:14.742 [CORE] Successfully completed #0 2022-08-10 08:25:14.759 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2022-08-10 08:25:14.759 [CORE] Found matching extension. 2022-08-10 08:25:14.779 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2022.810.507.751_neutral8wekyb3d8bbwe\Public\index.db' 2022-08-10 08:25:14.780 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2022.810.507.751_neutral8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40] 2022-08-10 08:25:14.781 [REPO] Opened SQLite Index with version [1.5], last write [2022-08-10 06:06:31.000] 2022-08-10 08:25:14.843 [CLI ] Found one app. App id: IDRIX.VeraCrypt App name: VeraCrypt 2022-08-10 08:25:14.843 [REPO] Downloading manifest 2022-08-10 08:25:14.843 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/i/IDRIX/VeraCrypt/1.25.9/0e6e-IDRIX.VeraCrypt.yaml 2022-08-10 08:25:15.305 [CORE] Download hash: 50431c92feb5aeff299e2e52c491741c5a30110fc80545a07d1a625d3031124a 2022-08-10 08:25:15.305 [CORE] Download completed. 2022-08-10 08:25:15.311 [CLI ] Manifest fields: Name [VeraCrypt], Version [1.25.9] 2022-08-10 08:25:15.320 [CLI ] Starting installer selection. 2022-08-10 08:25:15.320 [CLI ] Completed installer selection. 2022-08-10 08:25:15.362 [CLI ] Found existing installer file at '%TMP%\WinGet\IDRIX.VeraCrypt.1.25.9\VeraCrypt_Setup_x64_1.25.9.msi'. Verifying file hash. 2022-08-10 08:25:15.678 [CLI ] Existing installer file hash matches. Will use existing installer. 2022-08-10 08:25:15.678 [CLI ] Installer hash verified 2022-08-10 08:25:15.679 [CORE] Started applying motw to %TMP%\WinGet\IDRIX.VeraCrypt.1.25.9\VeraCrypt_Setup_x64_1.25.9.msi with zone: 2 2022-08-10 08:25:15.685 [CORE] Finished applying motw 2022-08-10 08:25:15.685 [REPO] Creating PredefinedInstalledSource with filter [ARP] 2022-08-10 08:25:15.685 [REPO] Creating new SQLite Index [4294967295.4294967295] at ':memory:' 2022-08-10 08:25:15.685 [SQL ] Opening SQLite connection: ':memory:' [6, 0] 2022-08-10 08:25:15.737 [REPO] Examining ARP entries for Machine | X64 2022-08-10 08:25:15.767 [REPO] Examining ARP entries for Machine | X86 2022-08-10 08:25:15.786 [REPO] Examining ARP entries for User | X64 2022-08-10 08:25:16.124 [CLI ] Installer args: /qb ACCEPTLICENSE=YES /log "%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-IDRIX.VeraCrypt.1.25.9-2022-08-10-08-25-16.124.log" /norestart 2022-08-10 08:25:16.125 [CLI ] Starting: '%TMP%\WinGet\IDRIX.VeraCrypt.1.25.9\VeraCrypt_Setup_x64_1.25.9.msi' with arguments '/qb ACCEPTLICENSE=YES /log "%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-IDRIX.VeraCrypt.1.25.9-2022-08-10-08-25-16.124.log" /norestart' 2022-08-10 08:25:17.697 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\ShellExecuteInstallerHandler.cpp(38)\WindowsPackageManager.dll!00007FFB825302D1: (caller: 00007FFB82531329) Exception(1) tid(30f0) 800704C7 De bewerking is geannuleerd door de gebruiker.
2022-08-10 08:25:17.795 [CLI ] Caught wil::ResultException: D:\a_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\ShellExecuteInstallerHandler.cpp(38)\WindowsPackageManager.dll!00007FFB825302D1: (caller: 00007FFB82531329) Exception(1) tid(30f0) 800704C7 De bewerking is geannuleerd door de gebruiker.