Sadly, I think support for this is lacking in burn as of now. While the
right way to do this would be to enhance the engine and dialect to supply a
list of transforms I don't think this would be a trivial undertaking. One
possible solution would be to see how difficult it would be to allow a
MsiProperty/@Name to be "formatted" just like MsiProperty/@Value is. This would
allow you to change the value of the property name at runtime, so you could
change MSINEWINSTANCE to FOO. Not the best solution but if you were looking
for a "quick hack" to get burn to do what you want this would feel like the
path of least change. The other option would be to create a stub ExePackage
that passes the right parameters to msiexec based on install or uninstall.
Instance transforms are ugly. Do you really need an instance
transform? I think you can do basic transforms without the MSINEWINSTANCE, but
instance transforms do require it.
Jacob
-----Original Message-----
From: jeamis [mailto:[email protected]]
Sent: Thursday, March 07, 2013 6:07 AM
To: [email protected]
Subject: Re: [WiX-devs] Creating MultiTransform msi using wix.
Thank you for replying....
The problem is the msiProperty itself. The Value of the MSINEWINSTANCE is
not based on 1 or 0.
If you use msiexec.exe and place MSINEWINSTANCE=[0/1] it will fail to uninstall.
Example:
To install a instancetransform MyApp1:
msiexec.exe /i L:\bldtools\Setup\DVD\RAD2D\MyInstallation MSINEWINSTANCE=1
TRANSFORMS=:MyApp1 INSTALLFOLDER=c:\app\MyApp1
(Note: It will fail to install without the MSINEWINSTANCE.)
If I decide to uninstall doing this :
msiexec.exe /x L:\bldtools\Setup\DVD\RAD2D\MyInstallation MSINEWINSTANCE=0
TRANSFORMS=:MyApp1 INSTALLFOLDER=c:\app\MyApp1
This will fail.
If I do this :
msiexec.exe /x L:\bldtools\Setup\DVD\RAD2D\MyInstallation TRANSFORMS=:MyApp1
INSTALLFOLDER=c:\app\MyApp1
this will succeed.
In Wix, I don't know how to tell wix to apply the msiProperty or not apply
msiProperty.
Example: (Bootstrapper code snippet)
<Chain>
<MsiPackage Id="MyInstall1" InstallSize="112640" Cache="yes"
Compressed="no" Name="MyInstall1"
SourceFile="L:\bldtools\Setup\DVD\RAD2D\MyInstallation.msi" Vital="yes">
<MsiProperty Name="MSINEWINSTANCE" Value="1"/>
<MsiProperty Name="INSTALLFOLDER" Value="c:\app\MyApp1"/>
<MsiProperty Name="ARPSYSTEMCOMPONENT" Value="1"/>
<MsiProperty Name="INSTALLLEVEL" Value="20"/>
<MsiProperty Name="TRANSFORMS" Value=":MyApp1"/>
</MsiPackage>
</Chain>
It would seem to me that the issue to uninstall a multi-instancetransform would
be already addressed...but All I get is Microsoft telling me there is no reason
to use MSINEWINSTANCE and yet WIX I cannot install correctly without it and
then I cannot repair or uninstall...and right now I am guessing patches dont'
work either have not gotten that far yet.
It is very frustrating. I am even trying to step through WIX toolkit core
code...knowing that I don't want to change anything in it. But realizing that I
may not be able to resolve this volcano.
As I said I am new to installer, so I was wondering if I can some how use wix
to create transforms that are not instance transforms. I have yet to find a
example of a typical transform...I am not talking about the mst file itself...I
mean the embedded transform in the msi that the mst applies too?
I don't even know all the terms. I have tried to use torch.exe to generate
a .mst. I took my original msi and then I changed the wix source to use
the application id information for another msi I compiled and then torched
it. Got a mst but it does not work.
Or can I extract a mst from my current multi-instance transform for the
instances I want? would that work?
-----
- jon
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Creating-MultiTransform-msi-using-wix-tp7584138p7584170.html
Sent from the wix-devs mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to tackle
endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs