The main executable is PowerToys.exe, in *C:\Program Files\PowerToys*
It is launched as icon in System Tray (only displays the Settings dlg if already running)
(at least with the last 0.81.1 version)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dim p = New Process()
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.StartInfo.CreateNoWindow = True
p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe")
After running this code, the setup window still appears.
Is there a way to run program quiet without using Find then ShowWindow(SW_HIDE)?
I want to avoid window flickering.
Thanks you!
The main executable is PowerToys.exe, in *C:\Program Files\PowerToys*
It is launched as icon in System Tray (only displays the Settings dlg if already running)
(at least with the last 0.81.1 version)
Hi @Yen Dang ,
If the UseShellExecute property is true
or the UserName and Password properties are not null
, the CreateNoWindow property value is ignored and a new window is created.
So you need to set p.StartInfo.UseShellExecute = False
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.