在Windows Vista上安装Windows服务

时间:2022-03-14 22:44:33

Yes Vista sucks... I'm writing a Windows Service using .Net but getting security errors when trying to install with InstallUtil.exe.

是的Vista很糟糕......我正在使用.Net编写Windows服务但在尝试使用InstallUtil.exe安装时遇到安全错误。

How can I install the Windows Service successfully in Windows Vista?

如何在Windows Vista中成功安装Windows服务?

2 个解决方案

#1


Try running installutil.exe from an elevated cmd (search command prompt in start menu, right click, run as administrator).

尝试从提升的cmd运行installutil.exe(在开始菜单中搜索命令提示符,右键单击,以管理员身份运行)。

#2


  • Press the Start button
  • 按开始按钮

  • Type cmd in the search box
  • 在搜索框中键入cmd

  • When Command Shell comes up right click, select Run as Administrator
  • 右键单击Command Shell时,选择以管理员身份运行

Now you have command shell with full admin permissions. InstallUtil at will.

现在您拥有具有完全管理员权限的命令shell。 InstallUtil随意。

#1


Try running installutil.exe from an elevated cmd (search command prompt in start menu, right click, run as administrator).

尝试从提升的cmd运行installutil.exe(在开始菜单中搜索命令提示符,右键单击,以管理员身份运行)。

#2


  • Press the Start button
  • 按开始按钮

  • Type cmd in the search box
  • 在搜索框中键入cmd

  • When Command Shell comes up right click, select Run as Administrator
  • 右键单击Command Shell时,选择以管理员身份运行

Now you have command shell with full admin permissions. InstallUtil at will.

现在您拥有具有完全管理员权限的命令shell。 InstallUtil随意。