Bob Arnson wrote:
> Stephen Walch wrote:
> >
> > My problem occurs when I try to add CustomActions for registering and
> > deregistering my components. (If you must know, it involves making
> > STSADM.EXE calls to register a SharePoint "Feature".) I have not
> > figured out a way to associate my CustomActions with specific
> > Components and they therefore do not benefit from the above reference
> > counting. If I install two MSIs, the registration routine gets called
> > twice. Worse, when I uninstall just one of them, the component is
> > unregistered.
> >
>
> This is why WiX and MSI and other folks recommend folks avoid custom
> actions if at all possible. Properly accounting for when CAs have to be
> run and can't be run is hard. You might be able to get away with better
> conditions on your custom actions. Take a look at "Examples of
> Conditional Statement Syntax" in the MSI SDK for examples.
>
> But we should keep this thread going on how WiX might support
> SharePoint. Maybe there's a way we can tie component state more directly
> and solve this problem for everyone.
>
> --
> sig://boB
> http://bobs.org
>
>
This helps somewhat. I can detect the final uninstall using the following
test:
(?ProductComponent = 3) AND ($ProductComponent = 2)
But I can not detect the first install of the component. The following
test fires for both the first and second install for some reason:
(?ProductComponent = 2) AND ($ProductComponent = 3)
So why would (?ProductComponent = 2) yield true during the second install?
Could this be a timing issue? (In my sequence, the test is
After='InstallFinalize'.)
These tests were done using WIX 2.0.4221. I built one merge module
(including my component and the custom action) and two MSIs that
incorporate it.
Thanks!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users