MSFN Forum: Windows 7 unattend.xml setting to enable gadgets - MSFN Forum

Jump to content



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

Windows 7 unattend.xml setting to enable gadgets

#1 User is offline   runjasonrun 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-November 05

Posted 22 August 2009 - 11:40 AM

I am trying to automate a Windows 7 build with the a couple of the default Windows 7 gadgets enabled that will be visible. So far this is not working as expected and would like some help on this topic. The Windows 7 build does deploy, my custom theme is showing up but NO gadgets to be seen.

A little background on the tools I am using to do this.
  • MDT 2010 Beta 2 version 5.0.1210.0
  • Windows Automated Installation Kit (x64) 2.0 version 6.1.0.0
  • Windows 7 Ultimate RTM


The following is a snippet from the unattend.xml that is specific to the gadget code.
 
<component name="Microsoft-Windows-Sidebar" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Gadget1>%PROGRAMFILES%\Windows Sidebar\Gadgets\Clock.Gadget</Gadget1> 
  </component> 


Here is my entire unattend.xml file for review in case there is something else that is required so I do not have to be asked to post this.
 
<?xml version="1.0" encoding="utf-8" ?> 
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
- <ImageInstall>
- <OSImage>
  <WillShowUI>OnError</WillShowUI> 
- <InstallTo>
  <DiskID>0</DiskID> 
  <PartitionID>1</PartitionID> 
  </InstallTo>
- <InstallFrom>
  <Path>.\Operating Systems\WIN7\WIN7.wim</Path> 
- <MetaData>
  <Key>/image/index</Key> 
  <Value>1</Value> 
  </MetaData>
  </InstallFrom>
  </OSImage>
  </ImageInstall>
- <UpgradeData>
  <Upgrade>false</Upgrade> 
  </UpgradeData>
- <Display>
  <ColorDepth>16</ColorDepth> 
  <HorizontalResolution>1024</HorizontalResolution> 
  <RefreshRate>60</RefreshRate> 
  <VerticalResolution>768</VerticalResolution> 
  </Display>
- <ComplianceCheck>
  <DisplayReport>OnError</DisplayReport> 
  </ComplianceCheck>
- <UserData>
  <AcceptEula>true</AcceptEula> 
- <ProductKey>
  <Key /> 
  </ProductKey>
  </UserData>
  </component>
- <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SetupUILanguage>
  <UILanguage>en-US</UILanguage> 
  </SetupUILanguage>
  <InputLocale>0409:00000409</InputLocale> 
  <SystemLocale>en-US</SystemLocale> 
  <UILanguage>en-US</UILanguage> 
  <UserLocale>en-US</UserLocale> 
  </component>
  </settings>
- <settings pass="generalize">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DoNotCleanTaskBar>true</DoNotCleanTaskBar> 
  </component>
  </settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
- <Identification>
- <Credentials>
  <Username /> 
  <Domain /> 
  <Password /> 
  </Credentials>
  <JoinDomain /> 
  <JoinWorkgroup /> 
  <MachineObjectOU /> 
  </Identification>
  </component>
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
  <ComputerName /> 
  <ProductKey /> 
  <RegisteredOrganization>HOME</RegisteredOrganization> 
  <RegisteredOwner>HOME</RegisteredOwner> 
  <DoNotCleanTaskBar>true</DoNotCleanTaskBar> 
  <TimeZone>Pacific Standard Time</TimeZone> 
  </component>
- <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Home_Page>http://www.live.com</Home_Page> 
  </component>
- <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
  <Description>EnableAdmin</Description> 
  <Order>1</Order> 
  <Path>cmd /c net user Administrator /active:yes</Path> 
  </RunSynchronousCommand>
- <RunSynchronousCommand wcm:action="add">
  <Description>EnableAdmin_ploc</Description> 
  <Order>2</Order> 
  <Path>cmd /c net user Administrator_ploc /active:yes</Path> 
  </RunSynchronousCommand>
- <RunSynchronousCommand wcm:action="add">
  <Description>UnfilterAdministratorToken</Description> 
  <Order>3</Order> 
  <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path> 
  </RunSynchronousCommand>
  </RunSynchronous>
  </component>
- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <InputLocale>0409:00000409</InputLocale> 
  <SystemLocale>en-US</SystemLocale> 
  <UILanguage>en-US</UILanguage> 
  <UserLocale>en-US</UserLocale> 
  </component>
