Jump to content

Help importing reg file, please...


Recommended Posts

I'm a little confused... If I edit PowerMenu.reg to this* not work for me in Win7 x64... Work Power Menu in desktop and My PC, but not submenus... (Running directly reg file)

*

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"

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

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

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
@="Cerrar Sesión"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]
@="Cambiar de Usuario"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
@="Suspender"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
@="Hibernar"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
@="Reiniciar"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
@="Apagar"

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

Edited by alfreire
Link to comment
Share on other sites


You can use the same reg file for "PowerMenu_x86.reg" on Windows 7 64-bit.

But to try resolving to import silently HKLM with the USB key with WPI just add at the top of the reg file "PowerMenu_x64.reg" the key I given above!

Thanks to let us know!

*Edit: And inside WPI (config.js file):

cmds[pn]=['{x86} REGEDIT /S "%wpipath%\\Install\\Tweaks\\PowerMenu_x86.reg"','{x64} REGEDIT /S "%wpipath%\\Install\\Tweaks\\PowerMenu_x64.reg"'];

Edited by myselfidem
Link to comment
Share on other sites

I see after many tests that the reg files were always removed using TuneUp Utilities 2012 !

All is fine NOW adding inside the reg files for "PowerMenu.reg" or for "My Computer":

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power\command]

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command]
@=-

Here is now the final reg file working fine and not removed by TuneUp Utilities (Adapt to your language!):

Tweaks.reg


Windows Registry Editor Version 5.00

;-----------------------------------------------------------------------
; - Désactiver le contrôle des comptes UAC pour versions 32 et 64 bits
; Remove semicolons for reg file 64-bit
;-----------------------------------------------------------------------

[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

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

;-------------------------------------------------------------------------------------------------
; Ajouter un menu contextuel avec le bouton droit sur Ordinateur et sur le Bureau : Alimentation
; Menu en cascade (rightclik cascading menu)
;-------------------------------------------------------------------------------------------------

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

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Power\command]

[HKEY_CLASSES_ROOT\Directory\Background\shell\Power]
"MUIVerb"="Alimentation"
"Icon"="shell32.dll,215"
"Position"="Bottom"
"SuppressionPolicy"=dword:4000003c
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"

[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"

;----------------------------------------------------------------------------------
; Ajouter un menu contextuel avec le bouton droit sur Ordinateur et sur le Bureau
; Menu en cascade (rightclick cascading menu)
;----------------------------------------------------------------------------------

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage]
@=-
"MUIVerb"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,\
2c,00,2d,00,34,00,30,00,30,00,00,00
"SuppressionPolicy"=""
"HasLUAShield"=""
"SubCommands"="msconfig;regedit;diskmgmt;devmgr;taskmgr;runas;programs;services;wu"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command]
@=-

[HKEY_CLASSES_ROOT\Directory\Background\shell\Manage]
"MUIVerb"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,\
2c,00,2d,00,34,00,30,00,30,00,00,00
"HasLUAShield"=""
"Position"="Top"
"SuppressionPolicy"=dword:4000003c
"SubCommands"="msconfig;regedit;diskmgmt;devmgr;taskmgr;runas;programs;services;wu"

; Gestionnaire de périphériques
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\devmgr]
@="Gestionnaire de périphériques"
"Icon"=hex(2):64,00,65,00,76,00,6d,00,67,00,72,00,2e,00,64,00,6c,00,6c,00,2c,\
00,34,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\devmgr\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,44,00,65,00,76,00,4d,\
00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,00,00,00

; Gestion des disques
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\diskmgmt]
@="Gestion des disques"
"Icon"="dmdskres.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\diskmgmt\command]
@="mmc /s diskmgmt.msc"

; Services
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\services]
@="Services"
"HasLUAShield"=""
"Icon"=hex(2):66,00,69,00,6c,00,65,00,6d,00,67,00,6d,00,74,00,2e,00,64,00,6c,\
00,6c,00,00,00
"SuppressionPolicy"=dword:4000003c

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\services\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,73,00,65,00,72,00,76,\
00,69,00,63,00,65,00,73,00,2e,00,6d,00,73,00,63,00,00,00

; Gestionnaire des tâches
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\taskmgr]
@="Gestionnaire des tâches"
"Icon"=hex(2):74,00,61,00,73,00,6b,00,6d,00,67,00,72,00,2e,00,65,00,78,00,65,\
00,00,00

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

; Configuration du système
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\msconfig]
@="Configuration du système"
"Icon"="msconfig.exe,-0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\msconfig\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,00,\
63,00,6f,00,6e,00,66,00,69,00,67,00,2e,00,65,00,78,00,65,00,00,00

; Editeur du registre
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\regedit]
@="Editeur du registre"
"Icon"="regedit.exe,-0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\regedit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,65,00,\
00,00

; Programmes et fonctionnalités
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\programs]
@="Programmes et fonctionnalités"
"Icon"=hex(2):77,00,65,00,78,00,74,00,72,00,61,00,63,00,74,00,2e,00,65,00,78,\
00,65,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\programs\command]
@="control appwiz.cpl"

