vasa911
vasa911

Reputation: 79

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.

Upvotes: 1

Views: 2959

Answers (1)

Lex Li
Lex Li

Reputation: 63298

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

Upvotes: 1

Related Questions