VS 2010 (32 ビット) を使用して Windows サービスを開発しましたが、「任意の CPU」用にコンパイルしました。
必要な exe およびその他のファイルを Windows 2012 Server (Standard エディション - 64 ビット) に転送し、InstallUtil を使用してインストールしようとしています。
コマンドプロンプトのパスを「C:\Windows\Microsoft.NET\Framework64\v4.0.30319」に変更し、コマンドを実行しました
InstallUtil "D:\MyPath\MyService.exe"
しかし、インストールはエラーで失敗します
An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found,
but some or all event logs could not be searched.
Inaccessible logs: Security.
InstallUtil
管理者として実行してみました。サーバーに Visual Studio コマンド プロンプトがありません。
どうすればこれを解決できますか?