Wix delete file on uninstall
We have already seen how to signal the removal of folders during uninstallation. For folders created by the application rather than the installer, we will need to specify them separately:.
Again, Directory or Property can be used to specify the folder if it is not the one of the component itself. Sign in Email. Forgot your password? Ask a Question. Uninstall code in WIX to remove the installed files in the installed folder??? Please Sign up or sign in to vote. See more: VC8. Posted 6-Feb pm Gokulnath Add a Solution.
Emilio Garavaglia 7-Feb am. Accept Solution Reject Solution. This one? Posted 6-Feb pm Indivara. Also, if this value is a long file name, the ShortName attribute may be omitted to allow WiX to attempt to generate a unique short file name. However, if you wish to manually specify the short file name, then the ShortName attribute may be specified.
For 'install', the file will be removed only when the parent component is being installed msiInstallStateLocal or msiInstallStateSource ; for 'uninstall', the file will be removed only when the parent component is being removed msiInstallStateAbsent ; for 'both', the file will be removed in both cases. Yes Property String Overrides the directory of the parent component with the value of the specified property.
The property should have a value that resolves to the full path of the source directory. The property does not have to exist in the installer database at creation time; it could be created at installation time by a custom action, on the command line, etc.
Or, if you know what subfolders are, create a bunch of RemoveFolder and RemoveFile elements. With this approach, all the subdirectories are also removed as opposed to using RemoveFile element directly. DLL will look like this in VB. Here's a variation on tronda's suggestion. I'm deleting a file "install. As far as I understand, I can't use "RemoveFile" because this file is created after the installation, and is not part of a Component Group.
Not an WIX expert, but could a possible simpler?
0コメント