Add support for multi-instance MSIs is going to be more involved than just
setting the property. At build time, the various instance transforms would
need to be found and stored in the Burn manifest so each instance could be
detected and planned. Probably would need to enhance the package related
callbacks to identify which instance is being operated on. That would
probably turn into a breaking change so it'd be better considered for WiX
v4.0.
If you're interested in working on the feature we should probably talk in
detail about all the details.
PS: I think Jacob said it best. Instance transforms are very challenging to
use and rarely worth it. <smile/>
On Wed, Mar 13, 2013 at 1:07 PM, Heath Stewart <hea...@outlook.com> wrote:
> The solution I put forth should work:
>
> For your package, define <MsiProperty Name="MSINEWINSTANCE"
> Value="[NewInstance]"/>. Your BA would define/set the NewInstance variable
> to 1 if the product is not detected; otherwise, define it as an empty
> string
> (so use a string variable). MSI treats empty strings as undefined.
>
> You should see if that works. If we made an engine change, it would work
> something like that anyway (just wouldn't use an authorable property).
>
> Heath Stewart
> VS Pro Deployment Experience, Microsoft
> http://blogs.msdn.com/heaths
>
> -----Original Message-----
> From: jeamis [mailto:jonathan.a...@intergraph.com]
> Sent: Wednesday, March 13, 2013 12:46 PM
> To: wix-devs@lists.sourceforge.net
> Subject: [WiX-devs] We are thinking about modifying the
> MsiEngineComcatProperties()
>
> On wix_users:
>
> I posted that, we were thinking of changing of removing the
> MSINEWINSTANCE=1
> from the property list on Uninstall in Wix Burn code.
>
> We want to know : What steps should we follow in writing a Custom BA to
> address this issue with InstanceTransforms. After a week of looking at
> Transforms, Embedded transforms etc... we really do need to use Instance
> Transforms. They need to be installable, repairable, patchable and
> uninstallable.
>
>
> The actual post said this:
> We are thinking about modifying the MsiEngineComcatProperties() to allow
> optional handling of MSINEWINSTANCE=1 on Uninstall. Optional meaning - on
> uninstall we would exclude this from the parameters so that msiexec.exe
> will
> unistall the transform.
>
> We are using a Multi-Transform msi and need to use the MSINEWINSTANCE=1 on
> Install. However using WIX, we have not found any means to exclude the
> msiProperty MSINEWINSTANCE=1 from the Chain on uninstall.
>
> If the parameter MSINEWINSTANCE=1 is defined, msiexec.exe /x will fail.
>
>
>
>
> Rob stated:
>
> Short answer: this is something a custom BA could handle. Supporting
> instance transforms is a much bigger problem than just setting
> MSINEWINSTANCE. If you'd like to discuss how to add support for multiple
> instances to Burn, let's continue on wix-devs.
>
>
> Any suggestions would be appreciated.
>
> - Jon
>
>
>
> -----
> - jon
> --
> View this message in context:
>
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/We-are-thinkin
> g-about-modifying-the-MsiEngineComcatProperties-tp7584324.html<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/We-are-thinking-about-modifying-the-MsiEngineComcatProperties-tp7584324.html>
> Sent from the wix-devs mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------------
> --
> 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_mar
> _______________________________________________
> WiX-devs mailing list
> WiX-devs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
>
> ------------------------------------------------------------------------------
> 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_mar
> _______________________________________________
> WiX-devs mailing list
> WiX-devs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
>
------------------------------------------------------------------------------
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_mar
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs