Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Help importing reg file, please...

- - - - -

  • Please log in to reply
108 replies to this topic

#26
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
All my keys works fine...But it seems you are trying to install with an USB key. Or I'm wrong?
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).


How to remove advertisement from MSFN

#27
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

All my keys works fine...But it seems you are trying to install with an USB key. Or I'm wrong?

Yes, WPI is on USB pendrive... why...?

#28
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Like I can see, you have no error inside your last test using WPI!
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#29
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Like I can see, you have no error inside your last test using WPI!

Yes, but why not import...? it's by Admin privileges...? I also try add reg key with WinRAR sfx and not work too... If I make cmd file (for run reg file) and run directly work, but if I run cmd file trough WPI don't work... :no:

#30
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Could you please attach your reg file and I will make an test with WPI?
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#31
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Could you please attach your reg file and I will make an test with WPI?

http://www.msfn.org/board/index.php?app=core&module=attach&section=attach&attach_id=34496
This file by example... I export that key from registry, delete key and try import with WPI, but not work... If run reg file directly work perfect...

#32
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

To disable the UAC, I use:

Windows Registry Editor Version 5.00

;--------------------------------------------------------------
; - Désactiver le contrôle des comptes d'utilisateurs ( UAC ) -
;--------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001
Works fine for me!

If you have some trouble with some registry keys, you can add a new thread!

Cheers

I search info for "ConsentPromptBehaviorAdmin" and I think my setting value "0" it's correct, not found "5" value from Microsoft... can you tell me it means "5" value...? :unsure:
http://msdn.microsof...2762(v=prot.10)

    Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    Value: "ConsentPromptBehaviorAdmin"

    Type: REG_DWORD

    Data: This MUST be a value in the following table.

    Value
    	

    Meaning

    0x00000000
    	
    This option SHOULD be used to allow the Consent Admin to perform an operation that requires elevation without consent or credentials.

    0x00000001
    	
    This option SHOULD be used to prompt the Consent Admin to enter his or her user name and password (or another valid admin) when an operation requires elevation of privilege.

    0x00000002
    	
    This option SHOULD be used to prompt the administrator in Admin Approval Mode to select either "Permit" or "Deny" an operation that requires elevation of privilege. If the Consent Admin selects Permit, the operation will continue with their highest available privilege. "Prompt for consent" removes the inconvenience of requiring that users enter their name and password to perform a privileged task.

Edited by alfreire, 18 June 2012 - 08:39 AM.


#33
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Yes, you are right, it's better to use the correct values:

Windows Registry Editor Version 5.00

;--------------------------------------------------------------
; - Désactiver le contrôle des comptes d'utilisateurs ( UAC ) -
;--------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

After a new test, all reg files are successfully installed with, BUT WITH MY REG FILE TO DISABLE UAC:

cmd1 Succès (Code de retour 0): "C:\Windows\SysWOW64\RegEdit" /S "D:\wpi\Install\Tweaks\PowerMenu.reg"

WPI_Log.txt
Spoiler

Edited by myselfidem, 28 June 2012 - 01:11 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#34
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
So, where can be the problem ...? :blink:

#35
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Maybe you can try this reg file! Same folder you used: "WPI\Install\Tweaks\PowerMenu.reg"

*Edit: After testing the reg file I given with the MS values...Doesn't work! The problem is Disabling UAC
Attached file removed.

Edited by myselfidem, 28 June 2012 - 01:12 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#36
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
lunes, 18 de junio de 2012 17:33:49  - cmd1 Enhorabuena (Código devuelto 0): "C:\Windows\SysWOW64\RegEdit" /S "J:\WPI\Install\Tweaks\PowerMenu.reg"

Not work with WPI... If I run PowerMenu.reg direclty work ok...

Edited by alfreire, 18 June 2012 - 09:38 AM.


#37
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
I uploaded a NEW "Tweaks.rar" on my last post, because with the Microsoft values, doesn't works.
Please download the new one. Thanks
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#38
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

I uploaded a NEW "Tweaks.rar" on my last post, because with the Microsoft values, doesn't works.
Please download the new one. Thanks

