Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Customizing WinRAR SFX for customized installers

- - - - -

  • Please log in to reply
41 replies to this topic

#1
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
Hacking WinRAR SFX for customized installers - INTENDED FOR BEGINNERS


Introduction

Creating a customized look for your WinRAR SFX archives is a very easy task, but not all people know how to do it. A good example of a customized SFX is Nero. As we all know, Nero uses WinRAR to compress it’s setup files. But the SFX window has a Nero banner on it and the EXE has a custom Nero icon. So if you wan’t to create your custom installer of Nero (Please visit SiMoNsAyS' guide) and you still wan’t to make your installer look like the original, this is the best way to do it. But this is not just about Nero. You can do this if you wan’t to have a custom look on your repacked SFX’s.

This is what I’ve learned from my experience. If you have any suggestions or corrections, please let me know. In that way, you can help me learn from my mistakes, and discover new things. By the way, I would like to thank sixpack for giving me the idea of working with SFX files.


Things needed (ALL FREE/SHAREWARE)
  • Default.SFX (Download at the bottom of this page.)
  • ResHack
  • Nice icon
  • Banner (24bit bitmap, 93x302, and as small as possible)
Optional tools
  • PETITE – to compress the EXE OR UPX which has a better compression (Thanks to RyanVM for introducing UPX)
  • Axialis Icon Workshop – to edit your icons (you can use other softwares if you want)
Part I – Hacking the SFX file

1) Extract the file “Default.SFX from the original WinRAR installer and rename it to WHATEVER.SFX. Or if you have WinRAR installed on your system, you can get that file from your [INSTALLDIR]. Or you can just download the file at the bottom of this page. Just in case you don’t know, this file is actually an EXE with the .SFX extension. Please note that you CANNOT use the Default.SFX of a GUI patched version of WinRAR.

2) Open your SFX file with ResHack. Click “Action  Replace Icon” to replace the stock icon.

3) Do the same thing with the bitmap. Clck “Action  Replace Bitmap” and replace the default bitmap.

4) Save it, and you’re done.

Here are some pictures to help you follow the instructions if you are lost.

Posted Image




Part II – Compressing the EXE


You have to make your SFX file as small as possible. Because the bigger your SFX file, the bigger SFX archive you will have. But don’t worry. PETITE is the perfect tool that will help us make our SFX file smaller.

1) Run the file PETGUI.EXE and open your SFX file.

2) Uncheck “All non icon/version-info…”, check “Backup”, and set the compression to Level 9.

3) Click “Start”, and you’re done.

Posted Image



EDIT: UPX'S compression is better. Thanks to RyanVM.
Download UPX here: http://upx.sourceforge.net/

Usage:

UPX -k --best Default.SFX
The "-k and --best" switches are case sensitive.


Optional


If you have Axialis Icon Workshop or other icon editor software, you can use it to edit your icon file before using it to replace the default icon of the SFX file. This is another good way to make a small hacked SFX file. We only need the 48x48, 32x32, and 16x16 Windows XP and 256 color icons. You can safely delete all other icon files in you icon to make it smaller.


Test

After creating a hacked SFX file, you can test it by rename it to EXE. Rename your WHATEVER.SFX to WHATEVER.SFX.EXE, to see how nice your icon is, and run it.


Usage

Now, to use your customized SFX file, just copy it to your WinRAR’s [INSTALLDIR]. When you make an SFX archive, just select your SFX file in “Advanced  SFX Options  Module”. Or to make it simple, don’t rename the Default.SFX, and copy it over the original Default.SFX in your [INSTALLDIR].

Posted Image


Good luck, and have fun! B)


PS. I’m not good in graphics (especially Adobe Photoshop), so my banner really sucks. It would be nice if someone can help me make a good one. :lol:

And please, don't ask me how to change the GUI of WinRAR, because I don't know how. Hmm.. Maybe I do.. But I'm not good in graphix! :lol:

Attached Files


Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD


How to remove advertisement from MSFN

#2
RyanVM

RyanVM

    Like a big surly teddy bear.

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,661 posts
  • Joined 31-August 03
How does Petite compression compare to UPX?
RyanVM MSFN Files | RyanVM Forums
Please do not link directly to files on my site or modify/redistribute them without getting my permission first. Link to the above URL instead.
Current Update Pack Release: 2.2.2
(Released April 28, 2008)

BTW, 90% of what I say is kidding around. Don't take things so personally ;)

#3
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
  • Joined 02-December 03
:thumbup

good work on your first guide.

#4
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04

How does Petite compression compare to UPX?

Hmm.. I'm not sure. I saw UPX but I haven't tried it yet. :P
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#5
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04

:thumbup

good work on your first guide.

Thanks buddy. :D Any suggestions? Hey, don't be cruel on me. This is my first time! :lol:
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#6
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
  • Joined 02-December 03
Can u pls make a guide on how to change the icons for the toolbar of Winrar.

#7
RyanVM

RyanVM

    Like a big surly teddy bear.

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,661 posts
  • Joined 31-August 03

How does Petite compression compare to UPX?

Hmm.. I'm not sure. I saw UPX but I haven't tried it yet. :P

Give it a shot and let me know. The syntax is easy:
upx file.xyz

Attached Files

  • Attached File  upx.zip   121.32KB   138 downloads

RyanVM MSFN Files | RyanVM Forums
Please do not link directly to files on my site or modify/redistribute them without getting my permission first. Link to the above URL instead.
Current Update Pack Release: 2.2.2
(Released April 28, 2008)

BTW, 90% of what I say is kidding around. Don't take things so personally ;)

#8
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04

I dont understand english very well can u translate that into Tagalog and Chinese for me. LOL

Hahaha!! Do you want a PDF for the Tagalog version? Hahaha!! :lol:

@RyanVM
I'm gonna try it. :)
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#9
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
@RyanVM

UPX's compression is better. I will update my first post. Thanks. :thumbup

UPX -k --best DEFAULT.SFX
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#10
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
  • Joined 02-December 03
ok i removed my 128 x 128

it is now 30kb

Posted Image

Attached Files



#11
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
That is a huge icon. I sugest deleting the other icon files inside your icon. Especially the 128x128. That costs a lot of space.

If you use PETITE, the icon is not included in the compression. (I'm guessing :P )
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#12
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
I don't know how to change the GUI of WinRAR.. Sorry Astalavista. :D
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#13
SiMoNsAyS

SiMoNsAyS

    C'mon you apes! You wanna live forever!?

  • Patrons
  • 3,455 posts
  • Joined 17-May 04
really nice @totoymola ;)

ps: for upx i use
UPX.EXE -k --best --crp-ms=999999 --force "yourfile"
case sensitive!, but it lefts the same sizes as the original exe... am i missing something?

edit: tested and working now smaller sizes :thumbup

Edited by SiMoNsAyS, 03 January 2005 - 04:42 AM.


#14
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
Hello Simon!

I tried your command, and it worked. Did you hit "refresh" after the compression? :P
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#15
SiMoNsAyS

SiMoNsAyS

    C'mon you apes! You wanna live forever!?

  • Patrons
  • 3,455 posts
  • Joined 17-May 04

Hello Simon!

I tried your command, and it worked.  Did you hit "refresh" after the compression?  :P

really lol, maybe is stupid but... no :blushing:

sometimes we miss the easiest solutions :P

#16
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
Hahaha!! :lol: It's alright buddy. It happens to me too all the time. :P
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#17
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
This is for NERO.

Posted Image

Posted Image

Attached Files

  • Attached File  NERO.SFX   115.5KB   197 downloads

Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#18
sixpack

sixpack

    Senior Member

  • Member
  • PipPipPipPip
  • 515 posts
  • Joined 29-May 04
Nice Guide indeed ;)
Never say, "Oops!" always say, "Ah, interesting!"

#19
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
  • Joined 02-December 03
Posted Image

Posted Image

Attached Files



#20
MCT

MCT

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,291 posts
  • Joined 19-May 04
  • OS:none specified
  • Country: Country Flag
sweet a** icon :D
the bug is a bit much IMO :P
Posted Image Posted Image
Windows 7 32Bit 2GB Ram 120GB HDD (Laptop), Windows 8 4GB Ram 1TB HDD (Desktop) Windows XP SP3 VM with enhancements!

#21
totoymola

totoymola

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 24-September 04
This is for YanicSoft WinXP Manager.

Posted Image

Posted Image
Picasa2 MSI ----------- ResEdit MSI
DOWNLOAD ------------ DOWNLOAD

#22
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
  • Joined 02-December 03
I also hacked the default RAR file icon. I can't post it here since it looks like the head of G. Bush on a platter. I found the icon at a Muslim website.

Posted Image

#23
1chaoticadult

1chaoticadult

    A Part of a Dying Breed...

  • Member
  • PipPipPipPip
  • 669 posts
  • Joined 31-August 03
@Astalavista

I've been doing this lately, editing WinRAR SFX for different programs I install.

#24
`Felix`

`Felix`

    MSFN Contributor

  • Member
  • PipPipPip
  • 481 posts
  • Joined 28-July 04
Hi there all,

Am having a little problem that i hope you may be able to help me with.

After following the steps i can't see an icon even when i change the whatever.sfx to whatever.exe... if i open the updated whatever.sfx file again in reshack and try to view the icon group i get the following error message:

this file has a non-standard resource layout...
it probably has been compressed with and "EXE Compressor"

I have not yet compressed the files.

Anyone got any ideas? I am using version 3.4.0.79 of reshack
"I seek not to know all the answers, but to understand the questions."
- Kwai Chang Caine.


Want to setup your default user/all users unattended install easy? - Simplify iT - GuidesCheers,
FeLiX

#25
goboeloscuro

goboeloscuro
  • Member
  • 1 posts
  • Joined 30-January 05
thanks... very useful




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN