[英]Inno Setup doesn't install service on Windows 7 64bit
我在Visual Studio 2012(C#)上寫了一項服務。 我想要Inno安裝程序來安裝它。 我在Inno安裝程序中添加了以下腳本:
[Run]
Filename: {sys}\sc.exe; Parameters: "create ""FBA Service"" binPath=""{app}\FBA_Service.exe"""; WorkingDir: {sys}; StatusMsg: "Install Service"; Flags: ShellExec RunHidden;
在Windows 8上,此方法正常。 但是在Windows 7 64bit上,它不會安裝我的服務。 請幫助,我不知道怎么了。
您應該使用位於.NET Framework安裝文件夾中的installutil,
%windir%\\ Microsoft.NET \\ v2.0。 或v4.0。 ***
http://msdn.microsoft.com/zh-cn/library/aa984379%28v=VS.71%29.aspx
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.