MSFN Forum: How can i execute a *.reg file in XPlode ? - MSFN Forum

Jump to content


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

How can i execute a *.reg file in XPlode ? Rate Topic: -----

#1 User is offline   sigepluto 

  • Group: Members
  • Posts: 6
  • Joined: 26-July 05

  Posted 02 August 2005 - 08:42 AM

:huh:
I want to add a *.reg use Xplode.
how can i do it?

Is it "REG ADD *.reg" ?

OR "<execute>*.reg</execute>"

And where should i put the code?


Sorry for my poor english.


#2 User is offline   messer 

  • Group: Members
  • Posts: 3
  • Joined: 10-January 05

Posted 02 August 2005 - 10:40 AM

Hi,

in general there are 2 options to apply a *.reg entry:

1.) Using the regedit.exe:
<item ...>
   <execute display="Logon options..." desc="Applying registry entries"> 
      <program>#Systemroot#\REGEDIT.EXE</program>
      <arguments>/s C:\Setup\Registry\LogonStd.reg</arguments> 
      <hide>true</hide>
      <wait>true</wait>
   </execute>
</item>


or

2.) To use the XPlode internal mechanism:
<item ...>
   <registry mode="write">
      [HKEY_LOCAL_MACHINE\SOFTWARE\ABC]
      [HKEY_LOCAL_MACHINE\SOFTWARE\ABC\XYZ]
      "Entry 123"="890"
   </registry>
</item>


Hope that helps
Michael

This post has been edited by messer: 02 August 2005 - 10:41 AM


#3 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 August 2005 - 01:55 PM

Basically, this is the command-line way to do it:
for %%i in (%systemdrive%\install\regtweaks\*.reg) do start /wait regedit /s %%i
. Now since it needs to be executed using a command prompt,
cmd.exe /C "for %%i in (%systemdrive%\install\regtweaks\*.reg) do start /wait regedit /s %%i"
is the way to do it.


Now since it needs to be in an XML, here's a example:
<item ...>
  <execute display="Logon options..." desc="Applying registry entries">
     <program>CMD.EXE</program>
     <arguments>/C "for %%i in (%systemdrive%\install\regtweaks\*.reg) do start /wait regedit /s %%i"</arguments>
     <hide>true</hide>
     <wait>true</wait>
  </execute>
</item>


Share this topic:


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

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



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