Cześć,
podczas instalacji usługi za pomocą powershellowego skryptu wywala mi poniższy bład:
Sprawdzałem czy wywala jakieś błędy w Dzienniku zdarzeń systemu, nie ma żadnych :(
Oto skrypt do instalacji usługi:
Write-Output off
$PYTHONPATH=$args[0]
pip install pyserial
New-Item -Path 'C:\ComponentService' -ItemType Directory
Copy-Item -Path Drivers -Recurse C:\ComponentService
Copy-Item -Path nssm.exe -Destination C:\ComponentService\nssm.exe
C:\ComponentService\nssm.exe install ComponentDriverService $PYTHONPATH
C:\ComponentService\nssm.exe set ComponentDriverService AppDirectory C:\ComponentService\Drivers
C:\ComponentService\nssm.exe set ComponentDriverService AppParameters C:\ComponentService\Drivers\service_app.py
C:\ComponentService\nssm.exe set ComponentDriverService DisplayName ComponentDriverService
C:\ComponentService\nssm.exe set ComponentDriverService Description Driver for Posnet printer
C:\ComponentService\nssm.exe set ComponentDriverService Start SERVICE_DELAYED_AUTO_START
Write-Output ComponentDriverService created
Czy ktoś może wie jaka moze być przyczyta takiego działania?