Make a difference making singing Winrar-imsoft.cnblogs

Source: Internet
Author: User

For ease of use, we may make RAR compression packages into self-extracting files. WinRAR self-extracting module, although easy to use, but the uniform appearance looks really

Boring. In fact, as long as the simple transformation, you can make a unique, sensual and good winrar self-extracting interface, let your friends envy go.

Recognize the true colors of self-extracting modules

Enter the WinRAR installation path, you will see several suffixes called "SFX" files, they are winrar self-extracting module (Figure 1). Find "Default.sfx" and copy a

Backup so that it can be remedied after the operation has failed. You can change its suffix name to "EXE" and run it to see (Figure 2). Oddly enough, it looks like an ordinary winrar self-extracting

File. It is actually a shell used to wrap winrar compressed files, because it does not contain any files, so the "compressed file format is unknown or corrupted" is displayed. Now we should be clear

White, self-extracting file interface is determined by the "Default.sfx", the transformation of it can let self-extracting file makeover.

Figure 1:

Figure 2:

Since "Default.sfx" is an executable program, then the problem is simple, the common tools of Chinese software exescope and resource

Hacker can view and edit the resources of the executable program. With Resource

Hacker open, try to view its dialog resource, and get an error message (Figure 3). It seems that this file is compressed (also known as Packers). With Aspack, UPX, or

Pecompact and other tools software to compress exe files, will not affect its use, but can reduce the file volume, but also to avoid the file is cracked or resources are modified. I can't use Resource now.

Hacker look at the resources in "Default.sfx", that's the reason.

Figure 3:

Make a difference making a singing WinRAR (ii)

Since it is not possible to determine which software is being used for compression, it needs to be analyzed using the tool software Peid. Open "Default.sfx" with Peid and show that it has been compressed by the UPX tool

(Figure 4), so the first decompression (shelling), or it can not be modified. Open "Default.sfx" with UPX Shell (UPX

The shell is a graphical interface program for UPX, which makes it easy to invoke UPX to complete various operations) and chooses to decompress (Figure 5).

Figure 4:

Figure 5:

Make a difference making a singing WinRAR (iii)

Light makeup, makeover appearance

With Resource

Hacker opens the extracted "default.sfx" and now displays the resources correctly (Figure 6). Starting with the dialog box, you can see that each subkey contains 3 resources: "1028

"For Traditional Chinese resources," 1033 "for English resources," 2052 "for Simplified Chinese resources. In order to reduce the volume of self-extracting module, the use of traditional Chinese and English resources are all deleted. The same truth, useless traditional Chinese

Text and English string resources can also be excluded.

Figure 6:

Next, we start replacing the icons and bitmap resources. The icon resource is the icon that the self-extracting file displays in the Windows system, and the bitmap resource is displayed in the self-extracting

The main interface of the picture, we can find some favorite pictures and icons to replace the default resources. The image must be in BMP format (256 colors), size can be customized, but it is best not to exceed 400x227 or

227x400 pixels, otherwise it is prone to problems, while the icon is in ICO format, requires 4 styles (16x[email protected], 16x[email protected]

Color, 32x[email protected], and 32x[email protected] color). After you have these resources, open the "Default.sfx" file with Exescope, select the resources you want to replace, and click the "Import" button to replace them.

and confirm it when prompted to update the file (Figure 7).

Figure 7:

Easy Tips

The size of the bitmap resource affects the volume of the self-extracting module greatly, if the image of the self-extracting module is too large, the volume will be increased after the compressed file is converted to the self-extracting file, which will affect its practicability.

Below to see the dialog resources, press "F12" key to preview (Figure 8), you can confirm that "Asknextvol" is the sub-volume compression package decompression prompt, "GETPASSWORD1" for

Enter the decompression password, "Licensedlg" for the Installation Protocol dialog box, "Renamedlg" To rename the dialog box, "Replacefiledlg" for the Replace File dialog box, "Startdlg" for

Self-extracting module main interface. Obviously, what needs to be changed is "Startdlg" and "Licensedlg".

Figure 8:

Make a difference making singing WinRAR (Thu)

Select "Startdlg" To open the "dialog editor" by pressing the "F8" key. Click on the object element and adjust its size and position with the mouse's immediate action (Figure 9)

。 For finer adjustments, such as alignment, you can fill in the specific values directly above the right window of the Exescope. Text messages can also be modified directly in the title. In addition, I

You can also set the layout of the resources in them, if you don't want the text description part, just remove its visible properties (Figure 10).

Figure 9:

Figure 10:

