R – Setup Project for Windows Service won’t build under Server 2008 (Visual Studio 2008)

buildvisual studiowindows-server-2008windows-services

We've got new machines here for doing development on running Server 2008.

With Visual Studio 2008 we're having problems building a Setup Project which installs the Windows Service – Under Custom Actions then Uninstall, "InstallerClass property is only valid for assemblies".

This builds and installs fine on XP SP3.

Has anybody else had any similar problems?

Workstation OS: Server 2008

Software: Visual Studio 2008

Best Answer

Make sure you add the service in the custom actions otherwise the service will not be registered. Other than that, are you having any compilation errors?