This is so weird!!! I put back in the .NET 4.0 pre req and now my product is
installing...
Chain packagegroupref:
<Chain>
<PackageGroupRef Id="Netfx4Full"/>
Installconditions for .NET:
<Fragment Id="InstallConditionChecks">
<!-- Check for .NET 4.0 -->
<WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework
Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" />
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework
Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes"
/>
<PackageGroup Id="Netfx4Full">
<ExePackage Id="Netfx4Full"
DisplayName="Microsoft .NET Framework 4.0"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="..\PreReqs\dotNetFx40_Full_x86_x64.exe"
Name="RedistTMC\dotNetFx40_Full_x86_x64.exe"
InstallCommand="/passive /norestart"
DetectCondition="Netfx4FullVersion AND (NOT VersionNT64
OR Netfx4x64FullVersion)"/>
</PackageGroup>
-----Original Message-----
From: StevenOgilvie [mailto:[email protected]]
Sent: January-22-13 10:02 AM
To: [email protected]
Subject: [WiX-users] Burn InstallCondition not working when it used to :(
Hi Folks,
I have two installers, one 32 bit and one 64 bit. They depend on the bit'ness
of Outlook... so if Outlook is 32 bit, then the 32 bit installer runs, if
Outlook is 64 bit then the 64 bit installer runs... It was working before and
now isn't... the only thing I have done recently is install WIX
3.7 and remove the .NET 4.0 pre requisite...
This is the log file contents:
[2524:1B90][2013-01-22T09:52:01]i052: Condition '(Office2007InternetMail =
"Internet Mail") OR (Office2010Bitness = "x86") OR (Office2013Bitness = "x86")'
evaluates to false.
[2524:1B90][2013-01-22T09:52:01]i052: Condition '(Office2010Bitness = "x64") OR
(Office2013Bitness = "x64") AND VersionNT64' evaluates to false.
This is the MSI package elements:
<MsiPackage Id="MainInstall"
DisplayName="$(var.ProductName)"
SourceFile="$(var.OutDir)MYCOMPANY_MYPRODUCT_Setup_x86.msi"
Name="RedistTMC\MYCOMPANY_MYPRODUCT_Setup_x86.msi"
InstallCondition="(Office2007InternetMail =
"Internet Mail") OR (Office2010Bitness = "x86") OR
(Office2013Bitness = "x86")"
DisplayInternalUI="yes"
Visible="no"
Cache="no"
Compressed="no"
Permanent="no"/>
<MsiPackage Id="MainInstall_x64"
DisplayName="$(var.ProductName) x64"
SourceFile="$(var.OutDir)MYCOMPANY_MYPRODUCT_Setup_x64.msi"
Name="RedistTMC\MYCOMPANY_MYPRODUCT_Setup_x64.msi"
DisplayInternalUI="yes"
InstallCondition="(Office2010Bitness =
"x64") OR (Office2013Bitness = "x64") AND VersionNT64"
Visible="no"
Cache="no"
Compressed="no"
Permanent="no"
After="ServicesInstall_x64"/>
</Chain>
This is the fragment:
</Chain>
</Bundle>
<Fragment Id="InstallConditionChecks">
<util:RegistrySearch
Id="MSOfficeOutlook2007" Format="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\12.0\Outlook"
Value="Internet Mail"
Result="value" Variable="Office2007InternetMail"/>
<util:RegistrySearch
Id="MSOfficeOutlook2010" Format="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\14.0\Outlook"
Value="Bitness"
Result="value" Variable="Office2010Bitness"/>
<util:RegistrySearch
Id="MSOfficeOutlook2013" Format="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\15.0\Outlook"
Value="Bitness"
Result="value" Variable="Office2013Bitness"/>
Any clue as to why this isn't working anymore? This is effecting the stop of QA
builds :( Any help would be very appreciated!!
thanks,
Steve
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-InstallCondition-not-working-when-it-used-to-tp7583088.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC,
Windows 8 Apps, JavaScript and much more. Keep your skills current with
LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts.
ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users