NET4FrameWork != NET4FrameworkInstalled != NET4FrameWorkInstalled

Ensure the Variable and the DetectCondition are exactly the same. Your logs 
don't align with your definition...


-----Original Message-----
From: Lutz Andersohn [mailto:landers...@gmail.com] 
Sent: Thursday, January 15, 2015 10:05 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with DetectCondition

I have a problem with the "DetectCondition" in ExePackage: I do not understand 
why my condition is evaluated he way it is. Below is the code and log file. My 
problem is, the variable NET4FrameworkInstalled is correctly assigned the value 
1, however DetectCondition for the .NET package using this variable is 
evaluated to False. Same thing happens for all 4 packages I am trying to check. 
Does anybody know how to fix this?

Thanks

code:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
    xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";
    xmlns:bal="http://schemas.microsoft.com/wix/BalExtension";
    xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
  <Fragment>
    <!--checking for VideoCapture installation-->
     <util:RegistrySearch Id="VideoCapX"
            Variable="VideoCapXInstalled"
            Root="HKCR"
            Key="VIDEOCAPX.VideoCapXCtrl.1\"
            Result="exists"
           />
     <util:RegistrySearch Id="VideoCapXAlt"
            Variable="VideoCapXAltInstalled"
            Root="HKLM"

Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoCapX
control_is1\"
            Result="exists"
           />
     <util:RegistrySearch Id="USB4"
            Variable="USB4Installed"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\US
Digital USB4 Software\"
            Result="exists"
           />
     <util:RegistrySearch Id="ICImagingRuntime"
            Variable="ICImagingRunTimeInstalled"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\IC
Imaging Control ActiveX Runtime_is1\"
            Result="exists"
           />
     <util:RegistrySearch Id="ICImagingFull"
            Variable="ICImagingFullInstalled"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\IC
Imaging Control 3.2_is1\"
            Result="exists"
           />
     <util:RegistrySearch Id="NET4FrameWork"
            Variable="NET4FrameworkInstalled"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\.NETFramework\v4.0.30319\"
            Result="exists"
           />

    <PackageGroup Id="MyExePackage">
        <ExePackage
          SourceFile="..\Prerequisites\dotNetFx40_Full_x86_x64.exe"
          DetectCondition="NET4FrameWorkInstalled"/>
        <ExePackage
          SourceFile="..\Prerequisites\vcdxstp.exe"
          DetectCondition="VideoCapX"/>
              <ExePackage
          SourceFile="..\Prerequisites\ic_3.2_activex_runtime_setup.exe"
          DetectCondition="(ICImagingRuntime) OR (ICImagingFull)" />
        <ExePackage
          SourceFile="..\Prerequisites\USB4_Setup_34.EXE"
          DetectCondition="USB4" />
    </PackageGroup>
  </Fragment>
</Wix>




Log File:
[0FD8:13C0][2015-01-15T09:32:07]i001: Burn v3.9.1006.0, Windows v6.1 (Build
7601: Service Pack 1), path:
C:\Users\andersl\Downloads\PicturePerfectPackage(1).exe, cmdline:
'-burn.unelevated BurnPipe.{9B965B2D-0BF8-43FC-A5AB-6DCEE20BD99F}
{0FB63523-103C-44A7-8479-B0BE79AFBD72} 4200 '
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting string variable 'WixBundleLog' to 
value 'C:\Users\andersl\AppData\Local\Temp\Setup_20150115093207.log'
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting string variable 
'WixBundleOriginalSource' to value 
'C:\Users\andersl\Downloads\PicturePerfectPackage(1).exe'
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting string variable 
'WixBundleOriginalSourceFolder' to value 'C:\Users\andersl\Downloads\'
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting string variable 'WixBundleName' 
to value ''
[0FD8:1024][2015-01-15T09:32:07]i000: Setting version variable 
'WixBundleFileVersion' to value '1.0.0.0'
[0FD8:13C0][2015-01-15T09:32:07]i100: Detect begin, 7 packages
[0FD8:13C0][2015-01-15T09:32:07]i000: Registry key not found. Key = 
'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\IC Imaging Control 
3.2_is1\'
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 
'ICImagingFullInstalled' to value 0
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 
'ICImagingRunTimeInstalled' to value 1
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 
'NET4FrameworkInstalled' to value 1
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 'USB4Installed' 
to value 1
[0FD8:13C0][2015-01-15T09:32:07]i000: Registry value not found. Key = 
'SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x64\', Value = '(null)'
[0FD8:13C0][2015-01-15T09:32:07]i000: Registry value not found. Key = 
'SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x86\', Value = '(null)'
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 
'VideoCapXInstalled' to value 1
[0FD8:13C0][2015-01-15T09:32:07]i000: Setting numeric variable 
'VideoCapXAltInstalled' to value 1
[0FD8:13C0][2015-01-15T09:32:07]i102: Detected related bundle:
{f5df3fcf-f56d-4e3a-83f2-04348ad5518d}, type: Upgrade, scope: PerUser,
version: 1.0.0.0, operation: None
[0FD8:13C0][2015-01-15T09:32:07]i052: Condition 'NET4FrameWorkInstalled'
evaluates to false.
[0FD8:13C0][2015-01-15T09:32:07]i052: Condition 'VideoCapX' evaluates to false.
[0FD8:13C0][2015-01-15T09:32:07]i052: Condition '(ICImagingRuntime) OR 
(ICImagingFull)' evaluates to false.
[0FD8:13C0][2015-01-15T09:32:07]i052: Condition 'USB4' evaluates to false.
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package:
dotNetFx40_Full_x86_x64.exe, state: Absent, cached: None
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package:
vcredist_x64_1_.exe, state: Unknown, cached: None
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package:
vcredist_x86_1_.exe, state: Unknown, cached: None
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package: vcdxstp.exe, state:
Absent, cached: None
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package:
ic_3.2_activex_runtime_setup.exe, state: Absent, cached: None
[0FD8:13C0][2015-01-15T09:32:07]i101: Detected package: USB4_Setup_34.EXE,
state: Absent, cached: None
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to