无法安装Windows服务 [英] Cant Install a windows service

查看:230
本文介绍了无法安装Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装一个用studio 2010编写的Windows服务vb



我已经查阅了至少10个教程并跟着每个教程。



1)我创建服务

2)我在项目中添加一个安装程序

3)我拖放serviceinstaller和将安装程序安装到安装程序上

4)我确保每个的父项是安装程序并更改服务和显示名称

5)我将运行方法更改为自动(我也试过手册)

6)构建结果很好



就服务代码而言,我有一个小任务为了它,但只是为了得到一个工作的服务,我现在什么都没有。虽然只是为了尝试一下,我试着写了一个文本文件,所以我可以看看它是否正常工作







现在我尝试安装它uning InstallUtil

这是3天的工作,只是安装基本服务。如果你有这样的问题请帮忙





这是日志

I am trying to install a windows service written in studio 2010 vb

I have looked up atleast 10 tutorials and followed each one.

1) I create a service
2) I add an Installer to the Project
3) I Drag and Drop the serviceinstaller and process installer on to the installer
4) I make sure the parent of each is the installer and change the service and display names
5) I change the run method to Automatic (I have tried manual as well)
6) Build comes out fine

As far as the service code, I had a small task for it to do but just to get a working service, I now have nothing. although just to try it, in 1 attempt I made it write a text file so I could see if it was working



Now I try to install it unsing InstallUtil
This is 3 days of working on just getting the basic service installed. Please help if you have had a problem like this


Here is the log

Installing assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Installing service BoastData...
Creating EventLog source BoastData in log Application...
Rolling back assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Restoring event log to previous state for source BoastData.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Installing service BoastData...
Creating EventLog source BoastData in log Application...
Rolling back assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Restoring event log to previous state for source BoastData.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Installing service BoastData...
Creating EventLog source BoastData in log Application...
Rolling back assembly 'c:\Test\BoastService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = c:\Test\BoastService.InstallLog
   assemblypath = c:\Test\BoastService.exe
Restoring event log to previous state for source BoastData.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

推荐答案

您是普通用户还是使用管理员级帐户?



您无法安装服务普通用户。
Are you a normal User or using an Admin level account?

You cant install a service as a normal User.


这篇关于无法安装Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