You are here

ClamWin: Bug in PCW launcher?

8 posts / 0 new
Last post
Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
ClamWin: Bug in PCW launcher?

Here's what my PortableClamWin.ini file looks like...

[PortableClamWin]
ClamWinDirectory=PortableClamWin Files\application\bin
DBDirectory=PortableClamWin Files\database
LogDirectory=PortableClamWin Files\logs
QuarantineDirectory=PortableClamWin Files\quarantine
ClamWinExecutable=ClamWin.exe
UpdateExecutable=freshclam.exe
AdditionalParameters=
WaitForClamWin=false
DisableSplashScreen=true

...and the actual locations of my files are as such:

Application: PortableClamWin Files\application\bin
Database: PortableClamWin Files\application\bin\PortableClamWin Files\database
Log: PortableClamWin Files\application\bin\PortableClamWin Files\logs
Quarantine: (don't know; no viruses that I can quarantine)

I'm guessing this is not the behavior you intended, right?

Jacoby
Offline
Last seen: 17 years 2 months ago
Joined: 2005-12-11 22:06
my guess would be that the

my guess would be that the application directory, listed first, is used as a root of sorts, and the subsequent locations are based within that root in the subsequent locations. it works for me at any rate, but i am just beginning to learn.

---
Posted in Mozilla PowerSkunk. Other Browsers run in fear!
(Brought to you by Firesomething.)

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
That's what it's doing, but...

I'm not so sure that's how it's supposed to work. None of John's other applications work that way.

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
Additionally...

I receive the following error when trying to initiate a scan on drive C:...

Could not start process:
"M:\Portable Applications\PortableClamWin Files\application\bin\" --tempdir "c:/docume~1/brucep~1/locals~1/temp" --max-ratio=0 --recursive --no-mail --infected --max-files=500 --max-space=10240 --max-recursion=5 --show-progress --stdout --database="PortableClamWin Files/database" --log="c:/docume~1/brucep~1/locals~1/temp/tmp-qhdwa" "C:/" --exclude="C:/WINDOWS/system32/config/default" --exclude="C:/WINDOWS/system32/config/SAM" --exclude="C:/WINDOWS/system32/config/SECURITY" --exclude="C:/WINDOWS/system32/config/software" --exclude="C:/WINDOWS/system32/config/software.alt" --exclude="C:/WINDOWS/system32/config/system" --exclude="C:/WINDOWS/system32/config/system.alt" --exclude="[^/]*\.dbx$" --exclude="[^/]*\.tbb$" --exclude="[^/]*\.pst$" --exclude="[^/]*\.dat$" --exclude="[^/]*\.log$" --exclude="[^/]*\.evt$" --exclude="[^/]*\.nsf$" --exclude="[^/]*\.ntf$" --exclude="[^/]*\.chm$"
Error: The system cannot find the path specified.

Apparently, it's trying to launch "M:\Portable Applications\PortableClamWin Files\application\bin\", i.e. the application directory, instead of an actual executable. I don't know whether this is a bug in ClamWin or the just in the portable edition, so I'm posting it here. Smile

Edit: Yep. It's a bug in the launcher. The launcher is setting the ClamScan location to ClamWinDirectory instead of ClamWinDirectory\clamscan.exe.

Edit Again: Figured this one out. The example INI is missing a line, specifically ScanExecutable=clamscan.exe. Once I added that, it worked fine.

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
There's a bug

I released it with 3 lines of old code that didn't get fixed. Try this:
https://portableapps.com/downloads/Portable_ClamWin_Launcher_1.1.4.2.zip

That launcher should do the trick. If it does, I'll just slip a revision 2 release of PCW out for folks that use the INIs.

Sometimes, the impossible can become possible, if you're awesome!

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
...

That fixed it. Thanks! You might want to add the missing ScanExecutable=clamscan.exe line to the sample .ini while you're at it. Doesn't work right without it--it tries to launch the application directory when you start a scan, ultimately meeting with failure. Smile

Jacoby
Offline
Last seen: 17 years 2 months ago
Joined: 2005-12-11 22:06
yeah my bad. i was using i

yeah my bad. i was using the one i made from a guide on clamwins site. didnt look closely at the pstart menu. Should have noticed no splashscreen.

I thought i deleted mine from the menu and deleted instead johns.

---
Posted in Mozilla PowerSkunk. Other Browsers run in fear!
(Brought to you by Firesomething.)

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Revision 2

I updated Portable ClamWin to Revision 2 and fixed these issues in the release version.

Sometimes, the impossible can become possible, if you're awesome!

Topic locked