Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Service is not starting after install

There is a little problem in specific situation.

I have a service created by Visual Studio 2008 as ATL model service.
ATLService.png
ATLService.png (43.54 KiB) Viewed 3003 times
After install the service does not starting.
error.png
error.png (18.33 KiB) Viewed 3003 times
I investigate this problem and discovered that there is absence of the required registry entries.
ATL service model create RGS script which contains the entries.
In my case it looks like this:

Code: Select all

HKCR
{
	NoRemove AppID
	{
		'%APPID%' = s 'M3SAlarmRecv'
		'M3SAlarmRecv.EXE'
		{
			val AppID = s '%APPID%'
		}
	}
}
If I use command "M3SAlarmRecv.exe /Service" to register my service everything is OK.
Executing this command performs RGS script that creates the registry entries.

Can you do something to the AI works correctly with ATL service model?
I suggested that the AI looked into the resources of EXE file, found the RGS script, parse him and create registry entries in AIP file.

This is REG file which corresponds to the RGS script.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\AppID\M3SAlarmRecv.EXE]
"AppID"="{7559AC8D-BE8B-437B-9216-140626A607AC}"

[HKEY_CLASSES_ROOT\AppID\{7559AC8D-BE8B-437B-9216-140626A607AC}]
@="M3SAlarmRecv"
"LocalService"="M3SAlarmRecv"
Best regards
Marek
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Service is not starting after install

Hi Marek,

I have forwarded your request to our development team so they can review and consider it for a future version. In the meantime, as this is a particular case and has no native support in Windows Installer, it can be implemented with custom behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”