Jump to content
mooms

WinRAR AiO x86/x64 SFX & AddOn Maker

Recommended Posts

v2.5_test2:
 
What's new:

- If you have added some themes, the XP AddOn is executed at "RunOnceEx" (= after the first login) to allow the copy of the themes in the user folder. the media where the installer is stored (usually CD/DVD/USB) must be present at this time.

- If the "Themes" folder is empty, the XP AddOn is executed at T-13, like a regular SVCPACK AddOn.

 


 
WinRAR_SFX_Maker-v2.5_test2.7z
 

edit: see below for new version

Share this post


Link to post
Share on other sites

Sorry, I can't test it in XP. Maybe there are other users who can test it.

 

I'm wondering why are you renaming the files in the process? Can't you just use the files with their original downloaded names? They are named according with lang code appended except the english version.

 

Can you make it multilanguage? What if you put more languages in the binary folder? Will it pack them separately each languages or all together? If all together the installer will select the correct language for install according to system language?

 

For the final SFX name would be nice to name it as close as possible to original name. Something like SFX_AIO_WinRAR-501xx (xx=lang code).

Share this post


Link to post
Share on other sites

The icon/theme issue is one I've had for a loooong time. It's simply due to winrar not telling windows which icon to use until it's first opened.

It's worse than that Kel, we must select again the theme in WinRAR options, simply opening it don't do anything.

In Windows 7, UAC is triggered when WinRAR install a theme, but not when changing it, kinda weird.

 

I'm wondering why are you renaming the files in the process?

Renaming the original installer is needed to be executed silently by the SFX.

also respecting the old 8.3 convention is a good idea for XP.

The renaming was also made by older versions, but the final name or the SFX was static.

 

The naming we talk here is for the SFX and the AddOn (and ENTRIES_WinRAR.ini inside it).

 

It took me a certain time to properly extract the version and lang values. (I'm a beginner in the "art" of batching).

 

x86 are named this way: wrarVVVL.exe

x64 are named this way: winrar-x64-VVVL.exe

 We have two variables:

VVV is the version number, in (almost*) all versions it is three numbers without dots.

example WinRAR 5.01 is named 501, so I had to add the dot for correct naming.

(*some versions in version 5.00 and earlier had only 2 numbers for the version, in this case the renaming will fail, but it is only cosmetic. Versions 5.01 are all properly named so nothing to worry about.)

 

L is the language, between 0 (if English) and 6 letters. The maker will take up to 7 characters.

 

The maker will parse the two values and make like this: V.VV-L (notice the dot)

 

Can't you just use the files with their original downloaded names? They are named according with lang code appended except the english version.

I could have used the entire original name of the installer and rename the final SFX after it, maybe with SFX_ at the beginning, it would have been much simpler to do, but I think it is more elegant as it is now (and parsing the values is necessary to populate correctly the file ENTRIES_WinRAR.ini ).

 

For the final SFX name would be nice to name it as close as possible to original name. Something like SFX_AIO_WinRAR-501xx (xx=lang code).

You can change how the SFX & AddOn are named (like removing the "-" between the two variables) if you open the batch, search for these strings:

%VRS%-%LNG% and remove the "-" between the two variables.

You can replace by anything you want. (but don't mess with variables unless you know what you are doing)

 

Can you make it multilanguage? What if you put more languages in the binary folder? Will it pack them separately each languages or all together? If all together the installer will select the correct language for install according to system language?

All the content of the binary folder, except empty folders, is compressed and added to the SFX, the maker is designed this way.

 

In case of a single x86 installer, only version and lang values are in the name of the SFX & AddOn.

In case of a single x64 installer, "x64" is also added because of its incompatibility with  Windows 32 bits.

In case of both x86 & x64 installers, "AIO" is also added to reflect this.

In case of mixed language/version number in the AIO version, the higher version number is used, and the 32 bits language value is used.

If you put more than one x86 and/or one x64 version in the binary folder, only the first of each will be installed, because the renaming is done on the first matching name the batch will found.

If your installers are already renamed rar32.exe and/ or rar64.exe, the batch file will fall back to the "old way", SFX and AddOn will have generic names like in v2.3 and earlier. (no variables used except the date in ENTRIES_WinRAR.ini)

 

If the installer have some exotic names (or are really missing), the maker will exit with a text file popping up.

(try it, it is really cool, I'd "stolen" the idea from vmanda's Firefox maker :pirate: many thanks to him :thumbsup:  )

 

It should be possible to install the correct version accordingly to the language of the OS, but this suppose to rename each installer with correct LCID, and it will exponentially complicate the batch file and/or the sfx config.

It is way beyond the scope of this maker, and if someone will really need to do this, he must have the skills to do it itself.

 

 

They are named according with lang code appended except the english version.

I've realized when answering you that I forgotten to take care of the case of the English version, where the L value is missing.

It is now corrected with test3 (if L value is missing, it is set to "en")

WinRAR_SFX_Maker-v2.5_test3.7z

edit: link removed.

Share this post


Link to post
Share on other sites

Version 2.5 final released as and exe and as a batch.(if you want to know how it's done, or change some parameters)

Link in the first post.

 

What's new since version 2.2:

 

- RVMi/nLite AddOn is systematically created

- Adds the version number and language value in the name of the SFX & the AddOn (only works if installers have their original names, if not the maker will fallback to the "old way"

- adds the date, version number, and language value in the file ENTRIES_WinRAR.ini in the AddOn

- detects if you have put the x86, x64, or both setups and name the created files accordingly.

- Now the files are created in the output folder.

- If you have added some themes, the XP AddOn is executed at "RunOnceEx" (= after the first login)

to allow the copy of the themes in the user folder.

- If the "Themes" folder is empty, the XP AddOn is executed at T-13, like a regular SVCPACK AddOn.

Share this post


Link to post
Share on other sites

Hi, @mooms

Default theme feature is not working.

Sfx maker is only changes "winrar toolbar." Archive icons etc. be from "default winrar theme." :g:

Edited by oguz

Share this post


Link to post
Share on other sites

Not just the theme, the settings too.

 

They are ticked but not applied. You need to hit OK in Settings and allow to change only than they are applied.

Edited by ianymaty

Share this post


Link to post
Share on other sites

I don't think I can solve this, it's the way WinRAR is designed.

 

Maybe I should remove the reg import feature entirely to avoid confusion, what do you think ? or at least add a warning ?

Share this post


Link to post
Share on other sites

Update:

  • Updated 7za and the sfx module.
  • The setups are no longer renamed, the config file is now dynamically generated.
  • The Binary folder has been renamed to setup, so it's clearer.
  • Themes are now to be placed in the Themes folder.
  • The AddOn is no longer created by default. It is still possible to create it if desired.
  • Added error and success messages.
  • In-depth review of the script.
  • Removed the executable, the script is open source and I prefer.

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


×