Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

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

- - - - -

  • Please log in to reply
2 replies to this topic

#1
sigepluto

sigepluto
  • Members
  • 6 posts
: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.


How to remove advertisement from MSFN

#2
messer

messer
  • Members
  • 3 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, 02 August 2005 - 10:41 AM.


#3
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • OS:Windows 8 x64
  • Country: Country Flag
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>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users



How to remove advertisement from MSFN