Wix custom action before uninstall
On the other hand, tools like Advanced Installer come with a dedicated GUI for adding a Custom Action which makes the job a lot easier and straightforward. If you want to give it a try, you can check it out for free through the Advanced Installer day full-feature trial and have a look at our Custom Actions page. Additionally, Advanced Installer comes with a list of predefined Custom Action which you can use. Another Custom Action to remove the same file at the time the package gets uninstalled.
Advanced Installer 1 alternative to the WiX Toolset We decided to focus on our main goal to save precious time of our developers. Get the most from packaging with Advanced Installer Architect Try the day fully-featured edition absolutely free!
In my actual code I need to run a method from my DLL. Or, they are rather empty strings. You see where I'm going with it -- sounds like a catch Yes, this is really annoying. In every advance project someone traps into this.
It is explained a bit in the following link. Either you store the properties in a registry or settings file before InstallInitialize and parsing it in your deferred custom action independently from msi. Or you have to follow the documented method and store everything in one property named "CustomActionData".
I have not used it in WiX but I am sure there is something which is not too complicated, once you have got the point. Take a look here or google for it, you will find the same answer maybe somewhere better explained: msdn. Thanks for your help. Yes, I ended up using CustomActionData approach but it is very cumbersome to pack all the parameters into it.
The reason I needed to do it was to pass the installation context into the custom action, i. Plus in some cases my custom action was called elevated even without showing an end-user UAC prompt. I'm not sure if it's a bug in Windows, or what.
I for sure be aware of those MSI packages for my own use Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. ClickOnce and Setup. Sign in to vote. Thus I want to either - move the uninstall action to before InstallValidate step or - change the installer to not check for running apps on uninstall.
Any insights would be much appreciated! Message ; return ActionResult. OK return! GetProcesses ; foreach var p in procList if p. Share this: Twitter Facebook. Like this: Like Loading Previous Post Skype account hijacking. Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:.
Email required Address never made public. Name required. Developers, developers, developers, developers. Follow Following.
0コメント