diff --git a/current/Install-WindowsService/Install-WindowsService.ps1 b/current/Install-WindowsService/Install-WindowsService.ps1 new file mode 100644 index 0000000..6f4a4b5 Binary files /dev/null and b/current/Install-WindowsService/Install-WindowsService.ps1 differ diff --git a/current/Install-WindowsService/Install-WindowsService_Caller.cmd b/current/Install-WindowsService/Install-WindowsService_Caller.cmd new file mode 100644 index 0000000..28315e4 --- /dev/null +++ b/current/Install-WindowsService/Install-WindowsService_Caller.cmd @@ -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 \ No newline at end of file diff --git a/current/Install-WindowsService/Install-WindowsService_History.txt b/current/Install-WindowsService/Install-WindowsService_History.txt new file mode 100644 index 0000000..7e72d6e --- /dev/null +++ b/current/Install-WindowsService/Install-WindowsService_History.txt @@ -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 +------------------------------------------------------------------------------- \ No newline at end of file diff --git a/current/Install-WindowsService/Install-WindowsService_Settings.ini b/current/Install-WindowsService/Install-WindowsService_Settings.ini new file mode 100644 index 0000000..d5db5e8 --- /dev/null +++ b/current/Install-WindowsService/Install-WindowsService_Settings.ini @@ -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\ # +# FailSafe Setting is: \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: # +# 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: # +# 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: # +# Set the absolut path the the service EXE: # +# Example: D:\ProgramFiles\DigitalData\ServiceNr1 # +#--------------------------------------------------------------------------------------------------# +# Third Parameter: # +# 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: # +# Set one of the following examples: # +# Example: Automatic # +# Example: Manual # +# Example: Disabled # +# Example: AutomaticDelayedStart # +#--------------------------------------------------------------------------------------------------# +# Fifth Parameter: # +# Set if the new installed service should start immediately after installation. # +# Example: InstallOnly # +# Example: InstallAndStart # +#--------------------------------------------------------------------------------------------------# +# Sixth Parameter: # +# Set the description of the service. # +# Example: This is a nice service which helps you with some stuff. # +#--------------------------------------------------------------------------------------------------# +# Seventh Parameter: # +# Set the username which should run this service. # +# Can only used in combination with . # +# 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: # +# Set the password which should run this service. # +# Can only used in combination with . # +# 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 \ No newline at end of file diff --git a/current/Install-WindowsService/Install-WindowsService_WindowsTaskScheduler.xml b/current/Install-WindowsService/Install-WindowsService_WindowsTaskScheduler.xml new file mode 100644 index 0000000..5f7155d Binary files /dev/null and b/current/Install-WindowsService/Install-WindowsService_WindowsTaskScheduler.xml differ