[Klone-users] Remote installation of a Klone app
thomas fossati
tho at koanlogic.com
Tue Dec 2 15:01:47 EST 2008
Hi Alvaro,
On Dec 2, 2008, at 7:35 PM, Alvaro Pereira wrote:
> Hi,
>
> I would like your advise in the following matter:
> I have built my own Kloned.exe application that runs on Windows XP.
> I want to be able to install or upgrade it remotely. Let's say that
> I want to install Kloned.exe in PC1 from PC2, both of them running
> Windows XP. Ideally I would like to do this by running a script on
> PC2 that performs these steps:
>
> 1.- Connects to PC1.
> 2.- If there is a version of Klone already installed then the
> service is stopped.
> 3.- Kloned.exe is copied into the remote machine.
> 4.- If this is a first time installation then the service is
> installed.
> 5.- The service is configured to start automatically on boot up.
>
> I can perform this steps automatically and silently but never from
> the same machine. In this case I would like to run a single script
> in PC2 the installs my Klone app in a remote machine by remotely
> executing commands.
>
> How can I achieve this? Do you know of any tools, scripting
> languages or software packages / solutions that can perform this task?
I'm not a Windows user but I'll throw my 2 cents anyway :)
a) Use kloned itself to perform its upgrade by adding an
authenticated .kl1 that handles the file upload and installation logic
(unfortunately this solution can't handle first time install).
b) ssh/scp/sftp could be used to both upload the file and execute
commands remotely, so, e.g. using Cygwin bourne shell, you could
create your own upgrade protocol, e.g.:
PC2 # ssh PC2 check_installed_kloned.sh <kloned.exe.md5>
PC2 # [ $? -eq 0 ] && scp kloned.exe PC2:/upload/dir/
PC2 # [ $? -eq 0 ] && ssh PC2 install_and_restart_kloned.sh
Bye, t.
More information about the klone-users
mailing list