Estoy tratando de instalar un servicio de Windows usando un archivo por lotes, llamémoslo "installservice.bat". Dentro del archivo que tengo los siguientes comandos:Correcto InstallUtil Path To File Sintaxis?
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i ".\MyService.exe" pause
Cuando excute el archivo por lotes (que se ejecuta como administrador en Vista) me sale esto:
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..
el servicio propiamente dicho se encuentra en C: \ Servicios \ MyService.exe. ¿Qué debería ser la parte ". \ MyService.exe" para que funcione correctamente?
Muchas gracias, no sabía que iba a funcionar. –
realmente funcionó para mí. – lstanczyk