PortableApps.com Wins Big in the 2009 SourceForge Community Choice Awards and hits 100 million portable apps served!

how do I add right click integration

Submitted by PV_INC on January 8, 2009 - 5:07pm

hello,

I have portable clamwin 0.94.1rev2 installed as of today. I was curious how I set up right click integration with Windows XP? I don't see the option at all in the preferences and I've searched through the manual.

Thanks.


( categories: )

You don't

If you want right click intergration you should use the standard version of ClamWin

Tim

"freenode, it's Not as Free as it used to be, Free as in Freedom" Sad

maybe I still want to

Thanks for the reply.

Should I choose to do the least logical thing and want to use Portable Clamwin regardless of your advice, would I be able to do that? And if its possible, HOW?

Thanks

To have the right click

To have the right click integration/context menu requires ClamWin to create relationships with components of the host machine. This would break the portabaility of ClamWin and potentially result in negative affects on your machine. These could be caused by the machine trying to access ClamWin with the USB not plugged or simply because the Portable Launcher from which ClamWin is ran is designed to avoid creating such relationships.

If you want the context menus etc it would be much safer to download the regular version of ClamWin. It has the same basic functionality as ClamWin Portable though intergated features such as your looking for will be accessible. It is not recommended as a primary scanner though does make an excellent secondary. I would recommend Avast! as a good free primary scanner with real-time/on access protection.

"The key feature of developer days is flexibility; one day is as a thousand years, and a thousand years as one day - literally. And more often the former than the latter." Horusofoz and Chris Morgan

still don't know if it's possible

I appreciate the advice. However, I must insist on reasking my original question, again. If it's possible, how?

Thanks again.

I think the answer being

I think the answer being implied by not answering the question is that we don't know for sure.

If it's not already an option/preference built in to the app, it would involve manually editing the registry. I dont know what registry keys an installed version of ClamWin may create, so I can't provide the details as to what keys need to be added.

Sorry I don't have definitive answer.

One way that might help you find the keys needed would be in use RegShot to run 1st Shot, install the standard ClamWin, then run the 2nd shot, and check the log for changes containing "shell" or "shellex" in the registry path. Also you might have to register the ExpShell.dll (which doesn't appear to be included in the portable package), but if u install the standard to test the keys created, copy this file out before uninstalling the non-portable version.

The developer formerly known as ZGitRDun8705

You need to add a handler to the registry

either for the file types you are interested in, or for the default type ('*' I think) which adds a new action and defines it as being a call to ClamWinPortable with the appropriate parameters (whatever they may be).

However, you also need to remover this whenever the CWP isn't available.

I suspect that PortableFileAssociator (in development here) could do this for you, but without trying it I couldn't be sure.

Hope that helps

cmd

Hello,

my solution is a simple *.cmd batch file, its link resides in the windows 'send to' menu.

The batch looks like this:
@echo off
set portaDir=O:\tools\ClamWinPortable
: ----------------------------------------------------------
echo Scan starts in a second ...
start /min /d"%portaDir%" ClamWinPortable.exe --mode=scanner --path=%*

ciao
Xandl

Interesting,

Interesting,

It seems to work, could be very useful at times when you don't want to open CWP GUI and click thru to the path to get to one file.

Thanks Smiling
And Welcome to Portableapps.com

Tim

"freenode, it's Not as Free as it used to be, Free as in Freedom" Sad

mobile

Thanks for the welcome,

for portable usage, the %~dI syntax could be used like this:

@echo off
set driveLetter=%~d0
set portaDir=%driveLetter%\tools\ClamWinPortable
: ----------------------------------------------------------
echo Scan starts in a second ...
start /min /d"%portaDir%" ClamWinPortable.exe --mode=scanner --path=%*

ciao
Xandl

Thanks!

I had just about given up on this thread. That works great, thank you!

I use the registry as previously mentioned

If you touch a user's sendto folder, you might as well touch the registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Scan with ClamWin Free Antivirus\Command]
@="C:\\Program Files\\ClamWinPortable\\ClamWinPortable.exe --mode=scanner --path=%1 --close"

Or whatever your folder is.

But none of our solutions deals with the real problem: multiple checks when right clicking multiple files.

Try doing it to lots of files and you'll see what a big problem it is.

The original program uses a DLL that somehow adds multiple --path=

Can anyone come up with a way to do it without DLLs?