.bat
スクリプトをmy post-build event
call $(ProjectDir)scripts\install.bat
で実行するように設定していますが、このスクリプトを使用してローカルマシンにサービスをインストールしてください。ビルドイベント、スクリプト実行時のアクセス
cmd
とrun as administrator
を開くと、このスクリプトは機能しますが、正常に実行すると、cmd
は機能しません。私はcall $(ProjectDir)scripts\install.bat
をVisual Studioの管理者モードでpost-build event command line
または他の方法でスクリプトを実行して、通常のコマンドラインで実行します。
注:私はadministrador権限を持っている
ありがとう、これは動作します –