Classification: Public
You use the install sequence to set up your custom actions...
So let's say I have custom action 1 which does something during install:
<CustomAction Id=" CA_Set_Something " Property="SOME_PROPERTY"
Value="[ComputerName]"/> <UI>
<ProgressText Action=" CA_Set_Something ">CA: Setting a
property...</ProgressText> </UI>
<InstallExecuteSequence>
<Custom Action="CA_Set_Something" After="InstallValidate">NOT Installed</Custom>
Now let's do something for uninstall:
<CustomAction Id="CA_Set_DELETE_SOME_FILE" Property=" CA_DELETE_SOME_FILE "
Value="[SOME_PATH]\MyFile.txt|"/> <CustomAction Id="CA_ DELETE_SOME_FILE "
BinaryKey="BIN_CustomAction" DllEntry="RemoveFileOnUninstall" Impersonate="no"
Execute="deferred" Return="ignore"/> <UI>
<ProgressText Action="CA_ DELETE_SOME_FILE ">CA: Delete some
file...</ProgressText> </UI>
[InstallExecuteSequence]
<Custom Action=" CA_Set_DELETE_SOME_FILE" After="InstallValidate">Installed and
Not REINSTALL</Custom>
<Custom Action="CA_DELETE_SOME_FILE" After="InstallFiles">Installed and Not
REINSTALL</Custom>
Steve
-----Original Message-----
From: Vern Graner [mailto:[email protected]]
Sent: March-05-13 1:41 PM
To: [email protected]
Subject: [WiX-users] Execute a custom action only on uninstall?
I've had such good luck lately with Q&A here I figure I might as well throw out
another one! ;)
So, as I mentioned before, I have a custom action that is performed at the end
of my MSI install. I would like to find a way to invoke a different script file
via a different CustomAction to be run as the very first step of the UNinstall
process of this MSI.
To be clear, what I am seeking is:
On INSTALLING:
1) MSI installs app
2) MSI invokes CustomAction 1 (runs a small batch file)
On UNinstalling:
1) MSI invokes CustomAction 2 (runs a different small batch file)
2) MSI uninstalls the app
Any hints on how to do this? TIA! :)
Vern
--
Vern Graner CNE/CNA/SSE | "If the network is down, then you're
Senior Systems Engineer | obviously incompetent so why are we
Texas Information Services | paying you? Of course, if the network
http://www.txis.com | is up, then we obviously don't need
Austin Office 512 328-8947 | you, so why are we paying you?" ©VLG
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
This message has been marked as Public by Steven Ogilvie.
The above classification labels were added to the message by TITUS Message
Classification.
Visit www.titus.com for more information.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users