I found a way by opening (via orca) my previous installer (made by Visual
Studio 2010 basic msi). All the custom actions are using component
conditions. I am not at all comfortable in this. So I am modified my
current installer with following  CAs. Its working great.

<Custom Action="CA_SetBase_Install" Before="CA_Install">NOT
Installed</Custom>
      <Custom Action="CA_Install" After="StartServices">NOT Installed AND
NOT UPGRADINGPRODUCTCODE</Custom>

<Custom Action="CA_SetBase_UnInstall"
Before="CA_UnInstall">Installed</Custom>
      <Custom Action="CA_UnInstall"
After="MsiUnpublishAssemblies">Installed</Custom>

The CAs are working as desired. I want to ask about what is the diff
between this approach and with component approach?

Also If I want to use rollback custom action then how to use it? Should
Rollback be after StartServices and then Install CAs (coz this is how orca
showed me, first rollback followed by install CA)?


On Thu, Jun 7, 2012 at 12:41 PM, Rob Hamflett <[email protected]>wrote:

> Are these actions specified as being deferred, so they actually run as
> part of the installation script?
>
> Rob
>
> On 05/06/2012 13:52, Ravi Raj wrote:
> > I want to schedule my custom actions in following manner:
> > 1) Install: CA will run *only after* the installer copies all files to
> the
> > respective directories.
> > 2) Uninstall: custom action has completed successfully and then installer
> > removes the files from the system.
> >
> > How should I write my custom action? I am using:
> >
> > <Custom Action="CA_SetCustomActionData_Install"
> > Before="CA_GetCustomActionData_Install">NOT Installed</Custom><Custom
> > Action="CA_GetCustomActionData_Install" After="InstallInitialize">NOT
> > Installed AND NOT UPGRADINGPRODUCTCODE</Custom>
> >
> > <Custom Action="CA_SetCustomActionData_UnInstall"
> > Before="CA_GetCustomActionData_UnInstall">Installed</Custom><Custom
> > Action="CA_GetCustomActionData_UnInstall"
> > Before="InstallFinialize">Installed</Custom>
> >
> > But this is not working.
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to