Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install windows service using batch file

@echo off

SET PROG="c:YourServiceLocationService.exe" SET FIRSTPART=%WINDIR%"Microsoft.NETFrameworkv" SET SECONDPART="InstallUtil.exe" SET DOTNETVER=4.0.30319 IF EXIST %FIRSTPART%%DOTNETVER%%SECONDPART% GOTO install

GOTO fail :install ECHO Found .NET Framework version %DOTNETVER% ECHO Installing service %PROG% %FIRSTPART%%DOTNETVER%%SECONDPART% %PROG% GOTO end :fail echo FAILURE -- Could not find .NET Framework install :param_error echo USAGE: installNETservie.bat [install type (I or U)] [application (.exe)] :end ECHO DONE!!! Pause
Comment

PREVIOUS NEXT
Code Example
Shell :: mac send email attachment command line 
Shell :: mariadb delete database 
Shell :: kubectl download 
Shell :: start redis ubuntu 
Shell :: Ansible gather facts with adhoc command 
Shell :: zsh mac vi 
Shell :: running file pug 
Shell :: conda install pyav 
Shell :: ping redis server 
Shell :: how to find the changes in git 
Shell :: create github repo without browser 
Shell :: git bad object 
Shell :: install balena etcher on manjaro linux 
Shell :: clone a repository 
Shell :: add stetho plugin ionic 
Shell :: Não foi possível encontrar o pacote youtube-to-mp3 
Shell :: bash keyboard shortcuts 
Shell :: git download a new branch 
Shell :: git view last commits 
Shell :: git push empty folders 
Shell :: registry open run 
Shell :: vue 3 qr code reader 
Shell :: free ram linux 
Shell :: boolean in shell script 
Shell :: how to unzip ubuntu 2004 
Shell :: git create branch from commit 
Shell :: which linux 
Shell :: check mtu size linux 
Shell :: xampp apachae not starting 
Shell :: gitignore generator201 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =