Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2008
    Posts
    5

    Windows Service Start Type

    I am using MSI Factory to install a Windows Service. By default, I want the service to install Disabled - which I have now and it is working fine. However, after the user installs my program, the service Startup Type may change to either Manual or Automatic based on the user's needs.

    So the problem is, when the user installs a new version of my software, it reinstalls the service and resets it back to Disabled. If the service is already installed, I'd like the Startup Type to remain unchanged.

    Any ideas how to make this happen?

    Thanks,
    James

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by jzild View Post
    So the problem is, when the user installs a new version of my software, it reinstalls the service and resets it back to Disabled. If the service is already installed, I'd like the Startup Type to remain unchanged.
    Are you using a bootstrapper or just running the .msi?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    I don't see a way to properly query the service through the built in MSI functions. This could be done through our lua script in the bootstrapper or through the Luascript DLL.

    Adam Kapilik

  4. #4
    Join Date
    Mar 2008
    Posts
    5
    I am using a Bootstrapper but just the standard one that gets built automatically to include the .NET framework download (no customizations).

    So if I did it through the Luascript DLL, I'm not sure what I'd have to do? The service files and the service itself are getting installed by the MSI so would I have to remove all that logic from the MSI and move it into the bootstrapper?

    Or would I just query the service via the bootstrapper and pass the result into the MSI via a parameter? If that was the case, I don't see any options for conditionally setting the Start Type, so how would I do that?

    Thoughts? Thanks for the replies guys.

    James

Similar Threads

  1. how to change the start type of a service
    By manolete111 in forum Setup Factory 7.0
    Replies: 1
    Last Post: 05-03-2008, 12:28 PM
  2. attempting to compare a variable with the contents of an array
    By Lucian Cain in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-17-2006, 03:10 PM
  3. Command: Stop Service & Start Service ???
    By linhardt in forum Setup Factory 6.0
    Replies: 3
    Last Post: 07-13-2004, 12:14 PM
  4. INFO: JET and MDAC (Complete) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:35 AM
  5. INFO: Setup Factory and the Windows Installer
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-22-2002, 10:38 AM

Posting Permissions

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