Is there a way to NOT delete files after an uninstall?
相关问题
- How does the setup bootstrapper detect if prerequi
- What is the best way to do a search in a large fil
- Wix: How can I set, at runtime, the text to be dis
- Spring Integration - Inbound file endpoint. How to
- php--glob for searching directories and .jpg only
相关文章
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- How to serialize data into indented json [duplicat
- Creating a custom file like object python suggesti
- How do I require a value in a textbox in a Wix cus
- Sorting a data stream before writing to file in no
- Fastest way to create files in C#
- Is there a way to instantly check whether a direct
Another way to prevent Windows Installer from deleting the component on uninstall is to set a blank or empty component GUID. This will cause the component to be installed but it will never be tracked or uninstalled.
See the MSI SDK documentation: "...if this column (ComponentId) is null the installer does not register the component and the component cannot be removed or repaired by the installer. This might be intentionally done if the component is only needed during the installation, such as a custom action that cleans up temporary files or removes an old product. It may also be useful when copying data files to a user's computer that do not need to be registered."
Compliments of Phil Wilson from wixusers mailing-list:
See the MSI SDK docs for the Component table - set the Component guid to be null (empty). The effect of this is that the component isn't registered (so it can't be repaired) and it won't be uninstalled.
Set the
Component
valuePermanent="yes"
like so:I know this question is old, but I just stumbled across it as I was looking for a way for my installer to install missing fonts, but not uninstall them when the application is uninstalled. Hope it helps someone else who may come across this question. I was a bit uncomfortable with both of the solutions provided (blank/empty Guid or set the component to permanant). So I came up with this, which worked for me:
This way the font feature is installed, but when being uninstalled, the feature's level is set to 0, so it is left alone.