You are here

ClamWinPortable.exe vs. ClamWin.exe

7 posts / 0 new
Last post
lwc
Offline
Last seen: 2 weeks 20 hours ago
Translator
Joined: 2006-04-26 06:35
ClamWinPortable.exe vs. ClamWin.exe

Am I supposed to use ClamWinPortable.exe or is it nothing but a splash screen shortcut to ClamWin.exe? If not and I must use it, can I pass ClamWin.exe's command line parameters to it?

Thanks!

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
ClamWinPortable.exe

You are s'posed to use ClamWinPortable.exe, as it does launch ClamWin.exe, but it does various things to prep for it and clean up after it's done, as well as other usuability tweaks. For parameters, go copy Other\Source\ClamWinPortable.ini to the same directory as ClamWinPortable.exe, and in that file there's a line to put any paramaters called AdditionalParameters. The Other\Source\Readme.txt explains it too.

lwc
Offline
Last seen: 2 weeks 20 hours ago
Translator
Joined: 2006-04-26 06:35
Please allow supplying just certain INI settings

I see I can also use ClamWin.exe's command line parameters directly with ClamWinPortable.exe . Very nice.

But why can't I just set up some of the INI settings and use the defaults for others?

It would make sure I won't ever have to update the INI file if you ever release a new version with more/less/different INI settings.

For example, I just want it to have:
[ClamWinPortable]
DisableSplashScreen=true

But what happens is that it ignores the INI file completely unless I give up and hardcode the other settings too.

Most portable/semi-portable programs (e.g. VLC, DOSBox) just use defaults for everything that isn't mentioned specifically.

wk
wk's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2007-09-05 12:31
AFAIK that´s the design of the launcher...

but it´s said it will be changed within the newer ones, so just copy the whole .ini template from others/source and change the things you like to Wink

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Why Remove?

There's no need to remove the other lines. As wk said, it's the design of the launcher. All the other lines are the defaults as written in the code, so there's no problem just leaving them in there rather than doing a bunch of extra coding.

lwc
Offline
Last seen: 2 weeks 20 hours ago
Translator
Joined: 2006-04-26 06:35
It's not efficient

If in the future you'd add/remove/change even one line, than my whole INI file would be ignored.

But if you assume I want defaults for missing lines, my single aforementioned line will always work.

wk
wk's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2007-09-05 12:31
as I said..

this site is work in progress and , of course, you´re right. Using a single file is more convenient. But it´s much easier for non geeks changing the defaults when they know which codes can be changed and how to. So, the template is made for thousands of people who want to change some of the default settings. advanced users like you will know when coding has changed at last when the .ini won´t work any more..;)

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

Log in or register to post comments