Use WiXNetFxExtension instead of reinventing the wheel  -> 
http://wix.sourceforge.net/manual-wix3/wixnetfxextension.htm

Palbinder Sandher 
Software Platform Engineer 
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>** 
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer 


-----Original Message-----
From: Carlos Hdz Taylor [mailto:carlos...@live.com] 
Sent: 07 June 2013 00:06
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] MBA - .NET Framework 4 keeps trying to install

Hello guys,


I don't understand the reason why my installer tries to install the .NET 
framework 4.0 even when my machine already has it, if I look at the Logs I can 
see that the DetectCondition evaluates to true.


[0C64:09EC][2013-06-06T17:41:17]i001: Burn v3.7.1224.0, Windows v6.0 (Build 
6002: Service Pack 2), path: 
C:\Users\Administrator\Desktop\MyTestInstaller_Bootstrapper.exe, cmdline: 
'-burn.unelevated BurnPipe.{3DBC55CC-42F5-4180-9D23-E0141ED56532} 
{7B7FF465-BE75-4B62-A7FE-F5B7A2696451} 3276'
[0C64:09EC][2013-06-06T17:41:17]i000: Setting string variable 'WixBundleLog' to 
value 'C:\Users\ADMINI~1\AppData\Local\Temp\MyTestInstaller_20130606174117.log'
[0C64:09EC][2013-06-06T17:41:17]i000: Setting string variable 
'WixBundleOriginalSource' to value 
'C:\Users\Administrator\Desktop\MyTestInstaller_Bootstrapper.exe'
[0C64:09EC][2013-06-06T17:41:17]i000: Setting string variable 'WixBundleName' 
to value 'MyTestInstaller Client'
[0C64:09EC][2013-06-06T17:41:17]i000: Loading prerequisite bootstrapper 
application because managed host could not be loaded, error: 0x80131700.
[0C64:09EC][2013-06-06T17:41:17]i100: Detect begin, 3 packages
[0C64:09EC][2013-06-06T17:41:17]i000: Registry key not found. Key = 
'SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Client Profile\KB2468871'
[0C64:09EC][2013-06-06T17:41:17]i000: Registry key not found. Key = 
'SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871'
[0C64:09EC][2013-06-06T17:41:17]i000: Registry key not found. Key = 
'SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Client Profile\KB2468871'
[0C64:09EC][2013-06-06T17:41:17]i000: Registry key not found. Key = 
'SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871'
[0C64:09EC][2013-06-06T17:41:17]i000: Setting string variable 
'Netfx4x64FullVersion' to value '4.0.20506'
[0C64:09EC][2013-06-06T17:41:17]i000: Setting string variable 
'Netfx4FullVersion' to value '4.0.20506'
[0C64:09EC][2013-06-06T17:41:17]i052:Condition 'Netfx4FullVersion AND (NOT 
VersionNT64 OR Netfx4x64FullVersion)' evaluates to true.
[0C64:09EC][2013-06-06T17:41:17]i101: Detected package: Netfx4Full, state: 
Present, cached: None
[0C64:09EC][2013-06-06T17:41:17]i101: Detected package: MyTestInstaller, state: 
Absent, cached: None
[0C64:09EC][2013-06-06T17:41:17]i101: Detected package: MyTestInstallerExecPkg, 
state: Absent, cached: None
[0C64:09EC][2013-06-06T17:41:17]i199: Detect complete, result: 0x0
[0C64:09EC][2013-06-06T17:41:21]i500: Shutting down, exit code: 0x642
[0C64:09EC][2013-06-06T17:41:21]i000: The prerequisites were already installed. 
The bootstrapper application will not be reloaded to prevent an infinite loop.
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: Netfx4FullVersion = 4.0.20506
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: Netfx4x64FullVersion = 4.0.20506
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleAction = 4
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleElevated = 1
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleInstalled = 0
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleLog = 
C:\Users\ADMINI~1\AppData\Local\Temp\MyTestInstaller_20130606174117.log
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleManufacturer = 
Microsoft
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleName = MyTestInstaler 
Client
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleOriginalSource = 
C:\Users\Administrator\Desktop\MyTestInstaller_Bootstrapper.exe
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleProviderKey = 
{42a45069-6090-4e05-a645-553ae3821596}
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleTag = 
[0C64:09EC][2013-06-06T17:41:21]i410: Variable: WixBundleVersion = 1.0.0.0
[0C64:09EC][2013-06-06T17:41:21]i007: Exit code: 0x642, restarting: No



<PackageGroup Id="Netfx4Full">
      <ExePackage Id="Netfx4Full" 
                  Cache="no" 
                  Compressed="yes" 
                  PerMachine="yes" 
                  Permanent="yes" 
                  Vital="yes"
                  SourceFile="C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\dotNetFx40_Full_x86_x64.exe"
                  DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=164193";
                  DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR 
Netfx4x64FullVersion)"
                   />

    </PackageGroup>




Any ideas?


Thanks,

Carlos


Sent from Windows Mail
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to