sigepluto Posted August 2, 2005 Posted August 2, 2005 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.
messer Posted August 2, 2005 Posted August 2, 2005 (edited) 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>or2.) 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 helpsMichael Edited August 2, 2005 by messer
prathapml Posted August 2, 2005 Posted August 2, 2005 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>
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now