Jump to content

Recommended Posts

Posted

Hi all,

Been searching for a while now and found mixed information on what I'm trying to do. I'm trying to install Kerio PF 2.15 via RunOnceEx.cmd. Under the switch archive it gives a batch file example instead of RunOnceEx. In the batch file example it links to instructions on how to extract the setup.iss file and uses Kerio as the example except it is using a CD install.

The command it says to use is

start /wait %systemdrive%\install\Application\Application_name\Setup.exe -s

The command for a RunOnceEx.cmd from CD is

%KEY%\045 /VE /D "Kerio Personal Firewall 2.1.5" /f

REG ADD %KEY%\045 /V 1 /D "%CDROM%\apps\KPF\Setup.exe -s -f2\"%systemdrive%\kerio.log\"" /f

My questions are this:

Is the first example only for use with batch files?

The example for the CD RunOnceEx doesn't use a wait command so do I just use the second example for a folder install?

It says it must have a log file specified for CD install but does that hold true for a folder install?

Would the following work for what I want?

Extract the KPF2.15.exe to a root folder in my source folder named "Software"

Run setup.msi -R

Install KPF but don't reboot

Copy setup.iss from my windows folder to my "Software" folder.

Delete original KPF2.15.exe

Create the following RunOnceEx.cmd

---------------------------------------------------------------------------------------------------

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

%KEY%\005 /VE /D "Kerio Personal Firewall 2.1.5" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Software\KPF\Setup.exe -s -f2" /f

------------------------------------------------------------------------------------------------------

Sorry if I've overlooked something obvious but I'm not a programmer and realize that one misplaced variable can mess up everything. I got a little stumped with the start and wait commands used in the first example but not used for the CD install.

Any insight would be most appreciated.

Best Regards,

Eidolen


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...