views:

271

answers:

4

Hey everybody

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

+1  A: 

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?

Otávio Décio
Sorry I've miss-directed people....its the Setup for the Windows Service that doesn't build.Ill edit the main post.
Gareth Evans
+1  A: 

I recommend against using the VS install project. Use Wix instead, it's easier than you think.

zvolkov
A: 

I did find this - http://msdn.microsoft.com/en-us/library/447a3y7x(VS.71).aspx

Ive made the changes to the Solution and now waiting for it to be tested on a Server 2008 machine - Im still on XP SP3.

Gareth Evans
A: 

I was getting this error when running commandline devenv.exe to build a .vdproj file (in Nant scripts). The problem was I was not also building the dependant project first, so once that was done it worked fine.

It had nothing to do with the configuration of the InstallerClass property after all.

CRice