[Windows] Create a certbot renew scheduled task using the installer (#7371)

This PR implements the item "register a scheduled task for certificate renewal" from the list of requirements described in #7365.

This PR adds required instructions in the NSIS installer for Certbot to create a task, named "Certbot Renew Task" in the Windows Scheduler. This task is run twice a day, to execute the command certbot renew and keep the certificates up-to-date.

Uninstalling Certbot will also remove this scheduled task.

* Implementation

* Corrections

* Update template.nsi

* Improve scripts

* Add a random delay of 12 hours

* Synchronize template against default one in pynsist 2.4

* Clean config of scheduled task

* Install only in AllUsers mode

* Add comments

* Remove the logic of single user install
This commit is contained in:
Adrien Ferrand
2019-09-23 12:29:18 -07:00
committed by Brad Warren
parent 754c34c120
commit e402993c34
5 changed files with 290 additions and 3 deletions
+3
View File
@@ -53,6 +53,9 @@ pyasn1==0.1.9
pyasn1-modules==0.0.10
Pygments==2.2.0
pylint==1.9.4
# If pynsist version is upgraded, our NSIS template windows-installer/template.nsi
# must be upgraded if necessary using the new built-in one from pynsist.
pynsist==2.4
pytest==3.2.5
pytest-cov==2.5.1
pytest-forked==0.2