Easy MSI - A basic guide to Windows Installer

Click here to edit subtitle

Chapter 5 - Installing Windows Services (Download Solution)


Excercise 5.1: The ServiceInstall Table


In this exercise you will author the ServiceInstall table to install the Blaster Master Service.


Thus, open your blastermaster.msi with InstEd and add the following new record to the ServiceInstall table:

Column
 Value
 ServiceInstall
 BMService
 Name
 BMService
 DisplayName
 Blaster Master Service
 ServiceType
 0x00000110
 StartType
 0x00000002
 ErrorControl
 0x00000001
 LoadOrderGroup
 <null>
 Dependencies
 <null>
 StartName
 <null>
 Password
 <null>
 Arguments
 <null>
 Component_
 Comp_File_BMService.exe
 Description
 Blaster Master Service

Next modify the component of the file BMService.exe in the Component table to make this file the KeyPath of that component:

Column
 value
 Component
 Comp_File_BMService.exe
 ComponentId
 <GUID>
 Directory_
 TARGETDIR
 Attributes
 0x0000
 Condition
 <null>
 KeyPath
 File_BMService.exe

Excercise 5.2: The ServiceControl Table


In this exercise you will author the ServiceControl table to control the Blaster Master Service.


Thus, add the following new record to the ServiceControl table:

column
 value
 ServiceControl
 ControlBMService
 Name
 BMService
 Event
 0x0081
 Arguments
 <null>
 Wait
 0
 Component_
 Comp_File_BMService.exe