Windows 11 Theme For Windows 10

0 views
Skip to first unread message

Eddie Listner

unread,
Jun 30, 2024, 9:40:33 AM6/30/24
to epunecmo

There are certainly good reasons for wanting to change the current theme programmatically. E.g. an automated test tool may need to switch between various themes to make sure the application works correctly with all of them.

As a user, you can change the theme by double-clicking a .theme file in Windwos Explorer and then closing the Control Panel applet that pops up. You can easily do the same from code. The steps below work just fine for me. I've only tested on Windows 7.

You'll still end up with the Personalisation window beeing open after using this command so to close it down programatically you'll have to use one of the suggested methods mentioned above... (I personally prefer the Powershell script)

I have been experimenting about changing the windows theme via command line and I learned that by executing the theme file it is being applied by the Windows 10 as well. So in your batch file, you could use one of the following lines:

Please note the path to the theme files might be needed to adjust depending on your system user configuration. I strongly advise saving your themes with names excluding spaces as it makes much easier moving forward. Executing such line leaving you with the Settings window opened. To deal with I considered using VBS script instead. Thanks to Patrick Haugh user1390106 there is a much easier way to close the Settings window.

I believe the best you can do is open your target .msstyles file (in c:\windows\resources\themes), which will pop up the display properties box. At this point you could use window subclassing to programmatically click the right buttons.

In addition of the post of "Jan Goyvaerts":I use SendMessage instead of PostMessage. The difference is that SendMessage waits for the command to be taken in by the window. Meaning that in the SendMessages returns, you know that the theme dialog is closed.

So if you start it with the monstrous (but genious) rundll32.exe method suggested by "Campbell". You should wait a sec before sending WM_CLOSE. Otherwise the theme will not be set and the application closes right away.

The code snippet below extracts a file from resource (a themepack). Then executes the desk.cpl with rundll32.exe, waits 3 sceonds, then sends WM_CLOSE (0x0010), waits for the command to be process (the time it takes for the theme to be set).

For a user that logs in, we simply run ChangeTheme.vbs as the user logs in (e.g. autorun). The script starts desk.cpl and passes the required parameters to it as well as the name of the selected theme.

In the win10 enterprise Beta at least, you could copy windows classic theme (classic.theme) from "%windir%\Resources\Ease of Access Themes" and get something derived from what you want. Then you may simply be able to change a few small things and save it as a win10 theme for your POS systems. You probably have also done this already but check that all the bells and whistles are turned off in performance options as well as managing services started.

Just got my free upgrade for my 7 year old laptop. It is a centrino processor with 4 GB ram. So far so good, but it plague with the disk use issue in which I believe someone at spiceworks probably have a solution for that already. I just did the upgrade so that I will be in better position supporting Windows 10 when I have to.

If possible, I would suggest to have the upgrade reverse for now and perhaps next year you may have replacement for those old machines anyway. 1GB ram running current operating systems is like asking to cramp 20 people in a van that can only fit 10. Possible, but not a good idea.

On Windows 10 right click on This PC, and then click on the Properties option that is on the bottom of the menu. From there click, Advanced system settings, then under the Advanced tab click on the Settings button that is by Performance. Then select the Adjust for best performance radial button, then click apply. That should give any Windows system a bit of a boost.

With everything configured, and within WSL on the command line, you should be able to just run composer install and yarn in your theme directory to install all dependencies, then yarn dev or yarn build for development/building assets.

Do you know how much developers are there who are using Sage 10 with WSL? It feels lot of hassle for Win users now with Bud. And cant really find a good step by step tutorial how to set up sage 10 on windows.

At the moment I found to much hassle going WSL and bud. Many different errors not on Sage side but to get stable enviroment working. Lots file permission and so on errors.
Went for last commit with laravel mix. I have been using Win all my life so Im an ordinary Win dumb user but some day I will try again.

When you use yarn install, does that command complete successfully?
Clean node_modules/ manually and retry yarn install.
When yarn install fails, bud may very well be not installed yet, hence the error.

d3342ee215
Reply all
Reply to author
Forward
0 new messages