microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.28k stars 6.55k forks source link

Install fail #23739

Closed azuric closed 1 year ago

azuric commented 1 year ago

Microsoft PowerToys version

0.67.0.0

Installation method

GitHub

Running as admin

No

Area(s) with issue?

Installer

Steps to reproduce

Version: 0.67.0.0 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True Date: 02/02/2023 07:44:27 Exception: System.UnauthorizedAccessException: Access to the path 'C:\Users\b1uce\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings_version.txt' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding) at System.IO.Abstractions.FileWrapper.WriteAllText(String path, String contents) at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo.Close() at Wox.Infrastructure.Storage.JsonStorage1.Save() at Wox.Infrastructure.Storage.JsonStorage1.LoadDefault() at Wox.Infrastructure.Storage.JsonStorage1.Load() at PowerLauncher.ViewModel.SettingWindowViewModel..ctor() at PowerLauncher.App.<>c__DisplayClass19_0.b0() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e) at System.Windows.Application.<.ctor>b1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

✔️ Expected Behavior

sucessful install

❌ Actual Behavior

something went wrong.

[2023-02-02 07:44:25.9545] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::63] Starting PowerToys Run with PID=59912

[2023-02-02 07:44:26.0098] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::74] Runner pid=52936

[2023-02-02 07:44:27.0875] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::116] On Startup.

[2023-02-02 07:44:27.2457] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\b1uce\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json>

[2023-02-02 07:44:27.2734] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\b1uce\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json>

[2023-02-02 07:44:27.4391] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\b1uce\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings.json>

[2023-02-02 07:44:27.4691] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50] ImageLoader.Initialize - Preload images cost <35ms>

[2023-02-02 07:44:27.4691] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Image\ImageLoader.cs::74] Number of preload images is <0>, Images Number: 4, Unique Items 4

[2023-02-02 07:44:27.5752] [FATAL]

Exception

System.UnauthorizedAccessException: Access to the path 'C:\Users\b1uce\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings_version.txt' is denied.
   Source: System.Private.CoreLib
   TargetAssembly: System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
   TargetModule: System.Private.CoreLib.dll
   TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle CreateFile(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, System.IO.FileOptions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
   at System.IO.Abstractions.FileWrapper.WriteAllText(String path, String contents)
   at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo.Close()
   at Wox.Infrastructure.Storage.JsonStorage`1.Save()
   at Wox.Infrastructure.Storage.JsonStorage`1.LoadDefault()
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.SettingWindowViewModel..ctor()
   at PowerLauncher.App.<>c__DisplayClass19_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Environment

Assemblies - PowerToys.PowerLauncher

Other Software

Windows 10 Pro for Workstations

jaimecbernardo commented 1 year ago

Can you please check if you have two PowerToys.PowerLauncher.exe instances running in Task Manager? /needinfo

jaimecbernardo commented 1 year ago

It seems installing was successful, but then PowerToys Run had this error when booting up.

azuric commented 1 year ago

yes you are right, fixed the issue thanks

On Thu, Feb 2, 2023 at 10:21 AM Jaime Bernardo @.***> wrote:

It seems installing was successful, but then PowerToys Run had this error when booting up.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/23739#issuecomment-1413495313, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC27TQRA5GGTW5TIXVXSHPLWVODDLANCNFSM6AAAAAAUOVWEVQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Akhil Patel