- <component name="Microsoft-Windows-TapiSetup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <TapiConfigured>0</TapiConfigured> 
- <TapiUnattendLocation>
  <AreaCode>""</AreaCode> 
  <CountryOrRegion>1</CountryOrRegion> 
  <LongDistanceAccess>9</LongDistanceAccess> 
  <OutsideAccess>9</OutsideAccess> 
  <PulseOrToneDialing>1</PulseOrToneDialing> 
  <DisableCallWaiting>""</DisableCallWaiting> 
  <InternationalCarrierCode>""</InternationalCarrierCode> 
  <LongDistanceCarrierCode>""</LongDistanceCarrierCode> 
  <Name>Default</Name> 
  </TapiUnattendLocation>
  </component>
- <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DisableSR>1</DisableSR> 
  </component>
  </settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
- <UserAccounts>
- <AdministratorPassword>
  <Value>UABAAHMAcwB3ADAAcgBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> 
  <PlainText>false</PlainText> 
  </AdministratorPassword>
- <LocalAccounts>
- <LocalAccount wcm:action="add">
  <Description>Temp account</Description> 
  <DisplayName>Temp account</DisplayName> 
  <Group>Users</Group> 
  <Name>TempAccount</Name> 
  </LocalAccount>
  </LocalAccounts>
  </UserAccounts>
- <AutoLogon>
  <Enabled>true</Enabled> 
  <Username>Administrator</Username> 
  <Domain>.</Domain> 
- <Password>
  <Value>UABAAHMAcwB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value> 
  <PlainText>false</PlainText> 
  </Password>
  <LogonCount>999</LogonCount> 
  </AutoLogon>
- <Display>
  <ColorDepth>32</ColorDepth> 
  <HorizontalResolution>1024</HorizontalResolution> 
  <RefreshRate>60</RefreshRate> 
  <VerticalResolution>768</VerticalResolution> 
  </Display>
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
  <CommandLine>cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> 
  <Description>Lite Touch new OS</Description> 
  <Order>1</Order> 
  </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
  <CommandLine>cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> 
  <Description>Lite Touch new OS</Description> 
  <Order>2</Order> 
  </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
  <CommandLine>cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> 
  <Description>Lite Touch new OS</Description> 
  <Order>3</Order> 
  </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
  <CommandLine>cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> 
  <Description>Lite Touch new OS</Description> 
  <Order>4</Order> 
  </SynchronousCommand>
  </FirstLogonCommands>
- <OOBE>
  <HideEULAPage>true</HideEULAPage> 
  <NetworkLocation>Work</NetworkLocation> 
  <ProtectYourPC>3</ProtectYourPC> 
  </OOBE>
  <RegisteredOrganization>HOME</RegisteredOrganization> 
  <RegisteredOwner>HOME</RegisteredOwner> 
  <TimeZone /> 
- <Themes>
  <WindowColor /> 
  <ThemeName>%WINDIR%\Resources\Themes\FunkyChicken.theme</ThemeName> 
  </Themes>
  </component>
- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <InputLocale>0409:00000409</InputLocale> 
  <SystemLocale>en-US</SystemLocale> 
  <UILanguage>en-US</UILanguage> 
  <UserLocale>en-US</UserLocale> 
  </component>
- <component name="Microsoft-Windows-Sidebar" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Gadget1>%PROGRAMFILES%\Windows Sidebar\Gadgets\Clock.Gadget</Gadget1> 
  </component>
  </settings>
- <settings pass="offlineServicing">
- <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <DriverPaths>
- <PathAndCredentials wcm:keyValue="1" wcm:action="add">
  <Path>\Drivers</Path> 
  </PathAndCredentials>
  </DriverPaths>
  </component>
  </settings>
  <cpi:offlineImage cpi:source="catalog://win7test1/deploymentshare$/operating systems/win7/win7_win7ddrive.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 
  </unattend> 


I have also attached a screen shot taken from the Windows System Image Manager (WSIM) that shows where and what I have configured.

Even though I am using the MDT to build and deploy this unattended Windows 7 image I think the actual configuration issue is in the what I may have in the unattend.xml.

I have done plenty of Google searches on this and even read the WSIM help file to ensure my syntax is correct. I must be missing something!

Any help would be nice.

Attached File(s)




#2 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,120
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 August 2009 - 03:36 PM

Needs to have ,true at the end

<Gadget1>%PROGRAMFILES%\windows sidebar\gadgets\Rolex.Gadget,true</Gadget1>


