1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-28 01:10:55 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Valentin Radu
0de81fdc68 Resources: Updated copyright info 2023-03-19 05:27:08 +02:00
Valentin Radu
1738b45866 Setup: explorer will restart using the token it was running under before starting application maintenance
The patch has been adapted to employ the old behavior when setup is
elevated using the same credentials, while using the updated code with
`CreateProcessWithTokenW` when otherwise.

Original description (via email):

"I have two accounts on my Windows machine: A normal one that is a
standard user (not admin) which I use as my main account where I have
ExplorerPatcher installed and configured, and an Admin account which is
 a Windows administrator account.

During installation and update the installer restarts itself and
requests admin privileges. For this I have to provide the password to
the Admin account. The installer then runs as that Admin user, stops
the explorer process, installs ExplorerPatcher and then tries to start
the explorer again. But the explorer never starts, which leaves me with
 an empty screen and a session without an explorer. I can then start a
Taskmanager via Ctrl + Shift + Esc and manually start the explorer, but
 this is annoying and maybe even frightening for a nontechnical user.

The reason why the explorer is not started again is that it is started
as the wrong user. It is started as the Admin user, which isn't logged
in so the explorer quits immediately.

The fix is to remember the user that the explorer was running under and
then start the new explorer for that user. I have tested these changes
in a Windows 11 virtual machine, by installing and uninstalling for a
standard user, as well as installing and uninstalling for an
administrator user."

Original patch: https://github.com/Abestanis/ExplorerPatcher/tree/fix_explorer_restart
Credit @Abestanis
2023-03-18 05:28:13 +02:00
Valentin Radu
8fd7c46db0 All: Substitute RegDeleteKeyW with RegDeleteTreeW
This is because the keys should be deleted regardless of whether they
contain subkeys or not.
2022-08-07 20:40:36 +03:00
Valentin Radu
83c2673007 Setup: Disable UndockingDisabled when servicing the application 2022-03-13 22:01:22 +02:00
Valentin Radu
fb204c7d3c All: Enable centered taskbar and Start menu options in Windows 10 2022-03-05 05:02:57 +02:00
Valentin Radu
b669b0aca4 Start: Fixed a bug that prevented the app from receiving settings change notifications when some registry keys were not available on the system 2022-03-04 00:34:52 +02:00
Valentin Radu
43acfc1235 Setup: Fixed /extract switch to extract ep_startmenu library 2022-03-02 00:45:43 +02:00
Valentin Radu
1b27199ecf Start menu: Make "Pin to Start" work from folder views when Windows 10 menu is enabled 2022-02-27 19:54:19 +02:00
Valentin Radu
fbd6ab591f Start: Functional Windows 10 Start menu 2022-02-25 00:19:25 +02:00
Valentin Radu
2cc9b0ed7f All: Fixes for Windows 10 2022-02-21 02:42:35 +02:00
Valentin Radu
b7a1ced429 Weather: Rearchitected component lifetime 2022-02-17 23:42:13 +02:00
Valentin Radu
f34c6540a6 Setup: Ensure file path for SHFileOperation is ended with 2 zeros 2022-02-17 22:52:46 +02:00
Valentin Radu
7bd1ad7a15 Setup: Implemented Start menu shortcut for "Properties" window 2022-02-14 02:46:51 +02:00
Valentin Radu
9d3e34cb89 ep_setup /extract extracts all components 2022-01-27 23:19:16 +02:00
Valentin Radu
5d4466147d Implemented weather taskbar widget 2022-01-27 04:35:27 +02:00
Valentin Radu
e5c4e8bf02 Moved ep_dwm as separate executable 2022-01-24 18:33:06 +02:00
Valentin Radu
7cc02b72d4 Option to disable rounded corners for windows 2022-01-21 13:06:46 +02:00
Valentin Radu
9c31c090dd Fixed #528 (2) 2021-12-15 03:31:42 +02:00
Valentin Radu
dfd703004c Fixed "DisplayVersion" not created in program uninstallation registry entry (microsoft/winget-pkgs/pull/37596) 2021-12-13 19:10:01 +02:00
Valentin Radu
4ec8cc10f7 Enlarge "DisplayVersion" buffer 2021-12-13 18:18:00 +02:00
Valentin Radu
9bfef43934 Fixed a stack corruption (#546) 2021-12-12 20:33:22 +02:00
Valentin Radu
cb5975d3a7 Fixes for Explorer restart and app servicing 2021-12-10 03:06:04 +02:00
Valentin Radu
28de475e51 Improved Explorer restart 2021-12-10 02:35:26 +02:00
Valentin Radu
d55307b248 Fixed #529 2021-12-09 18:16:21 +02:00
Valentin Radu
56b5c166ec Fixed #528 2021-12-09 17:52:01 +02:00
Valentin Radu
88e1355ddf Possibility to uninstall by renaming ep_setup.exe to ep_uninstall.exe and running that 2021-12-06 07:48:04 +02:00
Valentin Radu
7ba0ba1152 * Implemented virtualized registry access (so that complex behaviors can be employed but the existing lightweight GUI infrastructure is kept in place)
* Updated to latest sws.
* Fixed compilation in debug to produce a proper setup
* Updated branding for 2022.
2021-12-05 04:04:41 +02:00
Valentin Radu
112f4bf92d Changed ep_setup command line and default behavior 2021-11-19 18:57:32 +02:00
Valentin Radu
aff330cc08 Implemented /extract switch for ep_setup 2021-11-18 19:08:29 +02:00
Valentin Radu
725d5ad18f 22000.318.38:
* Functional Windows 10 network flyout
* Functional Windows 10 battery flyout
* Implemented support for Windows 7 battery flyout (#274)
2021-11-18 18:20:17 +02:00
Valentin Radu
59d1e452e4 Properties can open last used section when starting 2021-11-16 07:00:10 +02:00
Valentin Radu
8f9ecf68e4 Properties GUI is restarted after setup 2021-11-16 04:22:44 +02:00
Valentin Radu
abf0d38cb4 Closed handles when ShellExecuteExW with SEE_MASK_NOCLOSEPROCESS 2021-11-15 05:54:54 +02:00
Valentin Radu
f226f1ade6 Improved delivery of toast notifications 2021-11-15 03:59:19 +02:00
Valentin Radu
2d9158c384 Mitigated Explorer restarts not saving settings 2021-11-15 03:58:17 +02:00
Valentin Radu
344b68e945 Fixed typos in error message 2021-11-15 03:57:33 +02:00
Valentin Radu
02c485e0d9 Version number is shared between projects 2021-11-15 03:46:33 +02:00
Valentin Radu
62ff17f25e Added link to artifacts in release notes 2021-11-15 03:45:38 +02:00
Valentin Radu
bcc1bca3d0 Fixed automatic updates; improved setup 2021-11-14 21:03:39 +02:00
Valentin Radu
92dadf6374 * Acessing "Properties" is done via right click on taskbar, both on Windows 10, and 11 styles
* Support for automatic updates
* Implemented setup program
* Fixed issue where setting the Windows 10 taskbar to one of the screen edges crashed the Windows 11 taskbar if enabled
* System tray icons are now left intact when switching between Windows 10 and Windows 11 taskbars, and after build updates
2021-11-14 18:37:16 +02:00