Tôi đang cố gắng cài đặt một Dịch vụ Windows bằng cách sử dụng một tập tin thực thi, hãy gọi nó là "Installservice.bat". Bên trong tập tin tôi có các lệnh sau:Chính xác InstallUtil đường dẫn đến tệp cú pháp?
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i ".\MyService.exe" pause
Khi tôi thực thi các tập tin thực thi (chạy as administrator trên Vista) Tôi có được điều này:
Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Win dows\system32\MyService.exe' or one of its dependencies. The system cannot f ind the file specified..
Các dịch vụ thực tế được đặt tại C: \ Services \ MyService.exe. Phần ". \ MyService.exe" nên làm gì để hoạt động đúng?
Cảm ơn rất nhiều, không biết rằng sẽ làm việc. –
nó thực sự làm việc cho tôi. – lstanczyk