【问题标题】:Free installer make it easy to install application as Windows services?免费安装程序可以轻松将应用程序安装为 Windows 服务?
【发布时间】: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..

【问题讨论】:

    标签: c# java .net c++ windows


    【解决方案1】:

    您可以尝试将NSIS 与NSIS UAC plug-in 一起使用,然后使用NsSCM 或类似名称。

    【讨论】:

    • 好建议!我从 Winamp 第一次发布就知道了,我从来不知道安装程序今天变得像 jQuery 一样成熟。
    猜你喜欢
    • 1970-01-01
    • 2013-08-14
    • 1970-01-01
    • 2013-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-02
    相关资源
    最近更新 更多