私は Windows 8 を持っています。C# と Visual Studio 2013 で書かれた Windows アプリケーションがあり、このアプリケーションをインストールしたいと考えています。
コマンドプロンプト書き込みを開きます:
c:\..\instalutil.exe c:\projectfolder\filename.exe
このコードを実行すると、エラーが表示されます:
An exception occured during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied.
これは私のコンピューターですが、なぜアクセス権が必要なのかわからないのですか? そして、私は正しい特権を与える方法を知りません。
また、serviceProcessInstaller Account プロパティを LocalSystem に変更し、LocalService も試しましたが、どちらも同じエラーが発生します。
適切な特権を与えるにはどうすればよいですか?