Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


jadtunrau

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?

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post
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...