Doesn't work...
lunes, 18 de junio de 2012 17:53:41  - cmd1 Enhorabuena (Código devuelto 0): "C:\Windows\SysWOW64\RegEdit" /S "J:\WPI\Install\Tweaks\PowerMenu.reg"

Thank's to you by your help...

#39
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Maybe you try to add with WPI:

DefaultInstallPath='%wpipath%'

Edited by myselfidem, 18 June 2012 - 10:04 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#40
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
I tried it, but does not work... :wacko:

#41
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Check if you have not another reg file with the same values for UAC, and use my first example to disable UAC.
After many tests, I see it's the only reg file working fine for me!
You can try also to change the Administrator name to : Admin
HTH
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#42
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
I'll try...
Thank you very much... ;)

#43
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Here is the new reg file about Power Options right-click:

1 - First its' needed to remove this uneeded key:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power Menu]
"MUIVerb"="Alimentation"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"

2 - Final reg key working fine:

Windows Registry Editor Version 5.00

;-----------------------------------------------------------------------------
; - Disable UAC -
;-----------------------------------------------------------------------------

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

;--------------------------------------------------
; Add Power Options on right-click on the Desktop -
;--------------------------------------------------

[HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]
"MUIVerb"="Alimentation"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]
@="Verrouiller"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
@="Fermer la session"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]
@="Shutdown -l"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]
@="Changer d'utilisateur"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command]
@="tsdiscon.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
@="Mettre en veille"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]
@="rundll32.exe powrprof.dll,SetSuspendState Sleep"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
@="Mise en veille prolongée"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]
@="Shutdown -h"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
@="Redémarrer"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]
@="Shutdown -r -f -t 00"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
@="Arrêter"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]
@="Shutdown -s -f -t 00"

;-------------------------------------------------------------------------------------------------

Edited by myselfidem, 18 June 2012 - 02:48 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#44
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Here is the new reg file about Power Options right-click:

1 - First its' needed to remove this uneeded key:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power Menu]
"MUIVerb"="Power"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"
"Icon"="shell32.dll,215"
"Position"="bottom"


Yes, it's necesary for add too at right context to My PC...

I wil try make a new Win 7 AIO without tweaks integrated to view if afect to registry...

Regards... ;-)

Attached Files



#45
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Yes, of course, this regestry part can be keeped!

It seems works better using, like this:

cmds[pn]=['REGEDIT /S %wpipath%\\Install\\Tweaks\\PowerMenu.reg'];

Cheers

Edited by myselfidem, 21 June 2012 - 04:49 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#46
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
I tried that too, but does not work ... The point is that if the keys are HKCU in file.reg imported perfectly, but the keys HKLM not... :no:

I tried a Win 7 x64 clean install without previous tweaks with the same result... I don't know what I can make... :}

Edited by alfreire, 18 June 2012 - 03:59 PM.


#47
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Maybe you can use this workaround.

Create folders inside: .\Distribution_Folder\sources\$OEM$\$$\Setup\scripts

Inside the folder: "scripts" set your "Tweaks.reg" and a batch file batch.cmd (example)

Use WPI to launch the batch

batch.cmd
@ECHO OFF
REGEDIT /S "%systemroot%\Setup\Scripts\Tweaks.reg"
ECHO.
REGEDIT /S "%systemroot%\Setup\Scripts\Attributs.reg"
WScript.exe "%systemroot%\Setup\Scripts\notepad.vbs"
EXIT

Edited by myselfidem, 19 June 2012 - 12:40 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#48
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
I tried that with batch and vbs files, not work...

If I run batch or vbs files directly work perfect... but trough WPI don't work... :no:

#49
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
You mean WPI can't install tweaks.reg with HKLM...But the OS is installed and also programs with WPI?
Do you use an Autounattend.xml (needed inside boot.wim 2 with an USB Pendrive) ?

Edited by myselfidem, 19 June 2012 - 02:19 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#50
alfreire

alfreire

    Member

  • Member
  • PipPip
  • 121 posts
  • Joined 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag
