inutan
inutan

Reputation: 10888

Windows Service Installation Folder .Net

I have a windows service that is hosting a WCF Service Library. Corresponding to this windows service, I have a setup project.

I want to change the default installation folder of the service.
It's fine that I can change while running through the installation wizard.
But what settings I need to change at the project level?

Please guide!

Upvotes: 2

Views: 3163

Answers (1)

Petr Havlicek
Petr Havlicek

Reputation: 2131

you can can set installation folder in your setup folder where you put output from your service. There are predefined variables for system folders like [ProgramFilesFolder] or [WindowsVolume] which you can use to to construct your path.

alt text

Using Visual Studio you cann't use direct path. Instead of writing "c:\temp", you have to use some variables like [WindowsVolume]temp. You can bypass this using Orca which is editor for *.msi files. It is part of Windows SDK.

Locate CustomAction table and change DIRCA_TARGETDIR to whatever you want.

alt text

Hope this helps.

Upvotes: 3

Related Questions