Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
sigepluto

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

Recommended Posts

messer    0

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

Share this post


Link to post
Share on other sites
prathapml    0

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 post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×