; Invite de commande Administrateur
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\runas]
@="Invite de commande"
"Icon"="UserAccountControlSettings.exe,-0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\runas\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\
64,00,2e,00,65,00,78,00,65,00,00,00

; Windows Update
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\wu]
@="Windows Update"
"Icon"=hex(2):77,00,75,00,63,00,6c,00,74,00,75,00,78,00,2e,00,64,00,6c,00,6c,\
00,00,00

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

Enjoy!

*Edit: Tweaks.reg updated

Edited by myselfidem
Link to comment
Share on other sites

Many thanks! ;)

I have a AIO with Starter, Pro x86 and Pro x64, Autounattend.xml it's inside boot.wim x64 (only setup image, winpe delete) with drivers integrated, work perfect for me... I'm not saying Autounattend.xml is fine, just works for me ... if you can improve, I will try...

Maybe it's possible to use two Autounattend.xml files if you have boot.wim 32-bit and boot.wim 64-bit inside your Windows 7 AIO ?

Autounattend.xml (x86) inside boot.wim 2 for x86. And Autounattend.xml (amd64) inside boot.wim 2 for 64-bit!

It's just an idea and maybe that work!

I don't know if it's already discussed but it would be interesting to try and ask inside this topic:

http://www.msfn.org/board/forum/157-install-windows-from-usb/

Regards

Link to comment
Share on other sites

Hey guys?

WHY are we not usig the proper WPI commands to pass a reg file?

{REGEDIT} "%wpipath%\Install\RegFiles\Smalliconsinstartmenu.reg"

I tried that and all metods I know... but HKLM values in Win7 x64 are not imported...

My friend it's working in a develop to solve this, You can see here if you want:

http://www.codeproject.com/Tips/413304/Windows-Post-Install-and-64-bit-Registry-tweaks

Regards... ;-)

Edited by alfreire
Link to comment
Share on other sites

Yes Kels we can use : (example for Windows 7 AIO x86/x64) :yes:

config.js


prog[pn]=['Tweaks'];
uid[pn]=['TWEAKS'];
ordr[pn]=[23];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
pfro[pn]=['no'];
cmds[pn]=['{x86} {REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu_x86.reg"','{x64} {REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu_x64.reg"'];
desc[pn]=['Tweaks'];
pn++;

Tested successfully WPI using {REGEDIT} on Windows 7 AIO with Autounattend.xml file (AIO) and all reg files imported!


samedi 30 juin 2012 10:43:03
Programme: Tweaks
ID unique: TWEAKS
Ordre: 000023
Catégorie: Applications
samedi 30 juin 2012 10:43:03 - cmd1 Succès (Code de retour 0): "RegEdit" /S "D:\wpi\Install\Tweaks\PowerMenu_x86.reg"
samedi 30 juin 2012 10:43:04 - cmd2 *** Skipped *** (Architecture incorrecte): {x64} {REGEDIT} "%wpipath%\Install\Tweaks\PowerMenu_x64.reg"
samedi 30 juin 2012 10:43:04 - Installation terminée.

I improved and updated the last Tweaks.reg.

Regards

*Edit: However doesn't work for Windows 7 x64!

Edited by myselfidem
Link to comment
Share on other sites

One example:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}]
@="Other Users"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"ConsentPromptBehaviorUser"=dword:00000000
"EnableInstallerDetection"=dword:00000000
"EnableLUA"=dword:00000000
"EnableUIADesktopToggle"=dword:00000000
"EnableSecureUIAPaths"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
"ValidateAdminCodeSignatures"=dword:00000000
"FilterAdministratorToken"=dword:00000000

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

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main]
"DisableFirstRunCustomize"=dword:00000001

[-HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{491E922F-5643-4af4-A7EB-4E7A138D8174}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A302545D-DEFF-464b-ABE8-61C8648D939B}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A990AE9F-A03B-4e80-94BC-9912D7504104}]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
“{031E4825-7B94-4dc3-B131-E946B44C8DD5}”=-

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000003

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
"MinThumbSizePx"=dword:00000190

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"ShowSuperHidden"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000003

[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage]

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\0Manage]
@=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
00,34,00,30,00,30,00,00,00
"MUIVerb"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,\
2c,00,2d,00,34,00,30,00,30,00,00,00
"SuppressionPolicy"=dword:4000003c
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\0Manage\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,6f,00,\
6d,00,70,00,4d,00,67,00,6d,00,74,00,4c,00,61,00,75,00,6e,00,63,00,68,00,65,\
00,72,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\1DevMgr]
@="Administrador de Dispositivos"
"icon"="control.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\1DevMgr\command]
@="mmc /s devmgmt.msc"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\2DiskMgmt]
@="Administrador de Discos"
"Icon"="dmdskres.dll"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\2DiskMgmt\command]
@="mmc /s diskmgmt.msc"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services]
@=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\
68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,32,\
00,32,00,30,00,35,00,39,00,00,00
"SuppressionPolicy"=dword:4000003c
"HasLUAShield"=""
"Icon"=hex(2):66,00,69,00,6c,00,65,00,6d,00,67,00,6d,00,74,00,2e,00,64,00,6c,\
00,6c,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,\
00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,\
74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,\
00,73,00,2e,00,6d,00,73,00,63,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Task Manager]
"Icon"=hex(2):74,00,61,00,73,00,6b,00,6d,00,67,00,72,00,2e,00,65,00,78,00,65,\
00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Task Manager\command]
@="taskmgr.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\MSConfig]
"Icon"=hex(2):6d,00,73,00,63,00,6f,00,6e,00,66,00,69,00,67,00,2e,00,65,00,78,\
00,65,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\MSConfig\command]
@="msconfig.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\CMD]
@="Command Prompt"
"icon"="cmd.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\CMD\command]
@="cmd.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit]
@="Regedit"
"icon"="regedit.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit\command]
@="regedit.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs]
@="Desinstalar Programas"
"Icon"=hex(2):77,00,65,00,78,00,74,00,72,00,61,00,63,00,74,00,2e,00,65,00,78,\
00,65,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
@="control appwiz.cpl"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Notepad]
"icon"="C:\\Program Files (x86)\\Notepad++\\notepad++.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Notepad\command]
@="Notepad++.exe"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update]
"Icon"=hex(2):77,00,75,00,63,00,6c,00,74,00,75,00,78,00,2e,00,64,00,6c,00,6c,\
00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update\command]
@="wuapp.exe"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Abrir CMD aquí"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

If I run this reg file direcly or trough cmd (with regedit /s) work perfect...

If I run this file trough WPI

cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\Trucos7.reg"'];

or

cmds[pn]=['{BATCH} "%wpipath%\\Install\\Tweaks\\Trucos7.cmd"']; (regedit /s trucos7.reg inside cmd)

or

cmds[pn]=['"%wpipath%\\Install\\Tweaks\\Trucos7.cmd"'];

Values HKLM doesn't import in Win7 x64...

If run this reg file with this command:

cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\Trucos7.reg"'];

in Win7 x86 work perfect...

Regards... ;-)

Link to comment
Share on other sites

I do not understand this, why I need two cmd files to start WPI...? WPI start perfectly in two architectures with the current values...

I test now in Win 7 Pro x86 and reg files import perfecty trough WPI... the issue it's in Win 7 x64... :wacko:

Try to use - like I said - two batch files to launch the same WPI.exe, because you have an Windows 7 AIO (x86/x64).

Try my Autounattend.xml example given...And let us know, please!

WPI works perfect for me!

I think errors occurs, if you use WPI executed with x86 pass inside your Autounattend.xml for Windows 7 x64!

To avoid errors, I used Autounattend.xml AIO using WPI.exe inside x86 pass for Windows 7 x86; and using the same WPI.exe inside amd64 pass for Windows 7 x64!

Just write this reg file using correct quotes:


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{031E4825-7B94-4dc3-B131-E946B44C8DD5}"=-

HTH

Edited by myselfidem
Link to comment
Share on other sites

After new tests, I see that the workaround with WPI to import reg files 32-bit, for Windows 7 64-bit is using: REGEDIT /S

Works fine using regedit 32-bit to your needs!

cmds[pn]=['{x86} REGEDIT /S "%wpipath%\\Install\\Tweaks\\PowerMenu_x86.reg"','{x64} REGEDIT /S "%wpipath%\\Install\\Tweaks\\PowerMenu_x64.reg"'];

or:

cmds[pn]=['{x86} {REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu_x86.reg"','{x64} REGEDIT /S "%wpipath%\\Install\\Tweaks\\PowerMenu_x64.reg"'];

Why?

Because using regedit.exe inside: "%Windir%\SysWOW64\regedit.exe" the keys HKLM for 32-bit are automatically and only writed inside:

HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\CommandStore\shell\

You can check inside the registry on VM that all your HKLM keys are writed only inside the registry key writed above!

And, of course, some registry keys doesn't work properly!

More help about this problem:

http://support.microsoft.com/kb/305097

http://csi-windows.c...-64-bit-windows

Works fine for me using WPI installing Windows 7 x86 or Windows 7 x64 using the command above!

HTH

Edited by myselfidem
Link to comment
Share on other sites

After new tests, I see that the workaround with WPI to import reg files 32-bit, for Windows 7 64-bit is using: REGEDIT /S

Yes, it's works... :thumbup:w00t: Why did not you say before...? :angel:whistle:

I appreciate all the effort you've committed to help me... Thank you very much, friend... :rolleyes:

Regards... ;-)

Link to comment
Share on other sites

Many thanks ! :)

But I'll have repeatedly suggested to use: REGEDIT /S as a workaround for Windows 7 x64:

http://www.msfn.org/board/topic/157072-help-importing-reg-file-please/page__view__findpost__p__1001560

http://www.msfn.org/...ost__p__1002143

http://www.msfn.org/...ost__p__1002192

I haven't seen the problem about using regedit.exe 64-bit with {REGEDIT} for HKLM 32-bit keys on Windows 7 x64!

I'm happy the problem is solved!

Regards

Edited by myselfidem
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...