Problems changing theme programmatically

I'm trying to change the theme on multiple devices programmatically. I'm using server scripts to do this.
I'm currently testing with a HTC Universal (WM 5), a HTC Elf (WM 6) and a HTC Diamond (WM 6.1). All still have the original Rom at this moment.
I made a custom theme that I will call "MyTheme.tsk". I'm aware that we're dealing with different screen resolution devices, but the script detects this first and sends the right resolution theme to each device (confirmed to work correctly).

This is what I'm doing (got it from examples on MSDN):
- Send MyTheme.tsk to mobile device
- Delete reg value: HKCU\Software\Microsoft\Today\UseStartImage
- Exec: \Windows\wceload.exe /safe /noui /nouninstall /delete 0 \Windows\MyTheme.tsk
- Set reg value: HKCU\Software\Microsoft\Today\Skin MyTheme.tsk

Every event is being logged and none gives any errors. However, the theme is not applied on any of the devices at all. The only thing that happens, is that the theme is highlighted if I go manually to Settings - Today.

As an alternative, I tried replacing the Exec event by the following:
- Exec: \Windows\CusTSK.exe \Windows\MyTheme.tsk

This results in a successful theme change on the WM 5 device. However the WM 6 & 6.1 devices change all color settings successfully, but don't apply the background included with the theme.
I tried to add an event to force a refresh of the Today screen, but that didn't change anything. The stwater and tdywater files in the Windows folder simply aren't replaced by the right files.
I know I can simply make a script to change those files manually, but I rather find out why this isn't working the way it should. According to sources I found, it should work using "wceload.exe" which didn't do anything in my case.

The theme itself is not the problem, I tried using the same script to set the device from a custom theme back to the default WM theme, with the same results. Also, manually applying my theme works just fine on all devices.

All 3 devices have been hard resetted to set them to factory defaults, without any changed settings or installed applications except the application that receives the settings from the server.

Anyone has an idea why this isn't working?

A little note: MSDN says I have to delete the UseStartImage reg value. However doing this doesn't seem to make any difference, because it is set back automatically unless I manually enter to remove it in the tsk file settings.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by marjorie69
4 hours ago
Last post by ncormier
3 hours ago
Last post by olang
3 hours ago
Last post by okey60
14 minutes ago
Last post by nsatterfield
3 hours ago
Last post by baby.mayert
3 hours ago
Last post by twuckert
21 minutes ago
Last post by aurelia.huels
2 hours ago