Yes, all programs are installed trough WPI, an other reg files work perfect (without HKLM values)...
My autounattended file (inside boot.wim) is this:
<?xml version="1.0" encoding="utf-8"?> 
<unattend xmlns="urn:schemas-microsoft-com:unattend"> 
    <settings pass="windowsPE"> 
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" 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>es-ES</UILanguage> 
            </SetupUILanguage> 
            <InputLocale>040a:0000040a</InputLocale> 
            <SystemLocale>es-ES</SystemLocale> 
            <UILanguage>es-ES</UILanguage> 
            <UserLocale>es-ES</UserLocale> 
        </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>es-ES</UILanguage> 
            </SetupUILanguage> 
            <InputLocale>040a:0000040a</InputLocale> 
            <SystemLocale>es-ES</SystemLocale> 
            <UILanguage>es-ES</UILanguage> 
            <UserLocale>es-ES</UserLocale> 
        </component> 
        <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ImageInstall>
        <OSImage>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
      <UserData>
        <ProductKey>
          <Key />
          <WillShowUI>OnError</WillShowUI>
        </ProductKey>
        <AcceptEula>true</AcceptEula>
      </UserData>
        </component> 
        <component name="Microsoft-Windows-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">  
      <ImageInstall>
        <OSImage>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
      <UserData>
        <ProductKey>
          <Key />
          <WillShowUI>OnError</WillShowUI>
        </ProductKey>
        <AcceptEula>true</AcceptEula>
      </UserData>
        </component>  
    </settings> 
    <settings pass="specialize"> 
        <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
            <SkipAutoActivation>true</SkipAutoActivation> 
        </component> 
        <component name="Microsoft-Windows-Security-SPP-UX" 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"> 
            <SkipAutoActivation>true</SkipAutoActivation> 
        </component> 
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
            <TimeZone>Romance Standard Time</TimeZone> 
        </component> 
        <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"> 
            <TimeZone>Romance Standard Time</TimeZone> 
        </component> 
    </settings> 
    <settings pass="oobeSystem"> 
      	<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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>040a:0000040a</InputLocale> 
            <UserLocale>es-ES</UserLocale> 
            <UILanguage>es-ES</UILanguage> 
        </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>040a:0000040a</InputLocale> 
            <UserLocale>es-ES</UserLocale> 
            <UILanguage>es-ES</UILanguage> 
        </component> 
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <UserAccounts>
        <LocalAccounts />
        <AdministratorPassword>
          <Value />
        </AdministratorPassword>
      </UserAccounts>
      <AutoLogon>
        <Password>
          <Value />
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>9999</LogonCount>
        <Username>Administrator</Username>
      </AutoLogon>
      <OOBE>
        <NetworkLocation>Home</NetworkLocation>
        <HideEULAPage>true</HideEULAPage>
        <ProtectYourPC>1</ProtectYourPC>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <TimeZone>Romance Standard Time</TimeZone>
	  <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /q /c start %windir%\Temp\Instalar.cmd</CommandLine>
                    <Description>WPI</Description>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
       </FirstLogonCommands>
        </component> 
        <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"> 
      <UserAccounts>
        <LocalAccounts />
        <AdministratorPassword>
          <Value />
        </AdministratorPassword>
      </UserAccounts>
      <AutoLogon>
        <Password>
          <Value />
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>9999</LogonCount>
        <Username>Administrator</Username>
      </AutoLogon>
      <OOBE>
        <NetworkLocation>Home</NetworkLocation>
        <HideEULAPage>true</HideEULAPage>
        <ProtectYourPC>1</ProtectYourPC>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <TimeZone>Romance Standard Time</TimeZone>
        </component> 
    </settings> 
</unattend>

And instalar.cmd is this:
@ECHO OFF
SETLOCAL
(SET USB=)
FOR /F "USEBACKQ TOKENS=2 DELIMS==" %%# IN (`WMIC DATAFILE WHERE^
 "PATH='\\WPI\\' AND FILENAME='WPI' AND EXTENSION='exe'"^
 GET Name /VALUE^|FIND "="`) DO SET "USB=%%~d#"&SET "FPATH=%%#"

START "" "%USB%\WPI\WPI.exe"
exit

I use temp folder because I clean at WPI final...

Attached Files


Edited by alfreire, 19 June 2012 - 02:48 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users