Jump to content

Kerio never installs! AAAGGGH!


Recommended Posts

I made a batch that installs Kerio perfectly, all versions, and included it in my RunOnceEx. Sadly though, the install seems to skip right through it on the installation and no firewall installs. Here's my batch; do you see anything wrong with it?

To clarify, I mean that the batch works only when I run in manually. It runs during RunOnceEx, but has no effect.

RunOnceEx:

REG ADD %KEY%\028 /VE /D "Installing Kerio Personal Firewall" /f
REG ADD %KEY%\028 /V 1 /D "install\kerio\kerio.cmd" /f

kerio.cmd:

@echo off
ECHO.
ECHO Installing ISScript10
ECHO Please wait...
start /wait ISScript10.Msi /qn
ECHO.
ECHO Installing Kerio Personal Firewall 4.1.1
ECHO Please wait...
start /wait kpf.msi /qn REBOOT=Suppress
ECHO.
ECHO Copying License file
ECHO Please wait...
MD "%programfiles%\Kerio\Personal Firewall 4\License"
Copy license.key "%programfiles%\Kerio\Personal Firewall 4\License"
exit

Link to comment
Share on other sites


I've notice some errors in your batch file

Copy license.key "%programfiles%\Kerio\Personal Firewall 4\License"

1. copy is an internal command, you should use xcopy instead, else precede the copy command with cmd /c

2. you also forgot to put a \ at the end of License (you want the license.key inside License directory, not copied over as License)

3. from my own experimentation, if you rename "Kerio Personal Firewall.msi" it might not work. Best to leave the filename as is.

For simplicity, try this.

REG ADD %KEY%\110 /VE /D "Kerio Personal Firewall" /f
REG ADD %KEY%\110 /V 1 /D "%systemdrive%\install\kerio\ISScript10.Msi /qn REBOOT=ReallySuppress" /f
REG ADD %KEY%\110 /V 2 /D "\"%systemdrive%\install\kerio\Kerio Personal Firewall.msi\" /qn REBOOT=ReallySuppress" /f
REG ADD %KEY%\110 /V 3 /D "xcopy /y %systemdrive%\install\kerio\license.key \"%ProgramFiles%\Kerio\Personal Firewall 4\License\\"" /f

Good luck.

Link to comment
Share on other sites

Except that ISScript10.Msi does not reboot a PC.
I don't remember if that is true or not, but even if it is true, leaving the switch in won't hurt him. ;)
Also, he should use MD to create "License" directory because it's not there yet.

no, the xcopy will create the directory even if it's not there already.

Link to comment
Share on other sites

no, the xcopy will create the directory even if it's not there already.

Really! Good to know. I never needed to use xcopy. B)

Also, he can pre-create it in $Progs\....... and put "license.key" there, too. :P

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...