Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 247
user1207416 Avatar asked Feb 13 '12 18:02

user1207416


People also ask

Can WinRAR run EXE files?

You may get an error when attempting to open certain EXE files. You can try using a different archive program, such as WinRAR, but chances are you won't be able to open the file due to the way it was originally compiled.


1 Answers

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.

like image 110
Blorgbeard Avatar answered Sep 22 '22 15:09

Blorgbeard