11-30-2010 04:51 PM
There is an option in LabVIEW builder to run a custom executable or script file at the end of installation process. This is useful to make custom changes to the environment. However, there is often need to clean-up those changes upon uninstallation. LabVIEW application builder does not support running executable at the beginning of uninstallation, as explained in the following NI Idea Exchange post.
My question is, does anyone know of any way of executing a custom uninstall step at the beginning of the uninstallation process that would work with current versions of LabVIEW. I tried some registry editing hacks without much success. There are some hack I have not yet tried that I might still try.
12-01-2010 11:04 AM
Tomi Maila,
What exactly do you need to change? Are you simply trying to clean up some left over files or is there more to it than that?
The idea Exchange is always the place to go with new feature requests / suggestions so thanks for posting there as well.
Regards,
Sam K
Applications Engineer
National Instruments
12-01-2010 03:17 PM
This time I need to remove a symbolic link, if it exists and twi folders if they are empty.
12-01-2010 05:20 PM
12-01-2010 09:51 PM
I have not personally used Inno Setup, but a colleague has used it in the past with success to package LabVIEW programs for redistribution. Specifically, check out the [UninstallRun] section of the script (looking at the menu on their documentation webpage, it's under "Setup Script Sections >> [UninstallRun]")
This probably won't help you guys at the LabVIEW shop that is among the best in the world at application distribution/packaging, but perhaps this can help someone else. I don't know any secret LabVIEW hooks to tap into, so hopefully someone can give better advice than the (obvious) third-party route.