MSFN Forum: Can a theme be applied with some autoit script? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can a theme be applied with some autoit script? Rate Topic: -----

#1 User is offline   nice_guy75 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 07-December 09

Posted 20 April 2010 - 10:29 PM

Hi guys,
I am trying to apply a custom theme as default theme, I tried some ready made answer files but not working for me. So I thought can I do the same with some Autoit script?

If yes please write a script for me which can apply a theme named "simplicity.theme" and then close the personalization window as well.


#2 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 862
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 20 April 2010 - 10:51 PM

Well, you could just run this reg at first login, then schedule a reboot immediately afterward (or at least a log-off). It won't take effect until the next login.

Quote

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization]
"ThemeFile"="C:\\Windows\\Resources\\Themes\\SIMPLICITY.theme"


I'm sure it can be done with auto-it, but for that much effort, I'd rather not have to deal with slow moving GUI. I would rather edit the Default Profile (inside install.wim) to make the change permanent and seamless. This way it is already applied before the first login.

Mount\Users\Default\NTUSER.DAT

This post has been edited by MrJinje: 20 April 2010 - 10:54 PM


#3 User is offline   nice_guy75 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 07-December 09

Posted 21 April 2010 - 12:07 AM

Thanks for your reply, now regarding editing default profile in the install.wim, I don't know how to do that but yes I did try with an answer file but didn't work for me. So I thought Autoit can also do it. Now as you have told me about this registry I would try this as well. But I would also like to know about editing in default

#4 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 862
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 21 April 2010 - 01:08 AM

I would try this from setupcomplete.cmd

Quote

REM Load the default profile hive
REG LOAD HKU\Hive C:\Users\Default\NTUSER.DAT

REM Configure the default user profile
REG ADD "HKU\Hive\Software\Policies\Microsoft\Windows\Personalization" /v ThemeFile /t REG_SZ /d "C:\Windows\Resources\Themes\SIMPLICITY.theme" /f

REM Unload the default profile hive
REG UNLOAD HKU\Hive


Expanded theory is discussed here.

This should edit the NTUSER.DAT immediately before the first login, meaning it should apply when the new user is created (during the autounattend)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy