-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer disables OpenVPNService #348
Comments
This is likely due to this code:
This custom action sets start mode and starts/stops the service. For new installation start mode is set to Apparently this condition got confused by installation of the same version, and this action is not executed:
I am not too much into AD group policy but I wonder how MSI allows you to install the same version of the product? |
No tuning, clean OS, clean Active Directory, a test enviroment specifically for OpenVPN. |
We set interactive service state unconditionally, and openvpn service uses custom action, which in your case is not run. I need to tune condition a bit so that it will run on install and reinstall too. |
We configure openvpn service (set startup mode and run, if needed) only on installation or upgrade. This is achieved by running configuration custom action with "NOT Installed" condition. However the product may be reinstalled (even though we disable it in UI), for example when pushed via AD Group Policy or with command line msiexec /fomusv "OpenVPN-2.6.2-I001-amd64.msi" /L*V reinstall.log In this case OpenVPN service status is set to "disabled", since our configuration custom action won't be run. Fix by changing action condition to NOT REMOVE, which covers both install/upgrade and reinstall cases. Fixes OpenVPN#348 Change-Id: I92974dea4749c415e25ab0f804050e3e6d309ffc Signed-off-by: Lev Stipakov <[email protected]>
Describe the bug
When distributing OpenVPN through Active Directory group policies, if this version has already been manually installed on the computer, the installer disables the OpenVPNService service.
This only happens if there is an exact version match. If you manually install 2.6.1, use VPN to get in touch with a domain controller, add a workstation to the domain and deploy version 2.6.2 through policies, everything will be fine.
To Reproduce
Expected behavior
OpenVPNService must not be set to disabled
Version information (please complete the following information):
Additional context
MSI log:
MSI3174.LOG
Attracted attention two strings:
Apparently the installer gives the wrong StartType for OpenVPNService. At the same time, there is no error with OpenVPNServiceInteractive, the problem is only with OpenVPNService.
The text was updated successfully, but these errors were encountered: