Groups | Blog | Home
all groups > dotnet setup > july 2004 >

dotnet setup : Manually installation works, but can't install window service from msi file


Linda Chen
7/9/2004 12:13:15 PM

Hi all,

I created a window service and am trying to create a
installation for it. This is what I did for that:

1. for the service design view, add installers from
properties page.

2. added display name and make sure the service name is
right. Changed the "account" for process installer
to "localsystem".

3. went to "File->Add" and added a new setup project to my
solution.

4. from "file stream" editor, select "Application Folder".

5. Added "primary output" as project output to the service
project. after this step, I saw all depedencies were
detected.

6. built my project and got a msi file.

7. ran msi file. After installation (it was successful),
could not my window service from my "Services" explore.
Checked the install destination folder, and found that all
dlls, exe were all there.

8. used installUtil.exe to install the window service
manually, worked.

Any idea?

Thanks. Linda Chen

Phil Wilson
7/9/2004 1:58:14 PM
You need custom actions in your setup project to install the Service - they
do the equivalent of InstallUtil. Go to the Custom Actions view, right click
on "Custom Actions" and point to your Service, it should add the 4 custom
actions for Install. Uninstall etc.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

AddThis Social Bookmark Button