February 24, 201016 yr I want to run a .reg file from SFX, after installation, without confirmation.This can be done with a batch? Edited February 24, 201016 yr by Nic303
February 24, 201016 yr regedit /s MYREG.regpack the reg file right next to the cmd and when it expands in the temp folder it should run.
February 24, 201016 yr Something like this maybe?In WinRAR ;The comment below contains SFX script commandsSetup=regedit /s MYREG.regTempModeSilent=1Overwrite=1
February 24, 201016 yr Right-click the .reg file, select Add to archive..., click Create SFX Archive. In the Comment tab paste the lines I posted:;The comment below contains SFX script commandsSetup=regedit /s NameOfYourRegFile.regTempModeSilent=1Overwrite=1 click OK to create the SFX and test it.
February 24, 201016 yr Paste yur regedit command in the box "Run After Extraction" from section "Customize Basic Installer :" of this how to
February 24, 201016 yr Author Right-click the .reg file, select Add to archive..., click Create SFX Archive. In the Comment tab paste the lines I posted:;The comment below contains SFX script commandsSetup=regedit /s NameOfYourRegFile.regTempModeSilent=1Overwrite=1 Works - add entries to registry.But can WinRAR make this .reg file run automatically after main SFX installation?Paste yur regedit command in the box "Run After Extraction" from section "Customize Basic Installer :" of this how toI tried with this command: regedit /s MYREG.reg ... still not working. Edited February 24, 201016 yr by Nic303
February 24, 201016 yr Yes, call it from RunOnce or RunOnceEx with no silent switches (it's already silent, right?)BTW, are you using a software like nLite or WPI? Edited February 24, 201016 yr by Sp0iLedBrAt
February 24, 201016 yr Author Not in this case.I have a folder with some files and .reg file inside.I want to "merge" this .reg file automatically to registry, without confirmation, after SFX installation.That's the tricky part. Edited February 24, 201016 yr by Nic303
February 24, 201016 yr It is very doable to add the files and the .reg in the SFX and they will extract and execute (merge), but how do you want to automate the procedure? What is so tricky? Do you want to start the installation in some special way?
February 24, 201016 yr Author Nothing special.But i can't make .reg file to execute after installation.
Create an account or sign in to comment