|
Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time...
In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. How can I stop it from running during the uninstall? Thanks in advance! Brad ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
OK, I figured my particular case out.
The condition you want to use is simply "NOT Installed". Example: <Custom Action="MyCustomAction" Before="ProcessComponents">NOT Installed</Custom> In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. Brad -----Original Message----- From: Bradley Ward [mailto:[hidden email]] Sent: Monday, May 23, 2011 3:32 PM To: Wix-Users List ([hidden email]) Subject: [WiX-users] How To Run Custom Action During Install But Not During Uninstall Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. How can I stop it from running during the uninstall? Thanks in advance! Brad ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
In reply to this post by Bradley Ward
A condition of Not Installed sounds right.
[[However, if your custom action is associated with a component or a feature, sometimes a feature condition is more appropriate because the feature may be uninstalled and later reinstalled, or not chosen at install time etc. ]] Phil Wilson -----Original Message----- From: Bradley Ward [mailto:[hidden email]] Sent: Monday, May 23, 2011 12:32 PM To: Wix-Users List ([hidden email]) Subject: [WiX-users] How To Run Custom Action During Install But Not During Uninstall Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. How can I stop it from running during the uninstall? Thanks in advance! Brad ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
In reply to this post by Bradley Ward
Just to let you know if you didn't, but that condition will mean your Custom Action won't run during
a repair, in case it's important. Rob On 23/05/2011 20:44, Bradley Ward wrote: > OK, I figured my particular case out. > > The condition you want to use is simply "NOT Installed". > > Example: > > <Custom Action="MyCustomAction" Before="ProcessComponents">NOT Installed</Custom> > > In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. > > Brad > > > -----Original Message----- > From: Bradley Ward [mailto:[hidden email]] > Sent: Monday, May 23, 2011 3:32 PM > To: Wix-Users List ([hidden email]) > Subject: [WiX-users] How To Run Custom Action During Install But Not During Uninstall > > Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... > > In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. > > How can I stop it from running during the uninstall? > > Thanks in advance! > > Brad > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
Hi Rob,
I've just been focusing on the basic install/uninstall right now, but I would like to use a few of these actions in a repair situation. What condition should I use in that case? Thanks! Brad -----Original Message----- From: Rob Hamflett [mailto:[hidden email]] Sent: Tuesday, May 24, 2011 3:21 AM To: [hidden email] Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall Just to let you know if you didn't, but that condition will mean your Custom Action won't run during a repair, in case it's important. Rob On 23/05/2011 20:44, Bradley Ward wrote: > OK, I figured my particular case out. > > The condition you want to use is simply "NOT Installed". > > Example: > > <Custom Action="MyCustomAction" Before="ProcessComponents">NOT > Installed</Custom> > > In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. > > Brad > > > -----Original Message----- > From: Bradley Ward [mailto:[hidden email]] > Sent: Monday, May 23, 2011 3:32 PM > To: Wix-Users List ([hidden email]) > Subject: [WiX-users] How To Run Custom Action During Install But Not > During Uninstall > > Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... > > In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. > > How can I stop it from running during the uninstall? > > Thanks in advance! > > Brad > > ---------------------------------------------------------------------- > -------- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------- > -------- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
If your custom action is not tied to any given feature you can use the following: NOT REMOVE="ALL" Otherwise you will need to tie it to the action state of the feature you are interested in. -Blair > From: [hidden email] > To: [hidden email] > Date: Tue, 24 May 2011 09:00:20 -0700 > Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall > > Hi Rob, > > I've just been focusing on the basic install/uninstall right now, but I would like to use a few of these actions in a repair situation. What condition should I use in that case? > > Thanks! > > Brad > > > -----Original Message----- > From: Rob Hamflett [mailto:[hidden email]] > Sent: Tuesday, May 24, 2011 3:21 AM > To: [hidden email] > Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall > > Just to let you know if you didn't, but that condition will mean your Custom Action won't run during a repair, in case it's important. > > Rob > > On 23/05/2011 20:44, Bradley Ward wrote: > > OK, I figured my particular case out. > > > > The condition you want to use is simply "NOT Installed". > > > > Example: > > > > <Custom Action="MyCustomAction" Before="ProcessComponents">NOT > > Installed</Custom> > > > > In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. > > > > Brad > > > > > > -----Original Message----- > > From: Bradley Ward [mailto:[hidden email]] > > Sent: Monday, May 23, 2011 3:32 PM > > To: Wix-Users List ([hidden email]) > > Subject: [WiX-users] How To Run Custom Action During Install But Not > > During Uninstall > > > > Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... > > > > In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. > > > > How can I stop it from running during the uninstall? > > > > Thanks in advance! > > > > Brad > > > > ---------------------------------------------------------------------- > > -------- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > WiX-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------- > > -------- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
In reply to this post by Bradley Ward
I usually just use a condition of "REINSTALL OR NOT Installed", as my actions aren't tied to a
specific feature. Rob On 24/05/2011 17:00, Bradley Ward wrote: > Hi Rob, > > I've just been focusing on the basic install/uninstall right now, but I would like to use a few of these actions in a repair situation. What condition should I use in that case? > > Thanks! > > Brad > > > -----Original Message----- > From: Rob Hamflett [mailto:[hidden email]] > Sent: Tuesday, May 24, 2011 3:21 AM > To: [hidden email] > Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall > > Just to let you know if you didn't, but that condition will mean your Custom Action won't run during a repair, in case it's important. > > Rob > > On 23/05/2011 20:44, Bradley Ward wrote: >> OK, I figured my particular case out. >> >> The condition you want to use is simply "NOT Installed". >> >> Example: >> >> <Custom Action="MyCustomAction" Before="ProcessComponents">NOT >> Installed</Custom> >> >> In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. >> >> Brad >> >> >> -----Original Message----- >> From: Bradley Ward [mailto:[hidden email]] >> Sent: Monday, May 23, 2011 3:32 PM >> To: Wix-Users List ([hidden email]) >> Subject: [WiX-users] How To Run Custom Action During Install But Not >> During Uninstall >> >> Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... >> >> In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when I uninstall the application. >> >> How can I stop it from running during the uninstall? >> >> Thanks in advance! >> >> Brad >> >> ---------------------------------------------------------------------- >> -------- What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> WiX-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> ---------------------------------------------------------------------- >> -------- What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
|
In reply to this post by Bradley Ward
I was trying to follow the step mentioned in this thread but on compiling I get the following exception:
C:\...\xyz.wxs(204) : error CNDL0024 : The CustomAction element contains illegal inner text: 'NOT Installed'. It may not contain inner text unless the Script attribute is specified. make: *** [C:/.../Release/xyz i.wixobj] Error 24 The custom action that i have here is a managed c# dll and without any inner text it is working perfectly fine. The only problem is that it is being called both at install and uninstall time whereas I would like it to be called only during the install time. I might be missing something here but I am not sure where I went wrong and would appreciate any help. Thanks |
|
Ok my mistake in reading the post - it was supposed to be in <Custom> and not in <CustomAction> tag. Thanks
|
|
In reply to this post by sttaq
It's sounds like you're trying to do something like:
<CustomAction Id="MyCustomAction> NOT Installed </CustomAction> But you can't put the conditional there. You have to put the conditional in a <Custom> element in either the InstallExecuteSequence or the InstallUISequence (or both). <InstallExecuteSequence> <Custom Action="MyCustom Action" After="CostFinalize"> NOT Installed </Custom> </InstallExecute Sequence> -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 [hidden email] www.jackhenry.com -----Original Message----- From: sttaq [mailto:[hidden email]] Sent: Monday, February 13, 2012 9:29 AM To: [hidden email] Subject: Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall I was trying to follow the step mentioned in this thread but on compiling I get the following exception: C:\...\xyz.wxs(204) : error CNDL0024 : The CustomAction element contains illegal inner text: 'NOT Installed'. It may not contain inner text unless the Script attribute is specified. make: *** [C:/.../Release/xyz i.wixobj] Error 24 The custom action that i have here is a managed c# dll and without any inner text it is working perfectly fine. The only problem is that it is being called both at install and uninstall time whereas I would like it to be called only during the install time. I might be missing something here but I am not sure where I went wrong and would appreciate any help. Thanks -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-To-Run-Custom-Action-During-Install-But-Not-During-Uninstall-tp6395892p7280693.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
| Powered by Nabble | Edit this page |
