I made a few alterations to the ClamWin Portable script that gets downloaded during the WinBuilder update.
The problem was that if you didn't have it selected to Run from Ram then you couldn't run the internet updates or even change any of the settings. So, what I did was modify it so if you choose not to select "Run from Ram" it would put the db files on the RAM drive and edit a copy of the settings file in a ram location to adjust the settings to something that is useable.
Here's the new code:
CODE
[Process]
Echo,Processing %PName%...
If,NotExistFile,"%ScriptDir%\%OutDir%\%Executable%",run,%ScriptFile%,ExtractFiles
If,%pCheckBox1%,Equal,true,SET,"%DestDir%","Program#$sFiles\%OutDir%"
If,%pCheckBox1%,Equal,false,SET,"%DestDir%","Programs\%OutDir%"
If,%pCheckBox1%,Equal,true,SET,"%LinkDir%","%SystemDrive%\Program#$sFiles\%OutDir%"
If,%pCheckBox1%,Equal,false,SET,"%LinkDir%","y:\%OutDir%"
System,RefreshVars
DirMake,"%TargetDir%\%DestDir%"
DirCopy,"%ScriptDir%\%OutDir%\*.*","%TargetDir%\%DestDir%"
If,%pCheckBox1%,Equal,false,run,%ScriptFile%,MoveDB
TXTAddLine,%ES%,"!CD\%DestDir%\%Executable%,%ParentItem%\%PName%.lnk,!CD\%DestDir%","Append"
If,%pCheckBox2%,Equal,true,DirDelete,"%ScriptDir%\%OutDir%"
[MoveDB]
DirMake,"%TargetDir%\Program#$sFiles\ClamDB"
DirCopy,"%TargetDir%\%DestDir%\Data\DB\*.*","%TargetDir%\Program#$sFiles\ClamDB"
DirDelete,"%TargetDir%\%DestDir%\Data\DB"
DirMake,"%TargetDir%\Windows\System32\config\systemprofile\AppData"
DirMake,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming"
DirMake,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin"
FileCopy,"%TargetDir%\%DestDir%\App\clamwin\bin\ClamWin.conf","%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin\ClamWin.conf"
FileDelete,"%TargetDir%\%DestDir%\App\clamwin\bin\ClamWin.conf"
IniWrite,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin\ClamWin.conf","ClamAV","database","%SystemDrive%\Program#$sFiles\ClamDB"
IniWrite,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin\ClamWin.conf","ClamAV","logfile","%SystemDrive%\Program#$sFiles\ClamDB\ClamScanLog.txt"
IniWrite,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin\ClamWin.conf","Updates","dbupdatelogfile","%SystemDrive%\Program#$sFiles\ClamDB\ClamUpdateLog.txt"
IniWrite,"%TargetDir%\Windows\System32\config\systemprofile\AppData\Roaming\.clamwin\ClamWin.conf","ClamAV","quarantinedir","%SystemDrive%\Program#$sFiles\ClamDB\quarantine"
Note, I've only included the process section and the new section I added. If you copy and paste this over the existing process section it should work fine.