How to retain service settings through InstallShield upgrade install
Posted
by sjohnston
on Stack Overflow
See other posts from Stack Overflow
or by sjohnston
Published on 2010-05-24T21:36:49Z
Indexed on
2010/05/24
21:41 UTC
Read the original article
Hit count: 438
I have an InstallScript project in IS2010. It has a handful of services that get installed. Some are C++ exes and use the "InstallShield Object for NT Services". Others are Java apps installed as services with Java Service Wrapper through LaunchAppAndWait command line calls. Tomcat is also being installed as a service through a call to its service.bat.
When the installer runs in upgrade mode, the services are reinstalled, and the settings (auto vs. manual startup, restart on fail, log-on account, etc.) are reverted to the defaults.
I would like to save the service settings before the file transfer and then repopulate them afterward, but I haven't been able to find a good mechanism to do this. How can I save and restore the service settings?
© Stack Overflow or respective owner