Nic303 Posted February 24, 2010 Share Posted February 24, 2010 (edited) I want to run a .reg file from SFX, after installation, without confirmation.This can be done with a batch? Edited February 24, 2010 by Nic303 Link to comment Share on other sites More sharing options...
MrJinje Posted February 24, 2010 Share Posted February 24, 2010 regedit /s MYREG.regpack the reg file right next to the cmd and when it expands in the temp folder it should run. Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 Not working.More details please. Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 24, 2010 Share Posted February 24, 2010 Something like this maybe?In WinRAR ;The comment below contains SFX script commandsSetup=regedit /s MYREG.regTempModeSilent=1Overwrite=1 Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 Can someone explain step by step? Link to comment Share on other sites More sharing options...
MrJinje Posted February 24, 2010 Share Posted February 24, 2010 question. What software are you using to create your SFX file ? Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 WinRAR Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 24, 2010 Share Posted February 24, 2010 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. Link to comment Share on other sites More sharing options...
MrJinje Posted February 24, 2010 Share Posted February 24, 2010 Paste yur regedit command in the box "Run After Extraction" from section "Customize Basic Installer :" of this how to Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 (edited) 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, 2010 by Nic303 Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 24, 2010 Share Posted February 24, 2010 (edited) 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, 2010 by Sp0iLedBrAt Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 (edited) 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, 2010 by Nic303 Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 24, 2010 Share Posted February 24, 2010 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? Link to comment Share on other sites More sharing options...
Nic303 Posted February 24, 2010 Author Share Posted February 24, 2010 Nothing special.But i can't make .reg file to execute after installation. Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 25, 2010 Share Posted February 25, 2010 Which installation? of Windows? Link to comment Share on other sites More sharing options...
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