Page 2 of 2 FirstFirst 12
Results 6 to 10 of 10

Thread: Install windows service

  1. #6
    Join Date
    Jan 2008
    Posts
    3

    customizing service properties

    The Component Wizard process you mentioned, does it allow you to customize or set some of the service properties. In particular, I would like to set the Startup Type to Manual, and the Log on as: Local System Account (Log On tab). If not, could you suggest another solution to my problem. Thanks.

    As far as starting the service, I'm using a batch file with DOS command-line commands to start the service, and then letting InstallShield run the batch file.

    Roy

  2. #7
    Join Date
    Oct 2009
    Posts
    4
    I need to do the same but with an InstallScript project. The Component Wizard does not exist for these projects. How would I accomplish this?

  3. #8
    Join Date
    Jan 2004
    Posts
    1,856
    In an InstallScript project, you would need to use the Objects view to add the NT Service object to your project. You can download this object from the following page:
    http://www.flexerasoftware.com/produ...-utilities.htm

    (Click the 2008 tab on that page. Then download and install the item called InstallShield 2008 InstallScript Objects. When you do that, the NT Service object will be available in the Objects view.)
    Debbie Urman - Staff Technical Writer - Flexera Software: InstallShield/InstallAnywhere

  4. #9
    Join Date
    Aug 2008
    Posts
    173
    I want to install a service in my installer.

    My installer also does Major Upgrades so when doing an upgrade I would want to stop the service and remove the previous one and install the new one. Also after the install, I want to start the service.

    For this, will I have to create 2 components:
    • An Install Service component to install the service
    • A Control Service that starts the service during install; stops and removes the service during uninstall.


    I assume I dont have to worry about sequencing here to make sure Control Service is executed after the Install Service to make sure it doesnt attempt to start a service that is not available yet. I assume stopping and removal are likewise taken care by the Windows Installer standard actions (like StartServices, StopServices) in the correct order.

    So I would appreciate if somebody can comment on my approach here.

    Thanks.

  5. #10
    Join Date
    Jul 2011
    Posts
    5
    Hi. What I need is the user can choose between options presented by the components wizard (automatically start or disabled, error control, local system account or another account), how could I solve my problem with a basic msi project? Thanks.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •