Skip to content
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

msi: configure OpenVPN Service also on reinstall #349

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

lstipakov
Copy link
Member

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 #348

Change-Id: I92974dea4749c415e25ab0f804050e3e6d309ffc

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]>
@lstipakov lstipakov requested a review from flichtenheld April 4, 2023 16:57
@lstipakov
Copy link
Member Author

Also ping @selvanair

@selvanair
Copy link
Contributor

LGTM. I do not understand MSI, but verified that reinstalling with /fomusv does disable the service which we do not want. This patch fixes that.

@lstipakov lstipakov merged commit fb60757 into OpenVPN:release/2.6 Apr 5, 2023
@lstipakov lstipakov deleted the fix_service_on_reinstall branch April 5, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants