简体   繁体   English

Inno Setup无法在Windows 7 64bit上安装服务

[英]Inno Setup doesn't install service on Windows 7 64bit

There is a service, I wrote on Visual Studio 2012(C#). 我在Visual Studio 2012(C#)上写了一项服务。 And I want Inno setup to install it. 我想要Inno安装程序来安装它。 I've add in Inno setup this script: 我在Inno安装程序中添加了以下脚本:

[Run]
Filename: {sys}\sc.exe; Parameters: "create ""FBA Service"" binPath=""{app}\FBA_Service.exe"""; WorkingDir: {sys}; StatusMsg: "Install Service"; Flags: ShellExec RunHidden;

On Windows 8, this works OK. 在Windows 8上,此方法正常。 But on Windows 7 64bit, it doesn't install my service. 但是在Windows 7 64bit上,它不会安装我的服务。 Help please, I don't know what's wrong. 请帮助,我不知道怎么了。

You are supposed to use installutil which locates in the .NET Framework installation folder, 您应该使用位于.NET Framework安装文件夹中的installutil,

%windir%\\Microsoft.NET\\v2.0. %windir%\\ Microsoft.NET \\ v2.0。 or v4.0. 或v4.0。 *** ***

http://msdn.microsoft.com/en-us/library/aa984379%28v=VS.71%29.aspx http://msdn.microsoft.com/zh-cn/library/aa984379%28v=VS.71%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM