Edit the appsettings.json file, see app settings below.
Move the executable file to a directory which you want and will not be moved or deleted, for example C:\Program Files\LC\TencentCloudVPCTemplateUpdater\.
Put the appsettings.json file in the same directory as the executable file.
Open PowerShell or CMD as administrator in the directory, and run .\TencentCloudVPCTemplateUpdater.exe install to install the Windows service.
How to use (for Linux)
Clone and build it.
Edit the appsettings.json file, see app settings below.
Move the executable file to a directory which you want and will not be moved or deleted, for example /usr/local/bin/TencentCloudVPCTemplateUpdater.
Put the appsettings.json file in the same directory as the executable file.
Create a service by yourself, and run the executable file in the service.
Quick commands (only for Windows)
.\TencentCloudVPCTemplateUpdater.exe install - Install the Windows service (Administrator permission required).
.\TencentCloudVPCTemplateUpdater.exe uninstall - Uninstall the Windows service (Administrator permission required).
.\TencentCloudVPCTemplateUpdater.exe start - Start the Windows service (Administrator permission required).
.\TencentCloudVPCTemplateUpdater.exe stop - Stop the Windows service (Administrator permission required).
.\TencentCloudVPCTemplateUpdater.exe restart - Restart the Windows service (Administrator permission required).
.\TencentCloudVPCTemplateUpdater.exe status - Show the Windows service status (Administrator permission is not needed).
app settings
Key
Value
Secret:Id
TencentCloud SecretId
Secret:Key
TencentCloud SecretKey
Region
TencentCloud Region
TemplateIds:Mode
Templates updating mode
TemplateIds:Single
Template Id, for single mode
TemplateIds:V4
TemplateV4 Id, for multi mode
TemplateIds:V6
TemplateV6 Id, for multi mode
TemplateIds:Mode
Mode
Description
0
Single template, auto version (Recommended).
1
Multiple templates, auto version, keep the other.
2
Multiple templates, auto version, set the other loopback.