简体   繁体   中英

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

There is a service, I wrote on Visual Studio 2012(C#). And I want Inno setup to install it. I've add in Inno setup this script:

[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. But on Windows 7 64bit, it doesn't install my service. Help please, I don't know what's wrong.

You are supposed to use installutil which locates in the .NET Framework installation folder,

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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