PDA

View Full Version : Service still registered - even without dependent feature



MarkDynna
09-18-2014, 10:03 AM
We found another one (looks that way anyway).

Our installer registers a Service on the target machine, but it should only do so if a particular feature is set to install. In SB, we set the Service to be dependent on the feature, since the exe that runs as the service is only installed if the feature is installed.

However, we've found that the service is still registered even when the feature is not installed. The service isn't running, and indeed cannot start since the exe that it needs isn't actually there - but I wasn't expecting the Service to be registered when the dependent feature isn't installed.

Is this a SB bug, or did I miss something in the setup?

linder
09-18-2014, 10:38 AM
Mark,

Can you send your project file (.sb8) to support [at] lindersoft [dot] com? We can then review your source code. Please also mention which Service file and Feature we have to check.

Friedrich

linder
09-19-2014, 07:17 AM
Mark,

IMO, it's caused by a SB compiler bug. We have opened a ticket.

Thank you for bringing this to our attention.

Friedrich

linder
09-20-2014, 04:50 AM
Fixed.

FIX : [SB#4-09181] The compiler did not generate the "Target Operation System" and "Feature" condition code for the "Create Service..." script function.

Friedrich