Jump to content

Using Winrar for silent install


Recommended Posts

I just learned how to use Winrar to pack files as an SFX to create a silent installer. However, I would like the installer to move a file or two during installation. In other words I would like to have example.dll to be overwritten with example.dll from another folder. I couldn't figure out how to do this with Winrar. Do I need to use something different?

Link to comment
Share on other sites


Right click .dll, add to archive, click make sfx archive, go to comment tab, add this:

;SFX

Path=%systemdrive%\windows
SavePath
Silent=1
Overwrite=1

Change path to the folder where the .dll you want to override is located.

Link to comment
Share on other sites

Right click .dll, add to archive, click make sfx archive, go to comment tab, add this:

;SFX

Path=%systemdrive%\windows
SavePath
Silent=1
Overwrite=1

Change path to the folder where the .dll you want to override is located.

Ok, I understand. But what if I want winrar to run an installer, and then overwrite a file in the program file directory. For example, I want the sfx to run example.exe and then after installation to copy/overwrite example.dll to C:\Program Files\Example Program.

Link to comment
Share on other sites

Various indirect options are available with this kind of installtion via WINRAR

1) use 2 winrar exe. 1 for setup, 2nd for override only, like Raoul90 comment example

2) Use a batch file to control/install. But you will get console window open during installation.

I generally use hstart.exe to hide the console to achieve fully silent effect

3) Use Autoit with WinRAR

The above can be achieve using an alternative good tool (it's a console tool):

7z SFX Modified Module and Tools

Hope that helps...

Link to comment
Share on other sites

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...