How do I make a self-installing executable using WinRAR? [closed]
Asked Answered
P

1

14

I've seen executables that extract themselves and run a compressed setup.exe afterwards: a double click on the file uncompresses it and then runs the formerly compressed setup.exe.

How can I accomplish this? I would like to use WinRAR, how can I make a self-extracting executable that runs the compressed setup.exe after unpacking it to a temporary folder?

Pteropod answered 13/2, 2012 at 18:11 Comment(1)
I think this question may be more appropriate on superuser.com.Euraeurasia
D
17

New Archive, set to SFX mode. Go to Advanced tab, SFX Options button.

General tab, "Run after extraction" textbox. Enter your setup.exe, with relative path if any.

screenshot

Then go to Modes tab and set it to Temporary mode:

screenshot 2

It will not prompt the user if you leave the question fields blank, and you can make it silent with the radio buttons at the bottom.

Deboradeborah answered 13/2, 2012 at 18:16 Comment(1)
What about if I want to extract to C:\Program Files\e-Sword? - Where Program Files can be Archivos de Programa in spanish version of Windows XP.Bellaude

© 2022 - 2024 — McMap. All rights reserved.