Assume a programs installed previously a window service.
Is there way to backup this service (and all depending DLLs, config files),
then copy it to another computer and re-install it there again?
Of cause without using the original installation software.
Hi Karl,
in general: No, you cannot do this. Not easily anyway.
Most software for Windows is installed by running an setup or installer
program. The built-in installer for Windows is msiexec.exe, but there
are other setup programs out there as well.
Typically these installers read their instructions from a data file
(maybe a *.inf text file, or other data file); which describes what
executable files to copy to what locations, what Registry entries to
make, checks for dependencies, what permissions to set, what Performance
counters to configure, etc.
In theory, if you can find and parse the inf file which the service's
setup uses, you could try to repeat all the same steps manually. The
installer doesn't perform operations which can't also be performed
manually by an interactive administrator. Except - the steps may be very
complex, and any slight mistake could cause errors, especially subtle
and hard-to-diagnose ones. That's why it is semi-automated in a setup
program, in the first place.
(there's also the issue that commercial software is usually licensed to
run on a single machine, so copying to another machine may be violating
the licence. But I'm only addressing the technical aspect, for now).
What form the installer's data (eg an inf file or similar) takes, and
how you locate and parse it, will depend on what kind of software was
used to install the service.
Probably not the info you wanted, but I hope it helps. Other folks may
have additional ideas.
Andrew