我在 Visual Studio 2012(C#) 上写了一项服务。我希望 Inno setup 安装它。我在 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 上,它不会安装我的服务。请帮忙,我不知道怎么了。