【发布时间】:2010-11-08 09:32:35
【问题描述】:
有没有免费的安装程序可以让用户无缝安装也可以安装Windows服务的软件?
有一些类似 sc.exe 的方法,但在 Windows Vista 和 7 中,它们默认被拒绝,除非用户授予自己管理员身份。
希望有一款软件可以让开发人员的生活更轻松。
我确实尝试了一个全面的教程,但最终在 W7 64 位上出现错误。不确定其他平台: http://www.switchonthecode.com/tutorials/creating-a-simple-windows-service-in-csharp
尝试了从 2.0 32/64 位到 4.0 的所有可用 .Net installutil,但未成功。我希望尽快为重大项目提供解决方案!
D:\install>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe setup
.exe
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///D:\inst
all\setup.exe' or one of its dependencies. The module was expected to contain an
assembly manifest..
【问题讨论】: