Need Help on creating a popup to capture user input only while Uninstallation #8015
-
Project - Java based Thanks in Advance, |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 5 replies
-
Any update on the above query? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Any update on the above query? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Microsoft doesn't recommend any UI during the uninstall. In fact uninstall has no UI. You'd have to write a custom action. What is the goal? I've seen scenarios where people want to enforce a password protection of uninstall (block if invalid) , I've seen people want to prompt for save user data (Microsoft answer is always save) and I've seen people just want to get feedback on why are you leaving us. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Can we do this? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
Is your installer just an MSI using Windows Installer Native UI or are you using a bootstrapper (.exe) as a wrapper? |
Beta Was this translation helpful? Give feedback.
-
I am working on the enhancement of existing project and have very little information about the wix implementation in the project. I think it must be a bootstrapper, as the project has an XML configuration file named MFPBootstrapper.wixproj |
Beta Was this translation helpful? Give feedback.
-
Yes that's a bootstrapper. In that case the bootstrapper application handles the command line params, UI and calling of the MSI. So you would extend it to have the functionality that you want. |
Beta Was this translation helpful? Give feedback.
-
How can I do that? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your valuable insights. |
Beta Was this translation helpful? Give feedback.
-
This might be helpful to you. The first 30 minutes in an overview of WiX and the last 20 minutes gets into bootstrappers specifically. https://www.youtube.com/watch?v=XfwlWUJPmYU WiX v3 has a custom bootstrapper that you could look at the source. There's also some OSS projects that create bootstrappers such as WiXWPF that you could look at. Also a quick google search for "wix custom bootstapper" gets you here: https://wixtoolset.org/docs/v3/bundle/ba/ |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your help. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @chrpai,
Any help on above will be highly appreciated. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
I'd need to see a minimal reproducible sample to tell you what your doing wrong. Like a github repos I could fork and submit a pull request. You said previously that you were using a bootstrapper but your code above is for MSI UI. Bootstrappers don't generally display MSI UI. Also MSI doesn't display any UI other then a progress bar when doing an uninstall. |
Beta Was this translation helpful? Give feedback.
-
Hi @chrpai, Here is the git repo link for sample code. https://github.com/jchirantan/WiXProject It will be highly appreciated, if you can visit the repo and help me with the pointers. Thanks, |
Beta Was this translation helpful? Give feedback.
-
I forked the repos but it doesn't build. It has dozens and dozens of missing files. Strip that all out to make it the most simple install that demonstrates the problem. Something that I can build, modify and submit a PR. |
Beta Was this translation helpful? Give feedback.
-
Thanks @chrpai for such a quick response. By looking at the code structure and file names, can you tell if it is a bootstrapper project or a MSIUI project (i.e. can we extend this project to add UI at uninstallation)? Thanks, |
Beta Was this translation helpful? Give feedback.
-
We're keeping questions open since they are easier to find in search. |
Beta Was this translation helpful? Give feedback.
Custom UI is a much more advanced topic. You are in for lots of fun.
We use wisstdba and have a custom theme but we don't have any custom controls so can't help much.
You can use the standard bootstrapper application (wixStdBA) and add a custom theme file. I was curious and did some research and it appears you can create a checkbox in the options page which can be linked to a burn variable and passed into the MSI. Below links are older so no idea if anything has changed since then.
https://stackoverflow.com/questions/11640470/burn-how-to-store-a-checkbox-value-in-a-variable
https://stackoverflow.com/questions/50570254/variable-value-isnt-changing-according-to-checkbox-value-from-rtf-theme
w…