Introduction and stuff
A while back I wrote a tutorial on how to right-click to extract a .rar archive in Windows 2000 & XP. Every now and then I receive an email asking how to make it work in Vista. You have three options to accomplish that:
  1. "Upgrade" to Windows XP
  2. Install 7-zip which gives you a full-blown UI
  3. If you really just want to right-click like in the other tutorial.. follow the convoluted steps below


Here we go..
Step #1: Download and install the free command line .rar extractor. Jump over to http://www.rarlab.com/rar_add.htm (link opens in new window) and look for something called "UnRAR for Windows". Download and install it. It will default the installation folder to "C:\Program Files\UnRar\".


Install unrar


Step #2: Right-click on a .rar file and select "Open". This only works if you don't already have an application registered to handle .rar files.

Open .rar file


Step #3: You should receive a message about not being able to open the file. Choose "Select a program from a list of installed programs" and hit "OK".

Vista dialog


Step #4: Click the "Browse" button on the next dialog.

Vista choose program dialog


Step #5: Navigate to the folder where UnRAR was installed ("C:\Program Files\UnRar\" unless you chose something different).

Browse to unrar.exe


Step #6: OK, this isn't really a step so much as a rant.. At this point UnRAR.exe is associated with .rar files, that's good. However UnRAR.exe takes an additional command-line argument that you need to set in the Folder Options, that's bad. In Windows 2000/XP you can go into the Folder Options and set this in about 5 seconds. In Vista they decided to either remove or completely hide this option. Even running Folder Options as an administrator doesn't show it.

Folder options - run as administrator


Step #7: So instead of getting a convenient dialog, you now have to take the much riskier approach of manually editing the registry. I suppose you can accidentally do some bad stuff in the old 2000/XP Folder Options dialog.. but it's nothing compared to what you can do in the registry. Anyway, you can try setting the shell options for UnRAR.exe but that appears to do nothing. 

Vista registry


Step #8: What does work is going to the HKEY_CLASSES_ROOT\rar_auto_file\shell\open\command key and changing it to "C:\Program Files\Unrar\UnRAR.exe" e %1. Exactly how it appears below:

HKEY_CLASSES_ROOT\rar_auto_file\shell\open\command


Step #9: Try opening the .rar file again and you should get a nice old-school dialog now.

unrar dialog






Support
Everything on this site is free. If you've found something here to be especially helpful or entertaining please consider making a small donation, this can be done through a secure PayPal transaction. Thanks for visiting my little web page!
Make a secure donation for any amount via PayPal.







Legal Notes


Unless otherwise noted, all content is copyright (c) 2008 Hugues Johnson and may not be redistributed in any form without express permission.

Windows is a registered trademark of Microsoft


index
feedback