torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on Apr 30, 2024 13:26:59 GMT -8
I tested a classic theme (not ported, but rather modified trying to respect the specifications) by pointing to an activation script, again according to the specifications. Nothing happens, I have the impression that the script is not launching at all ; However, there may be something I'm doing wrong. You mean the script in "EnableClassicStyleCommand"? I don't know exactly what you're doing, but make sure that: - If your script requires additional privileges (like Administrator), my program also has those privileges
- The classic style is not already enabled (it does nothing if it detects it is enabled)
- In the theme file, the "Path" setting in the "VisualStyles" section is either empty or missing
- The path specified in HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Classic\EnableClassicStyleCommand is correct and no longer than 259 chars (including parameters)
|
|
|
Post by OrthodoxWin32 on May 2, 2024 5:46:57 GMT -8
You mean the script in "EnableClassicStyleCommand"? I don't know exactly what you're doing, but make sure that: - If your script requires additional privileges (like Administrator), my program also has those privileges
- The classic style is not already enabled (it does nothing if it detects it is enabled)
- In the theme file, the "Path" setting in the "VisualStyles" section is either empty or missing
- The path specified in HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Classic\EnableClassicStyleCommand is correct and no longer than 259 chars (including parameters)
- I'm pretty sure everything is run as administrator.
- I tried without the classic theme.
- There was no path to a visual style in the .theme file
- It seems to me that it was correct, but I have to check. Especially since I'm pretty sure the script wasn't executed at all.
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 3, 2024 15:41:53 GMT -8
- I'm pretty sure everything is run as administrator.
- I tried without the classic theme.
- There was no path to a visual style in the .theme file
- It seems to me that it was correct, but I have to check. Especially since I'm pretty sure the script wasn't executed at all.
Maybe there is something wrong with the .theme file itself? Do the colors change at least? Can you share it, and the registry entries?
|
|
|
Post by OrthodoxWin32 on May 3, 2024 15:52:05 GMT -8
Maybe there is something wrong with the .theme file itself? Do the colors change at least? Can you share it, and the registry entries? I'll send this to you tomorrow.
|
|
|
Post by bamajon1974 on May 4, 2024 8:53:10 GMT -8
WinClassicThemeConfig v1.5 I would like to save the WinClassicThemeConfig exe and task.xml file in a custom location, such as C:\windows directory, different from the path shown in the cmd file to register the program in control panel. How should the cmd file be modified? Is C:\windows an acceptable directory to copy the files? Do I need to run the cmd file as trusted installer or just as an administrator? Thanks! No need for trusted installer privileges. If you copied the .exe, for instance, to "C:\Windows\WinClassicThemeConfig.exe", you should replace in the .xml file every instance of "%SystemDrive%\Programs\Classic\Themes.exe" by "C:\Windows\WinClassicThemeConfig.exe". And you should change this line in the .cmd: SET path=C:\Windows\WinClassicThemeConfig The .xml file should be copied to "C:\Windows\WinClassicThemeConfig.xml", or else you can specify its path in the "SET xmlpath=" line in the .cmd. Thank you for the reply. A few follow-up questions... 1. Does the regcp.cmd file need to be copied to the directory where themes.exe and themes.xml files reside? Or can it be deleted after executing the commands? 2. Do the various themes*.exe files need to be renamed to "themes.exe" (i.e., remove the 7, 10, 10x64, 95, 98, Wine, or XP portions)? If renaming isn't necessary, the file names in the regcp.cmd and themes.xml need to be renamed accordingly, right? 3. In regcp.cmd file, why are there double %% around the systemdrive path in set path line? 4. In regcp.cmd, say I move themes.exe to %windir%, then should the Set Path line be %windir%\Themes.exe ? 5. In regcp.cmd, what is the purpoe of this line? CALL :AddReg IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( CALL :AddReg /Reg:32 6. Can you make a similar control panel option for the tbConf file as well? Thanks!
|
|
|
Post by OrthodoxWin32 on May 4, 2024 11:04:13 GMT -8
Maybe there is something wrong with the .theme file itself? Do the colors change at least? Can you share it, and the registry entries?
And the reg key : I haven't yet configured the classic theme deactivation script (DisableClassicStyleCommand), I have set up a white script. Regarding the theme, it seems to apply perfectly, except for the script which does not launch.
EDIT : I just moved the script to the root of the disk (C:\), it works. Obviously, the script was not running because it was in the user directory. All I have to do now is test the basic theme script, and adapt the scripts for clean execution. On the other hand, is it possible to indicate a script with the .bat extension rather than .cmd ? I noticed that sometimes there are issues with the .cmd extension when running certain script.
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 4, 2024 20:15:07 GMT -8
1. Does the regcp.cmd file need to be copied to the directory where themes.exe and themes.xml files reside? Or can it be deleted after executing the commands? No, you can delete it after running it. You only need the exe and xml files 2. Do the various themes*.exe files need to be renamed to "themes.exe" (i.e., remove the 7, 10, 10x64, 95, 98, Wine, or XP portions)? If renaming isn't necessary, the file names in the regcp.cmd and themes.xml need to be renamed accordingly, right? You can name the exe whatever you want, as long as it matches the cmd and xml file contents, as you say. I personally name it "Themes.exe", but I upload all the versions with a suffix just to keep them in the same folder. 3. In regcp.cmd file, why are there double %% around the systemdrive path in set path line? "%%" is interpreted literally as "%". That's to store the variable in the registry without expanding it (literally as "%SystemDrive%"). If you use a single one it's saved as the expanded ("real") path. It works both ways, but it's better using the variable in case the system drive changes. 4. In regcp.cmd, say I move themes.exe to %windir%, then should the Set Path line be %windir%\Themes.exe ? Just "%windir%\Themes". The ".exe" extension is added in "exepath". 5. In regcp.cmd, what is the purpoe of this line? CALL :AddReg IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( CALL :AddReg /Reg:32 That's for WOW64 compatibility. That is, in a 64-bit Windows version, it registers the control panel item for 32-bit processes too (for instance, for when you create a shortcut to the control panel item, and try to open it from a 32-bit program). 6. Can you make a similar control panel option for the tbConf file as well? I could do that later, but you may want to check out this instead, which also opens it from the taskbar context menu
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 4, 2024 20:24:18 GMT -8
OrthodoxWin32 I'm sure the problem was not the path itself, but that you used a REG_SZ value with an environment variable (%userprofile%). You can do that, but using REG_EXPAND_SZ values (REG_SZ values are not expanded).
.bat and .cmd files should run exactly the same... (and .exes too)
|
|
|
Post by The Jackal on May 5, 2024 13:18:45 GMT -8
I've nothing to add to this topic but to say thank you for all your hard work on this. It really is nice to have everything in one dialog, so kudos.
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 6, 2024 6:49:25 GMT -8
|
|
|
Post by bamajon1974 on May 10, 2024 11:04:54 GMT -8
1. Does the regcp.cmd file need to be copied to the directory where themes.exe and themes.xml files reside? Or can it be deleted after executing the commands? No, you can delete it after running it. You only need the exe and xml files 2. Do the various themes*.exe files need to be renamed to "themes.exe" (i.e., remove the 7, 10, 10x64, 95, 98, Wine, or XP portions)? If renaming isn't necessary, the file names in the regcp.cmd and themes.xml need to be renamed accordingly, right? You can name the exe whatever you want, as long as it matches the cmd and xml file contents, as you say. I personally name it "Themes.exe", but I upload all the versions with a suffix just to keep them in the same folder. 3. In regcp.cmd file, why are there double %% around the systemdrive path in set path line? "%%" is interpreted literally as "%". That's to store the variable in the registry without expanding it (literally as "%SystemDrive%"). If you use a single one it's saved as the expanded ("real") path. It works both ways, but it's better using the variable in case the system drive changes. 4. In regcp.cmd, say I move themes.exe to %windir%, then should the Set Path line be %windir%\Themes.exe ? Just "%windir%\Themes". The ".exe" extension is added in "exepath". 5. In regcp.cmd, what is the purpoe of this line? CALL :AddReg IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( CALL :AddReg /Reg:32 That's for WOW64 compatibility. That is, in a 64-bit Windows version, it registers the control panel item for 32-bit processes too (for instance, for when you create a shortcut to the control panel item, and try to open it from a 32-bit program). 6. Can you make a similar control panel option for the tbConf file as well? I could do that later, but you may want to check out this instead, which also opens it from the taskbar context menu Thank you for the help and for your hard work on restoring some of the customization options Microsoft has removed.
The ms settings re-director is interesting, I will check it out. I am mainly interested in restoring the personalization options though.
Do you have a thread specific for tBConf as well?
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 10, 2024 19:26:15 GMT -8
Thank you for the help and for your hard work on restoring some of the customization options Microsoft has removed. The ms settings re-director is interesting, I will check it out. I am mainly interested in restoring the personalization options though. You're welcome! If you only want to open it from the Control Panel the redirector may be too much... I've uploaded a "Replace.cmd" script which only replaces the Control Panel shortcut, doesn't require running it as TrustedInstaller and can be easily reversed. You only need to modify the "path" variable, I did not include a xml file to keep it simpler. You may end with two "Taskbar and Navigation" icons until you log off and on or restart the Explorer process.Do you have a thread specific for tBConf as well? No
|
|
|
Post by bamajon1974 on May 23, 2024 8:58:39 GMT -8
Thank you for the help and for your hard work on restoring some of the customization options Microsoft has removed. The ms settings re-director is interesting, I will check it out. I am mainly interested in restoring the personalization options though. You're welcome! If you only want to open it from the Control Panel the redirector may be too much... I've uploaded a "Replace.cmd" script which only replaces the Control Panel shortcut, doesn't require running it as TrustedInstaller and can be easily reversed. You only need to modify the "path" variable, I did not include a xml file to keep it simpler. You may end with two "Taskbar and Navigation" icons until you log off and on or restart the Explorer process.Do you have a thread specific for tBConf as well? No The replace command script for tBConf works fine. Thank you. Please let me know when you prepare a tasklist.xml file for the tBConf and I will test it out.
Please correct me if I am wrong...the task list files list the search options in the category view of control panel, right? For example, in control panel > category view > appearance and personalization, the task list is the source of the "navigation properties" subheading/link under "taskbar and navigation" heading or "preview, delete, or show and hide fonts" and "change font settings" subheadings/links under the "Fonts" heading (at least in Win10).
How are these task list files generated or where do they come from? I am curious.
Have you thought about releasing a similar app that restores the old personalization window from Win 7, especially the themes and desktop background sections that are replaced by modern windows settings.
I know how to load the old style appearance windows using commands and clsids but it would be more convenient to have a control panel replacement and something that doesn't modify system dll or mui files that can be overwritten with updates and corrupted when permissions are changed to modify these files.
Thanks!
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 24, 2024 21:12:38 GMT -8
You're welcome! If you only want to open it from the Control Panel the redirector may be too much... I've uploaded a "Replace.cmd" script which only replaces the Control Panel shortcut, doesn't require running it as TrustedInstaller and can be easily reversed. You only need to modify the "path" variable, I did not include a xml file to keep it simpler. You may end with two "Taskbar and Navigation" icons until you log off and on or restart the Explorer process.No The replace command script for tBConf works fine. Thank you. Please let me know when you prepare a tasklist.xml file for the tBConf and I will test it out.
Please correct me if I am wrong...the task list files list the search options in the category view of control panel, right? For example, in control panel > category view > appearance and personalization, the task list is the source of the "navigation properties" subheading/link under "taskbar and navigation" heading or "preview, delete, or show and hide fonts" and "change font settings" subheadings/links under the "Fonts" heading (at least in Win10).
How are these task list files generated or where do they come from? I am curious.
Have you thought about releasing a similar app that restores the old personalization window from Win 7, especially the themes and desktop background sections that are replaced by modern windows settings.
I know how to load the old style appearance windows using commands and clsids but it would be more convenient to have a control panel replacement and something that doesn't modify system dll or mui files that can be overwritten with updates and corrupted when permissions are changed to modify these files.
Thanks!
You are correct, task list files provide links in the Control Panel category view and search results, and also allow providing search keywords (for instance, you get the "Classic Style" link if you search for "scheme" or "theme"). I don't think a xml file for TbConf is really necessary... I could add a link to the "Advanced Settings" page, but I don't think those options are too common. The tasks for system applets are handled internally by Windows (I don't know how); others are in xml files (which can be external, or as a resource inside exes or dlls). I don't plan to recreate the personalization applets from 7. But maybe if I continue this I'll add those settings to "Themes.exe", with the classic style (for instance, a background page which looks like the one on XP, but supporting slideshows). The code for reading and applying themes, wallpapers, colors, etc. is already there (for applying .theme and .msstyles files -by the way, I updated the script to support registering those extensions-). I have to work on the user interface part.
|
|
|
Post by Brawllux on May 24, 2024 23:28:38 GMT -8
You're welcome! If you only want to open it from the Control Panel the redirector may be too much... I've uploaded a "Replace.cmd" script which only replaces the Control Panel shortcut, doesn't require running it as TrustedInstaller and can be easily reversed. You only need to modify the "path" variable, I did not include a xml file to keep it simpler. You may end with two "Taskbar and Navigation" icons until you log off and on or restart the Explorer process.No The replace command script for tBConf works fine. Thank you. Please let me know when you prepare a tasklist.xml file for the tBConf and I will test it out.
Please correct me if I am wrong...the task list files list the search options in the category view of control panel, right? For example, in control panel > category view > appearance and personalization, the task list is the source of the "navigation properties" subheading/link under "taskbar and navigation" heading or "preview, delete, or show and hide fonts" and "change font settings" subheadings/links under the "Fonts" heading (at least in Win10).
How are these task list files generated or where do they come from? I am curious.
Have you thought about releasing a similar app that restores the old personalization window from Win 7, especially the themes and desktop background sections that are replaced by modern windows settings.
I know how to load the old style appearance windows using commands and clsids but it would be more convenient to have a control panel replacement and something that doesn't modify system dll or mui files that can be overwritten with updates and corrupted when permissions are changed to modify these files.
Thanks!
Check my CPL restoration pack,it should have what you are looking for.
|
|
|
Post by OrthodoxWin32 on May 25, 2024 2:47:34 GMT -8
I have a feature suggestion : add compatibility with SecureUxTheme. To use a third-party visual style, you must either patch the UxTheme file (that's what I do), or use this tool. Instead of patching system files, SecureUxTheme hooks the process that applies the theme; However, this is by default only possible for the theme's application system tools. But after several requests, the developer added a way to integrate these features into other tools.
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on May 25, 2024 15:05:20 GMT -8
I have a feature suggestion : add compatibility with SecureUxTheme. To use a third-party visual style, you must either patch the UxTheme file (that's what I do), or use this tool. Instead of patching system files, SecureUxTheme hooks the process that applies the theme; However, this is by default only possible for the theme's application system tools. But after several requests, the developer added a way to integrate these features into other tools. Hi! Maybe I'm missing something, but I installed the latest version of SecureUxTheme (with all installation settings unchecked) on a VM without any patches, rebooted it, and applying custom styles with the latest Themes.exe works for me (as long as the msstyles files are patched with a fake signature).
|
|
|
Post by OrthodoxWin32 on May 26, 2024 12:38:01 GMT -8
Hi! Maybe I'm missing something, but I installed the latest version of SecureUxTheme (with all installation settings unchecked) on a VM without any patches, rebooted it, and applying custom styles with the latest Themes.exe works for me (as long as the msstyles files are patched with a fake signature). It’s great that it works !
|
|
|
Post by kmuland on Jun 10, 2024 15:40:45 GMT -8
_ anyone can hep me with the registry keys that enable/disable this button? ----> "Enable visual effects"
- Also would be needed "edge smoothing" set to disabled
|
|
torto
Freshman Member
Posts: 50
OS: Gentoo - Windows 1607
Theme: Gentoo: QtCurve - Windows: Classic - Oxygen Gold
|
Post by torto on Jun 14, 2024 14:26:50 GMT -8
anyone can hep me with the registry keys that enable/disable this button? ----> "Enable visual effects" - Also would be needed "edge smoothing" set to disabled
For visual effects: Bit 31 of HKCU\Control Panel\Desktop\UserPreferencesMask Check out UPMCalc for more details. To disable font edge smoothing, set to 0: HKCU\Control Panel\Desktop\FontSmoothing
|
|