Home Help Center

Problem about Ice::service class and Windows service with 3.5.1

Gu ShuwangGu Shuwang Member Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0
Hi,

We achieve a small problem while upgrading our Ice from 3.4.2 to 3.5.1.:)

We used Ice::service class in our project. When we install it as a Windows service, we can run as
myServiceExeName.exe --install
in command line with Ice 3.4.2.

But we can not do it with Ice 3.5.1.:eek:
We find some related function was removed from Ice source code.:(

P.S.
We used only basic Ice::service class, not include ice::Grid or other Ice service.

So,
1 how to install a Windows service with Ice 3.5.1? only iceserviceinstall?:confused:
2 is it true that "--install" can not be used with Ice 3.5.1 or later?

Thanks for help.:)

Gu.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Yes, the --install option isn't supported anymore with Ice 3.5. It was deprecated since Ice 3.3 and we decided to remove it in Ice 3.5. See Manually Installing a Service for information on how to install a service using Microsoft service control utility.

    Cheers,
    Benoit.
  • Gu ShuwangGu Shuwang Member Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0
    Thanks,
    bonoit

    We will think about using Manually Installing a Service.
    And if we only used Ice::service class, Can we use iceserviceinstaller?:confused:

    Gu.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    No, the iceserviceinstaller is designed only for installing the IceGrid registry, node or Glacier2 as services.

    For other services, we recommend using the Microsoft service control tool to install the service. Installing a service with this tool isn't a lot more complicated than using the deprecated --install option (and it's more flexible), see here for an example.

    Cheers,
    Benoit.
  • Gu ShuwangGu Shuwang Member Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0
    Thanks,
    benoit

    I will try it.:)

    Gu.
Sign In or Register to comment.