Install-WindowsService: First Version
This commit is contained in:
parent
019c7d008d
commit
dc2562f8e6
BIN
current/Install-WindowsService/Install-WindowsService.ps1
Normal file
BIN
current/Install-WindowsService/Install-WindowsService.ps1
Normal file
Binary file not shown.
@ -0,0 +1,45 @@
|
||||
@ECHO OFF
|
||||
TITLE DIGITAL DATA - Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Batch Script
|
||||
ECHO Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Digital Data
|
||||
ECHO Ludwig-Rinn-Strasse 16
|
||||
ECHO 35452 Heuchelheim
|
||||
ECHO Tel.: 0641 / 202360
|
||||
ECHO E-Mail: info@didalog.de
|
||||
ECHO -
|
||||
ECHO Version 1.0.0.0
|
||||
ECHO Date: 13.08.2015
|
||||
ECHO -
|
||||
ECHO Program Startup %date% at %time:~0,8% oclock, on %computername%.
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ------------------------set variables-------------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
setlocal enableextensions
|
||||
|
||||
SET DIRECTORY="%cd%"
|
||||
SET FILEEXTENSION=*.ps1
|
||||
SET COUNT=0
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ---------------------Program 1 / Script 1---------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (ECHO %%f && set /a count+=1)
|
||||
ECHO -
|
||||
ECHO Found %count% File(s) with File Extension %FILEEXTENSION% in Directory:
|
||||
ECHO %DIRECTORY%.
|
||||
|
||||
ECHO -
|
||||
ECHO Running this/them now, with your permissions!
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (PowerShell.exe -Command "& {Start-Process 'C:\Program Files\PowerShell\7\pwsh.exe' -Verb runAs '-ExecutionPolicy Bypass -File "%%f"'}")
|
||||
|
||||
ECHO -
|
||||
ECHO This Window will close in:
|
||||
#timeout /T 10
|
||||
endlocal
|
||||
exit
|
||||
@ -0,0 +1,15 @@
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 21.11.2024
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-------------------------------------legend------------------------------------
|
||||
NEW: = Added a new functionality
|
||||
FIX: = Fixed a Issue with existing functionality
|
||||
CHG: = Changed a existing functionality
|
||||
REM: = Removed a functionality
|
||||
-------------------------------------------------------------------------------
|
||||
@ -0,0 +1,119 @@
|
||||
####################################################################################################
|
||||
# Digital Data Configuration File (Template Date: 30.07.2016) #
|
||||
# UTF-8 Coding required! #
|
||||
# incl. FailSafe functions that are active when information is missing. #
|
||||
####################################################################################################
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## General Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Path in which the log files will be stored. #
|
||||
# Example: E:\LogFiles\<ScriptName> #
|
||||
# FailSafe Setting is: <ScriptPath>\Logs #
|
||||
####################################################################################################
|
||||
LogPath =
|
||||
|
||||
####################################################################################################
|
||||
# Numerical value how long (in days) log files will be kept. ValidateRange is 0 - 1000 #
|
||||
# Setting the Value to 0 disables this Function. #
|
||||
# FailSafe Setting is: 60 #
|
||||
####################################################################################################
|
||||
LogFileKeepTime = 30
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Define Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
# UninstallServiceProfile | InstallServiceProfile #
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# UninstallServiceProfile #
|
||||
# This profile type stops and uninstalls existing services. #
|
||||
####################################################################################################
|
||||
# First Parameter: <ServiceName> #
|
||||
# Set the service name, you want to uninstall. #
|
||||
# Dont confuse name with display name! Check it via PS cmdlet "Get-Service" #
|
||||
# Example: DigitalDataServiceNr1 #
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# InstallServiceProfile #
|
||||
# This profile type installs or updates existing services and starts them if needed. #
|
||||
####################################################################################################
|
||||
# First Parameter: <ServiceDisplayName> #
|
||||
# Set the service display name, you want to install. #
|
||||
# In the background the display name will be used for the service name, by removeing blank in it. #
|
||||
# Example: Digital Data Service Nr1 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Second Parameter: <FullPathToEXE> #
|
||||
# Set the absolut path the the service EXE: #
|
||||
# Example: D:\ProgramFiles\DigitalData\ServiceNr1 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Third Parameter: <StartupParameter> #
|
||||
# Set a parameter which will be used by starting the service. #
|
||||
# Keep empty if no parameter is needed. #
|
||||
# Example: -k netsvcs #
|
||||
# Example: /debug #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Fourth Parameter: <StartupType> #
|
||||
# Set one of the following examples: #
|
||||
# Example: Automatic #
|
||||
# Example: Manual #
|
||||
# Example: Disabled #
|
||||
# Example: AutomaticDelayedStart #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Fifth Parameter: <Action> #
|
||||
# Set if the new installed service should start immediately after installation. #
|
||||
# Example: InstallOnly #
|
||||
# Example: InstallAndStart #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Sixth Parameter: <Description> #
|
||||
# Set the description of the service. #
|
||||
# Example: This is a nice service which helps you with some stuff. #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Seventh Parameter: <ServiceUserName> #
|
||||
# Set the username which should run this service. #
|
||||
# Can only used in combination with <ServiceUserPassword>. #
|
||||
# By keeping this parameter emtpy, the local system account will run the service. #
|
||||
# Example: UserAccount #
|
||||
# Example: Administrator #
|
||||
# Example: domain\UserAccount #
|
||||
# Example: domain\Administrator #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Eight Parameter: <ServiceUserPassword> #
|
||||
# Set the password which should run this service. #
|
||||
# Can only used in combination with <ServiceUserName>. #
|
||||
# By keeping this parameter emtpy, the local system account will run the service. #
|
||||
# Example: 12345 #
|
||||
# Example: password #
|
||||
# Example: securepassword #
|
||||
####################################################################################################
|
||||
|
||||
#UninstallServiceProfile = DigitalDataEB-Creator
|
||||
#UninstallServiceProfile = DigitalDataEmail-Profiler
|
||||
#UninstallServiceProfile = DigitalDataeInvoice-Parser
|
||||
#UninstallServiceProfile = DigitalDataJobRunner
|
||||
#UninstallServiceProfile = DigitalDataEmail-Service
|
||||
#UninstallServiceProfile = DigitalDataWM-ResultHandler
|
||||
#UninstallServiceProfile = DigitalDataEDMI-Service
|
||||
|
||||
InstallServiceProfile = Digital Data EB-Creator ; F:\ProgramFiles\Digital Data\DDEBCreator\SERVICE\EB_Creator.exe ; ; Manual ; InstallOnly ; Creates result reports for released documents. ; wisagservice.loc\svcEDMAdmin ; GnHAu9MC?3&6
|
||||
InstallServiceProfile = Digital Data Email-Profiler ; F:\ProgramFiles\Digital Data\DDEmailProfiler\SERVICE\EmailProfiler.Service.exe ; ; Manual ; InstallOnly ; Monitors email inboxes and processes incoming emails and their attachments.
|
||||
InstallServiceProfile = Digital Data eInvoice-Parser ; F:\ProgramFiles\Digital Data\DDZUGFeRDService\DDZUGFeRDService.exe ; ; Manual ; InstallOnly ; Validates electronic invoices and extracts data.
|
||||
InstallServiceProfile = Digital Data JobRunner ; F:\ProgramFiles\Digital Data\DDJobRunner\SERVICE\DigitalData.Services.JobRunner.exe ; ; Manual ; InstallOnly ; Executes defined and configured jobs to synchronize master and transaction data.
|
||||
InstallServiceProfile = Digital Data Email-Service ; F:\ProgramFiles\Digital Data\DDEmailService\SERVICE\DDEmailService.exe ; ; Manual ; InstallOnly ; Sends emails from the Digital Data email pool.
|
||||
#InstallServiceProfile = Digital Data WM-ResultHandler ; ; ; Manual ; InstallOnly ; Executes windream searches and processes the results according to profile specifications.
|
||||
#InstallServiceProfile = Digital Data EDMI-Service ; ; ; Manual ; InstallOnly ; Proxy Service for Digital Data Applications.
|
||||
|
||||
|
||||
#Example:
|
||||
#UninstallServiceProfile = MyNiceService
|
||||
|
||||
#InstallServiceProfile = My nice service ; D:\ProgramFiles\Myniceservice\program.exe ; ;Automatic ; InstallOnly ; This is a very nice service
|
||||
#InstallServiceProfile = My nice service ; D:\ProgramFiles\Myniceservice\program.exe ; -parameter1 ;Automatic ; InstallAndStart ; This is a very nice service ; domain\user ; password
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user