In the process of modification, it is especially important to note that the size of the picture frame cannot be smaller than the bitmap resource set earlier, otherwise it will show incomplete and affect the overall effect. By the naked eye, the display is not

Exactly, is there a better way to solve this problem? The answer is yes. For example, the size of the bitmap is 176 pixels wide, 209 pixels high, divided by 1.5 after 117 and 140, directly in the

It is possible to set the size of the image object to 117x140 on the Exescope (Figure 11). When modifying dimensions, be aware of the type of object to avoid mistakes. Through constant modification, the self-extracting module

The interface has been refreshed (Figure 12). There are many similarities between "Licensedlg" and "Startdlg", but there are fewer object elements, so you can refer to "Startdlg" for modifications, which

Will not repeat. For style unification, it is recommended to use the same layout.

Figure 11:

Figure 12:

Make a difference making singing WinRAR (Fri)

At this point, the self-extracting module modification has been basically completed, in order to further highlight the personality, but also for self-extracting modules to mark the unique, such as home and e-mail messages. With Resource

Hacker Open the "default.sfx" file, right-click in the dialog resource "Startdlg" and select "Insert Control" (Figure 13). Click "Label" or from predefined controls

Select "STATIC" in the drop-down list and fill in the information that you want to display in the header location (Figure 14). If you have more than one line to add, adjust the size and position of the control, click "Compile Pin

button (Figure 15) to save the exit.

Figure 13:

Figure 14:

Figure 15:

Make a difference making a singing WinRAR (vi)

Next, start the test. The process is to place the self-extracting module in the WinRAR installation directory, and then create a self-extracting file to test whether the self-extracting module is working properly (Figure 16). Some

Case, the Resource

Hacker after saving the resource will be unable to use the problem, then simply delete the module to modify the problem, using its automatic backup module (default_original) before saving. SFX) after renaming

Re-modify it. After the test is satisfied, re-use UPX

The shell compresses the modified module. Generally speaking, the compression ratio can reach about 50%, the volume has been greatly reduced. Copy the compressed module again to the installation path of the WinRAR, if the test

No problem, congratulations, you're done (Figure 17).

Figure 16:

Easy Tips

Rename the modified self-extracting module to "Default.sfx", overwriting the file with the same name in the WinRAR installation directory, so that it can be used directly, reducing the selection

The process of module, streamline the operation step.

Make a difference making a singing WinRAR (vii)

Add music to the icing on the cake

The visual effect is complete, and the audio effect is added below. Find a suitable music file as the background music of the self-extracting file, the file format can be MP3, midi and so on. Test

Consider the size of the file, it is recommended to use the MIDI format, if you really want to use the MP3 format, it is best to extract a paragraph and reduce the bitrate to control the file volume.

  

Select the files and folders that need to be compressed, right-click to select "Add to Compressed File", in the popup dialog box, tick "create self-extracting format compressed file" (Figure 18), fill in

Click the "Self-extracting option" in the "advanced" page after a good file name. Switch to the text and icons page and fill in the following information in the text displayed in the self-extracting file window (Figure 19)

。 Because WinRAR's installation script supports some HTML formatting, this part of the content is treated as HTML.

┌───────────────────────────────┐

││

│ ... Here information can be customized ...

│ ... Fill in the appropriate information as needed ... │

││

└───────────────────────────────┘

Figure 18:

Figure 19:

where "EMBED

src= "Http://article.pchome.net/http://article.pchome.net/midi.mid" "Specifies the background music file name," autostart= "true" "means the music files are automatically played," Width "and" height "represent the width and height of the control Panel, both

Set to "0" will not display the playback control Panel, the overall aesthetic damage. After clicking "OK" two times, you can generate a self-extracting file.

Make a difference making a singing WinRAR (eight)

Then select the background music file "Http://article.pchome.net/http://article.pchome.net/midi.mid" and the self-extracting file you just generated, and package it again as a self-extracting file. First fill in the file name, click on the "Advanced" page

, on the General page, in the Run after decompression input box, fill in the self-extracting file name of the first package generated (Figure 20). On the "mode" page, tick "unpack

To the temporary folder "," Hide All "and" Overwrite all Files "three items (Figure 21), click the" OK "button two times to get the final self-extracting file (use this mode to be cautious

, some Trojans on the network are transmitted in this way).

Figure 20:

Figure 21:

Run the self-extracting file, wait a minute you will see our custom self-extracting interface, while beautiful background music from the speaker, make a self-extracting file such as

Friends, proudly tell them, "My WinRAR will sing!" ”

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.