Sto provando ad installare un servizio Windows utilizzando un file batch, chiamiamolo "installservice.bat". All'interno del file che ho i seguenti comandi:Corretto il percorso di installazione nella sintassi del file?
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i ".\MyService.exe" pause
Quando ho excute il file batch (in esecuzione come amministratore su Vista) ottengo questo:
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..
Il servizio effettivo si trova in C: \ Services \ Servizio.exe. Quale dovrebbe essere la parte ". \ MyService.exe" affinché funzioni correttamente?
Grazie mille, non sapeva che avrebbe funzionato. –
in realtà ha funzionato per me. – lstanczyk