‎12-14-2018 03:24 AM
Hi,
I've built a package (.nipkg) for my product and specified a pre-uninstall action. During the tests it turns out that my pre-uninstall action contains an error. When trying to uninstall this package with the wrong pre-uninstall action, I always gets the error "Error -125440: An error occurred while running the custom execute queue 'pre'".
How to skip this error and continue uninstalling the package? Is there a flag like --ignore-errors or --force-uninstall?
Thanks,
Nikita.
Solved! Go to Solution.
‎12-20-2018 02:03 PM
Unfortunately, there's not currently a flag like you mention to get around a broken pre-uninstall custom execute. It is something that we are hoping to implement in future versions, but at this time is not. There is a process to get the package off the system but it requires editing some NIPM resource files that we do not recommend users do unless given strict instructions unique to their issue. For this reason, I don't want to add those instructions to this public forum but I'll send you a direct message and we can proceed from there.
‎12-21-2018 01:49 AM - edited ‎12-21-2018 01:51 AM
Thanks for the info!
Having the opportunity to force removal of the package in the future releases is a must in my opinion. It is good that we have a backup plan though! My next package (if it requires a pre-uninstall action) will definitely invoke this step as an "optional" step - I don't want to get stuck when deleting and more importantly updating my packages.
‎08-14-2019 01:19 PM
Please also direct message me - I have the same issue now due to a post-uninstall error
‎09-16-2019 04:39 PM
I too have run into this problem. I have fixed it in the passed but something has changed in the most recent version of NIPM. Any help would be great.
‎12-21-2020 09:49 AM
I managed to get myself in this situation, as well : built a package with a pre-uninstall.bat script configured with a "Temp" destination, and now the uninstall action ALWAYS deletes before it has a chance to run. 😧
(To be fair, there *is* a note in https://www.ni.com/documentation/en/ni-package-manager/latest/manual/installation-target-roots/ that recommends not doing this, but I only found that after the fact).
Could somebody DM me the instructions for how to get this uninstalled?
Also: can someone at NI open a CAR to add validity checks in the Package build specifications that prevent referencing anything in TEMP as a pre-uninstall action?
‎04-22-2021 01:48 PM
I have run into the same error. Any way I can get help with uninstalling?
‎04-29-2021 02:46 PM
Hi Truss, please try following the steps from this article: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YPYfCAO&l=en-US.
Fabian Solano
NI | Technical Support
‎04-30-2021 02:45 AM
Hi Fabian, thanks for posting a KB article.
‎05-05-2021 12:31 PM
Fabian, thanks for sharing the article! The solution worked for my issue.