Edit: Nope im wrong only needed for Vista

Quote

Note:
In Windows Vista® installations, it was necessary to add a comma (,), and true or false for the state of the gadget. This is not required for Windows® 7 installations.

This post has been edited by ricktendo64: 22 August 2009 - 03:41 PM


#3 User is offline   runjasonrun 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-November 05

Posted 22 August 2009 - 03:47 PM

ricktendo64 - thanks for your reply and possible solution however I have tried that and it did not work.

According to the Unattended Windows Setup Reference for Windows 7

Quote

In Windows Vista® installations, it was necessary to add a comma (,), and true or false for the state of the gadget. This is not required for Windows® 7 installations.


#4 User is online   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 28 August 2009 - 12:13 AM

Are you putting them inside Program Files\Windows Sidebar\Shared Gadgets?

This is a requirement.

#5 User is offline   runjasonrun 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-November 05

Posted 28 August 2009 - 12:52 PM

ajua - Thanks for your reply.

To answer your question.
No, I am not placing any gadgets in %PROGRAMFILES%\windows sidebar\Shared Gadgets

The reason I am NOT... is these are the default gadgets that come with Windows 7. I am aware that if you are using 3rd party gadgets they need to go into the shared gadgets folder.

#6 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,120
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2009 - 11:54 PM

Sometimes if your experience index is low (because of missing drivers or what not) windows will not turn on this stuff like aero and gadgets

#7 User is offline   runjasonrun 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-November 05

Posted 29 August 2009 - 11:08 PM

ricktendo64,
I do not agree with half of that statement.

Quote

Sometimes if your experience index is low (because of missing drivers or what not) windows will not turn on this stuff like aero and gadgets


In order to turn Aero on in Windows 7 a Windows Experience Index (WEI) of 3.0 or better is required. Gadgets have no WEI requirements as they are simply an application.

Regardless, I still have not found a solution to resolve the original problem I posted.

#8 User is offline   mirecek1965 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 04-June 06

Posted 30 August 2009 - 12:50 PM

<component name="Microsoft-Windows-Sidebar" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Gadget1>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget1>
<Gadget2>%PROGRAMFILES%\windows sidebar\gadgets\AccuWeatherMiniForecast.gadget,true</Gadget2>
<Gadget3>%PROGRAMFILES%\windows sidebar\gadgets\IntelCore2_PoC_13.gadget,true</Gadget3>
<Gadget4>%PROGRAMFILES%\windows sidebar\gadgets\NetworkMeterv2.3.Gadget,true</Gadget4>
<Gadget5>%PROGRAMFILES%\windows sidebar\gadgets\nvidia14.gadget,true</Gadget5>
</component>

I have this in autounattend.xml and that is working. Filled under OOBE pass. Gadgets i copy straight to wim in place showed above :-)

#9 User is offline   runjasonrun 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 12-November 05

Posted 30 August 2009 - 10:36 PM

mirecek1965 - thanks for the reply.

However, this was already suggested earlier to have the ",true" added in the statement.

Quote

<Gadget1>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget1>


This is from my earlier post:

Quote

Note:
In Windows Vista® installations, it was necessary to add a comma (,), and true or false for the state of the gadget. This is not required for Windows® 7 installations.


#10 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 31 August 2009 - 06:31 PM

But notice that mirecek1965 is not pointing to SHARED GADGETS.

EDIT: I see what you're saying. Let me give it some thought...

This post has been edited by razormoon: 31 August 2009 - 06:36 PM


#11 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 31 August 2009 - 06:54 PM

rjasonr,

Have you tried an unattend as a "one off"? i.e.; not deployment just personal dvd for personal pc

I'm just curious if you're seeing a bug - be it software or ebkac - as your autounattend goals are very different than us users that are replying...?

;)

This post has been edited by razormoon: 31 August 2009 - 06:55 PM


#12 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,120
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2009 - 09:39 PM

Can you do something?

Go to "%localappdata%\Microsoft\Windows Sidebar" and see if there is a Settings.ini created, or I think maybe the settings.ini in "%programfiles%\Windows Sidebar" is actually the one, see if its got your gadget info

#13 User is offline   sp00f 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 712
  • Joined: 30-November 06

Posted 16 October 2009 - 06:04 PM

Replace the ini file in your install.wim with your own.
In : "Users\Administrator\AppData\Local\Microsoft\Windows Sidebar"

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