MSFN Forum: Add WinRar SFX to context menu? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add WinRar SFX to context menu? Rate Topic: -----

#1 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 28 November 2004 - 03:09 AM

how can i do it?
so when i righclick a folder/files i can have an option to "Make SFX"

thanks :D


#2 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 28 November 2004 - 03:47 AM

MCT check your pm i sent u the solution already

REG ADD %KeREG ADD %Key%\160 /VE /D "Winrar 3.4" /f
REG ADD %Key%\160 /V 1 /D "%CDROM%\Software\WinRAR\wrar341.exe /S" /f
REG ADD %Key%\160 /V 2 /D "regedit /s %CDROM%\Software\WinRAR\winrar_settings.reg" /f


/S only works for the retail version and not the trial.

Attached File(s)



#3 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 28 November 2004 - 04:26 AM

thanks 4 the pm :)

but what u give didnt work, check pm

any other ideas anyone?

#4 User is offline   Tsunami 

  • Member
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 05-March 04

Posted 28 November 2004 - 04:57 AM

Sometimes I'm just amazed by myself :P It took a while to get the right command (although you'd probably figured it out yourself if you've checked WinRAR's help :)), but the registry tweak worked right away :D, so here it is:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\WinRAR.SFX]
@="Create &SFX Archive"

[HKEY_CLASSES_ROOT\Directory\shell\WinRAR.SFX\command]
@="WinRAR a -sfx \"%1.exe\" \"%1\""


1) Note that if you're using cascaded menu-items, you can't put it under that menu.
2) For some reason it will shorten some names. I can't find a pattern in it, because it will save "System Volume Information.exe" (25 chars long), but it won't save "Documents and Settings.exe" (22 chars long). I don't know if this is a WinRAR bug, or if it has something to do with my code.

#5 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,260
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 November 2004 - 07:40 AM

I haven't tried this, but ideally you'd want more switches, but even then, just about every time I make a winrar sfx, I need some different options ie: where to extract (full path, curr dir, temp dir, ...) and if to run an exe after. And there's obviously no way to make it guess what you want for you. Unless you just need some "make a basic sfx" (no comments or such in it), then sure, why not. And even then I'd add at least the switches for compression level and such. Either ways, making a sfx only takes an extra 2 clicks.

#6 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 29 November 2004 - 01:39 AM

hey :D

thanks 4 the -sfx switch, i must have looked over it lastnight when i read the help file :P

but, EVERYTIME i extract it, its wanting 2 make a folder DOCUME~1\Administrator\Desktop instead of adding the file to the desktop :S what am i missing? i believe ive looked @ all switches, its late & ive got done work not long ago, so im kinda tired, its probly something small on my part

EDIT: all i want this right click 4 is 2 hide all & overwrite all & 2 extract 2 current folder, i can always edit it manually if i need 2, this will be just a "shell" :)

thanks :D

#7 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 November 2004 - 10:21 AM

I think making a winrar compression profile is the best way to accomplish the above.

Here it is:
1. apply the HKCU registry file attached to this post (it modifies the default settings/profile of winrar).
2. that's all
a. now you just right-click on any set of files or folder
b. and choose "add to archive".
c. modify file-name.exe to what you want (if at all)
d. click "OK" in that dialog-box to create the SFX.

Do post back on the progress.

Attached File(s)



#8 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 30 November 2004 - 07:34 PM

hey :D

thanks prathapml that kinda helps :P

when i have this.. it adds ALL files when i rightclick a single file to "name.exe"
[HKEY_CLASSES_ROOT\*\Shell\Winrar SFX\Command]
@="WinRAR a -sfx \"%1.exe\"


but if i have this
[HKEY_CLASSES_ROOT\*\Shell\Winrar SFX\Command]
@="WinRAR a -sfx \"%1.exe\" \"%1\""


it ONLY adds the single file but extracts 2 a short foldername DOCUME~1\Administrator

any ideas how i can make it extract properly :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy