Jump to content

Recommended Posts

Posted (edited)

I want to run a .reg file from SFX, after installation, without confirmation.

This can be done with a batch?

Edited by Nic303

Posted

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 commands

Setup=regedit /s NameOfYourRegFile.reg

TempMode

Silent=1

Overwrite=1

click OK to create the SFX and test it.

Posted (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 commands

Setup=regedit /s NameOfYourRegFile.reg

TempMode

Silent=1

Overwrite=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 to

I tried with this command: regedit /s MYREG.reg ... still not working.

Edited by Nic303
Posted (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 by Sp0iLedBrAt
Posted (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 by Nic303
Posted

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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...