-
-
Notifications
You must be signed in to change notification settings - Fork 419
CI - Windows Installer Clean-up, update, new location #1281
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
Conversation
Remove Obsolete installer settings. Update to new recommended install location. Use recommended comments character
|
The new location does not allow to add the firewall rules anymore. Also the FW rules are added every time there is a new install We should be able to target an existing rules and update it instead of re-adding all the time. Suggestion to fix :
Not sure if this could be done in the "run" section or needs to be "moved" to the Code section and then called. |
…re install start.
|
The firewall rules added to the windows Firewall does not work anymore with the new plugin location.
All the OBS-NDI removal is now managed as the "last step" to avoid too early deletion. Added log entry for debug if we run the installer with /LOG Rely more on the [Code] section for consistency. Added an option to select the removal of obs-ndi / add to firewall to be skipped. |
|
Looks like there are 1 too many folder levels in the install of distroav. |
|
Update OP with all the changes in this PR. Latest build should fix the issue reported by @BitRate27 in a previous comment. |
|
The plugin is now installed correctly with the latest change. Problem now is the in/out firewall rules are not added. The log file says: So end result is OBS Studio not allowed through firewall. No rule was created in the firewall which included OBS or DistroAV in the name or group. |
Add validation to the firewall rules process
|
In addition to doing a proper check on success of the netsh command, you also need to remove group= and new as those are not recognized arguments for the advfirewall context. This code works on my tests: |
|
@BitRate27 this last commit implement your changes request. Test to do : Removing OBS-NDI (low priority)
Adding firewall rules higher priority)
Disclaimer : I have not tested theses |
|
The manually installed dll is not being removed. The path to the obs-ndi.dll file is incorrect. Please change the second DelTree command to this: Verified the installed version of obs-ndi is uninstalled and that the locale folder is properly deleted if installed manually. |
|
@BitRate27 good catch! If the test success and install goes as planned, we could merge this. |
|
The latest firewall code doesn't seem to recognize if the rule is already set. It keeps adding the same rule every time the installer is run. Since we can't use the ResultCode to test if the set rule operation was successful, we need to delete the rule if it exists, and add it. Here is the code which will do that without having to check if the rule already exists. I tested this new way by installing multiple times, and we only end up with one OBS - DistroAV rule in the in and out directions. |
|
Thanks all for the great collab on this PR ! |
This PR focus only on the Windows installer changes:
Reason & Argument for this change
OBS Plugin Install Doc
OBS Plugin Template Wiki
Use recommended comments character for the .iss.in file following InnoSetup guideline
Removed obsolete License screen & logic following argument at : https://github.com/obsproject/obs-plugintemplate/wiki/Create-an-InnoSetup-Installer#note-about-license-screens
Add Tasks selection in installer to remove OBS-NDI & Add firewall rules
Rewrite Firewall rules logic/update due to plugin location/detection changes
Add support for /LOG parameter to log infos if required
Rewrite OBS-NDI clean-up process : Now done at the end of the installation (on success) instead of before the installation start
Process all tasks (remove OBS-NDI / Add Firewall rules) at the end of the installation
Unified approach to deal with post-install requirements & tasks