Sign in to follow this  
Followers 0
sigepluto

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

3 posts in this topic

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

0

Share this post


Link to post
Share on other sites

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
0

Share this post


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

0

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.