-
Download 'MicrotingService' from GitHub ('https://github.com/microting/eform-windows-service')
-
Compile the project using Visual Studio
-
Run the 'MicrotingServiceInstaller' program ('MicrotingServiceInstaller.exe')
-
Check 'settings' in both databases. Likely no changes needed
-
Copy the compiled files to 'c:/microtingservice/[name of the service, of your choice]'
- for this sample 'Microting', so the resulting folder would be 'c:/microtingservice/microting'
- this location can be altered, by changing the source code - this is not adwised or covered
-
In that folder create the following folders:
- log
- input
-
Create in the input folder a fil called 'sql_connection_sdkCore.txt' containing the SDK's database connection string
- the SDK's database needs to be primed and configed correct per your needs
-
IF you want to use the Outlook module, also create in the input folder a fil called 'sql_connection_outlook.txt' containing the Outlook's database connection string
- the Outlook's database needs to be primed and configed correct per your needs
-
Open a command prompt with admin rights
-
Navigate to the location of 'InstallUtil.exe', usually found here:
cd C:/Windows/Microsoft.NET/Framework/v4.0.30319
- Use the following command to install the service:
InstallUtil.exe /servicename="Microting" C:/MicrotingService/Microting/MicrotingService.exe
- if other service name used:
InstallUtil.exe /servicename="[service name]" C:/MicrotingService/[service name]/MicrotingService.exe
-
Enter the name of the username and password of the user the service is going to be running as. IMPORTANT that this user has the needed rights
- Tip: to see current users username - use 'whoami' in the command prompt
-
Open Windows services, and start the service
!!! LOG !!!
- In the log folder you can find the service's log. The log from the SDK and Outlook can be found in their own databases
!!! DEBUGGING !!!
- If you want to the service to start Visual Studio debugging, at the start of the service. Create in the input folder a fil called 'debug.txt'
!!! UNINSTALL !!! - You can uninstall by using the following command:
InstallUtil.exe /servicename="Microting" C:\MicrotingService\Microting\MicrotingService.exe -u
!!! Installer Building !!!
- Build service code
- In case if you modified installer CustomAction project build it
- Build AllowMultipleVersionProject
- Build or Rebuild Installer - it is impotant that this project should be built last( Wix toolset is required - http://wixtoolset.org/)