MCT Posted November 28, 2004 Posted November 28, 2004 how can i do it?so when i righclick a folder/files i can have an option to "Make SFX"thanks
Astalavista Posted November 28, 2004 Posted November 28, 2004 MCT check your pm i sent u the solution alreadyREG ADD %KeREG ADD %Key%\160 /VE /D "Winrar 3.4" /fREG ADD %Key%\160 /V 1 /D "%CDROM%\Software\WinRAR\wrar341.exe /S" /fREG 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.winrar_settings.reg
MCT Posted November 28, 2004 Author Posted November 28, 2004 thanks 4 the pm but what u give didnt work, check pmany other ideas anyone?
Tsunami Posted November 28, 2004 Posted November 28, 2004 Sometimes I'm just amazed by myself 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 , 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.
CoffeeFiend Posted November 28, 2004 Posted November 28, 2004 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.
MCT Posted November 29, 2004 Author Posted November 29, 2004 hey thanks 4 the -sfx switch, i must have looked over it lastnight when i read the help file 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 partEDIT: 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
prathapml Posted November 30, 2004 Posted November 30, 2004 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 folderb. 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.wrar_profile.reg
MCT Posted December 1, 2004 Author Posted December 1, 2004 hey thanks prathapml that kinda helps 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\Administratorany ideas how i can make it extract properly
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now