PCL All-in-one Installer: add process to add/remove VTK path #3322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request has two changes.
Fix uninstall process to remove environment variable.
The variable name contained an unnecessary underscore.
The conditional expression is always false and always runing process to remove variable.
(It has not been a problem so far, because the remove path process that are not included in environment variables as there is virtually no change.)
Add install and uninstall process to add and remove VTK path to environment variables PATH.
This installer change for a temporary solution (It can be avoided by changing to dynamic linked VTK) for issue PCLVisualizer tutorial issue on Windows #1601. It just add/remove the VTK path in addition to the PCL path.
I have already tested this installer/uninstaller on my environment. It works correctly without problem which option choose. It means we are ready to generate and publish the PCL 1.10.0 All-In-One Installer (that include pre-built PCL with dynamic linked VTK as a temporary solution for this issue).
Note: This change should be undone once the issue PCLVisualizer tutorial issue on Windows #1601 is resolved.