MSFN Forum: Help importing reg file, please... - MSFN Forum

Jump to content


  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Help importing reg file, please... Rate Topic: -----

#1 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 June 2012 - 09:02 AM

I try import reg file trough WPI with {REGEDIT} command, but HKLM values are not imported... how I could import HKLM values silently...?
I use Win 7 Pro x64 with Admin user and UAC disabled...
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\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]
@="Bloquear"

[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]
@="Cerrar Sesión"

[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]
@="Cambiar de Usuario"

[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]
@="Suspender"

[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]
@="Hibernar"

[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]
@="Reiniciar"

[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]
@="Apagar"

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


If I run regedit /s regfile.reg in CMD console, work perfect, bu if I run regfile.cmd (with same command) trough WPI, I have seme result, HKLM values not imported...
I try regfile.reg trough WinRAR sfx also, but result it's same...

Regards... ;-)

This post has been edited by alfreire: 17 June 2012 - 09:32 AM



#2 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 01:10 AM

Have you set the complete location path for your registry key using {REGEDIT} command ?

#3 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 01:48 AM

View Postmyselfidem, on 18 June 2012 - 01:10 AM, said:

Have you set the complete location path for your registry key using {REGEDIT} command ?

Yes, it's this cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu.reg"']; HKCR values are imported, but HKLM values not...
Regards... ;-)

This post has been edited by alfreire: 18 June 2012 - 01:49 AM


#4 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 02:10 AM

Maybe that can help you:

http://www.msfn.org/...pi-not-working/

This post has been edited by myselfidem: 18 June 2012 - 02:47 AM


#5 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 02:36 AM

I try launch reg file trough cmd batch, but it's same result... reg files import ok, but HKLM values are not imported...

This post has been edited by alfreire: 18 June 2012 - 02:45 AM


#6 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 02:47 AM

Change also to the correct path inside your reg file:

[HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]

#7 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 02:56 AM

Reg file it's not problem, if I run reg file and import to registry all values work ok, but trough WPI HKLM values not imported...

This post has been edited by alfreire: 18 June 2012 - 02:57 AM


#8 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 02:58 AM

Yes, your reg file ins't correct anyway. Try to change it!

#9 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 03:12 AM

prog[pn]=['Trucos Windows-7 Power Menu'];
uid[pn]=['TRUCOSW72'];
ordr[pn]=[2];
dflt[pn]=['no'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Sistema'];
configs[pn]=
pfro[pn]=['no'];
cmds[pn]=['{REGEDIT} "%wpipath%\\Install\\Tweaks\\PowerMenu.reg"'];
cond[pn]=['getOSver()=="Win7"'];
desc[pn]=['Power Menú en Mi PC y Escritorio'];
pn++;


I don't know why, but [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] don't work menu, [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] yes work...

#10 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 03:52 AM

I think you mean, like I said before:
Do not work:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]

Works:
[HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]


This post has been edited by myselfidem: 18 June 2012 - 03:56 AM


#11 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 03:56 AM

Works:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]

Do not work:
[HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu]

Attached File(s)



#12 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 04:02 AM

View Postalfreire, on 18 June 2012 - 03:12 AM, said:

I don't know why, but [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] don't work menu, [HKEY_CLASSES_ROOT\Directory\Background\Shell\Power Menu] yes work...

Take care when you write!

The example I given is correct! Try to use a registry cleaner and you will see no more your commands on the desktop!

Cheers

This post has been edited by myselfidem: 22 June 2012 - 05:12 AM


#13 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 04:11 AM

I copy reg from here http://www.askvg.com...indows-7-and-8/

Also don't work
Windows Registry Editor Version 5.00

;Administrar (sólo para ordenar el menú alfabéticamente, añade un 0 antes del nombre)
[-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

;Administrador de Dispositivos
[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"

;Administrador de discos
[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"

;Services
[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

;Task Manager  
[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"

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

;Command Prompt
[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"

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

;Desinstalar Programas
[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"

;Notepad++
[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"

;Windows Update
[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"

;Abrir CMD en el Explorador con el botón derecho
[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\""


Attached File(s)


This post has been edited by alfreire: 18 June 2012 - 04:17 AM


#14 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 04:19 AM

View Postalfreire, on 18 June 2012 - 04:11 AM, said:



The registry key, like I said, isn't correct even if you downloaded the reg file!

Attached. Using the registry key changed on Windows 64-bit

This post has been edited by myselfidem: 18 June 2012 - 04:23 AM


#15 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 04:23 AM

View Postmyselfidem, on 18 June 2012 - 04:19 AM, said:

View Postalfreire, on 18 June 2012 - 04:11 AM, said:



The registry key, like I said, isn't correct even if you downloaded the reg file!

I agree with you, there must be an error in creation, but it works, I don't know why...

#16 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 04:34 AM

Like I said all your commands will be removed with an Registry Cleaner because the path isn't correct!

Already discussed here about this error:

http://www.msfn.org/...post__p__966749

Cheers

#17 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 04:40 AM

Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported...
Thank for your patience and help...

#18 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 04:51 AM

I export this key from registry:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Thunderbird\Extensions]
"eplgTb@eset.com"="C:\\Program Files\\ESET\\ESET NOD32 Antivirus\\Mozilla Thunderbird"


I delete key in registry and import trough WPI, doesn't work...

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

This post has been edited by alfreire: 18 June 2012 - 04:52 AM


#19 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,379
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 June 2012 - 04:52 AM

View Postalfreire, on 18 June 2012 - 04:40 AM, said:

Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported...
Thank for your patience and help...

I am sure, the first time you forgotten to disable the UAC, for any reason, and with the same reg file after desabling the UAC works fine!

However you prefer to keep a registy key with an error! I don't understand.

Cheers

#20 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2012 - 04:54 AM

View Postmyselfidem, on 18 June 2012 - 04:52 AM, said:

View Postalfreire, on 18 June 2012 - 04:40 AM, said:

Ok, I agree... but the problem is what HKLM values are not imported... HKCU values are imported...
Thank for your patience and help...

I am sure, the first time you forgotten to disable the UAC, for any reason, and with the same reg file after desabling the UAC works fine!

However you prefer to keep a registy key with an error! I don't understand.

Cheers


I add this to disable UAC, it's ok...?

Windows Registry Editor Version 5.00

;Disable User Account Control (UAC)
[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



Share this topic:


  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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