Jump to content

How can i execute a *.reg file in XPlode ?


sigepluto

Recommended Posts


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

Edited by messer
Link to comment
Share on other sites

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>

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...