Replies: 3 comments 1 reply
-
Have you tried in the next build marking that component as permanent and then in the next next build removing the component? |
Beta Was this translation helpful? Give feedback.
-
Yes, it gets sticky when a problem is already in prod. How many machines are we tallking about? There are ways of changing an MSI and reinstalling / recaching it to work around issues like this. Another thought is to keep this component around forever and create a new component without the fileshare. Then use a CompLocator search to set a property saying the original component was found and use a mutually exclusive condition so that MSIs upgrading where the original was found continue to install the original component but MSIs installing or upgrading where the original component was not found install the new component. I think the heart of the problem is wanting to keep it around but also not create it. That's probably some variant of a component rules violation in that components are supposed to be backwards compatible with previous versions of itself. Hence why to make a new component. |
Beta Was this translation helpful? Give feedback.
-
You could try scheduling your major upgrade late ( As long as you follow the Component Rules for the other Components properly (except the one where you removed the And, then, take this as a lesson to test your upgrade scenarios before shipping. 😄 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, my WiX3-based installer created a folder and shared it, something like:
Now, in the next version of my app, I no longer need to share the folder (i.e., a new install of my app on a system that doesn't already have my app should not share the folder). However, if the folder was shared from the previous version, upgrading should not remove the share. I'm doing an MSI major upgrade. What I tried was just removing the util:FileShare and util:User elements, which works for the new install scenario. However, during an upgrade, when the FolderRemove operation is run on MyFolder, it un-shares the folder. How can I accomplish what I'm trying to do?
Beta Was this translation helpful? Give feedback.
All reactions