Hi, I have a burn bootstrapper bundle that includes a Fragment that I took
from the Wix sources to deal with installing .Net framework 4. Now this,
together with VC++2010 and other things are dependencies I need, but I
don't want them to be uninstalled when my app bundle in uninstalled.

So I've got the Permanent="yes" flag set, however it seems this is being
ignored as when I come to uninstall my app the uninstaller bombs out - as
it appears to be trying to uninstall .NetFx4. (The actual error is due to
it not finding the redistributable EXE locally or via a URL).

Any ideas?

Here's the wxs fragment:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
    <Fragment>

        <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Client" />

        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net
Framework Setup\NDP\v4\Client" Value="Version"
Variable="Netfx4ClientVersion" />
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net
Framework Setup\NDP\v4\Client" Value="Version"
Variable="Netfx4x64ClientVersion" Win64="yes" />

      <PackageGroup Id="Netfx4Client">
        <ExePackage Id="Netfx4Client" Cache="no" Compressed="no"
PerMachine="yes" Permanent="yes" Vital="yes"
SourceFile="dotNetFx40_Client_x86_x64.exe"
                    DownloadUrl="
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
"
                    DetectCondition="Netfx4ClientVersion AND (NOT
VersionNT64 OR Netfx4x64ClientVersion)" />
      </PackageGroup>
    </Fragment>
</Wix>


And here's the log:

[09DC:09E8][2011-11-08T20:26:48]: Burn v3.6.2221.0, path: C:\Documents and
Settings\All Users\Application Data\Package
Cache\{c654b056-9225-4c99-ae39-ed91660726a9}\MyApp.exe, cmdline:
'/uninstall'
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable 'WixBundleName'
to value 'MyApp (Preview Version)'
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable 'WixBundleLog' to
value
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\MyApp_(Preview_Version)_20111108202648.log'
[09DC:09E8][2011-11-08T20:26:48]: Detect 4 packages
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable
'Netfx4ClientVersion' to value '4.0.30319'
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable 'VC2010Installed'
to value 'v10.0.40219.325'
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable
'Netfx4x64ClientVersion' to value '4.0.30319'
[09DC:09E8][2011-11-08T20:26:48]: Setting string variable
'VC2010x64Installed' to value 'v10.0.40219.325'
[09DC:09E8][2011-11-08T20:26:48]: Registry key not found. Key =
'SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full'
[09DC:09E8][2011-11-08T20:26:48]: Registry key not found. Key =
'SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full'
[09DC:09E8][2011-11-08T20:26:48]: Condition 'VC2010Installed AND (NOT
VersionNT64 OR VC2010x64Installed)' evaluates to true.
[09DC:09E8][2011-11-08T20:26:48]: Detected package: VC2010RedistExe, state:
Present, cached: No
[09DC:09E8][2011-11-08T20:26:48]: Condition 'Netfx4ClientVersion AND (NOT
VersionNT64 OR Netfx4x64ClientVersion)' evaluates to true.
[09DC:09E8][2011-11-08T20:26:48]: Detected package: Netfx4Client, state:
Present, cached: No
[09DC:09E8][2011-11-08T20:26:48]: Detected package: DepPackage1.exe, state:
Absent, cached: Yes
[09DC:09E8][2011-11-08T20:26:48]: Detected package: MyApp.msi, state:
Present, cached: Yes
[09DC:09E8][2011-11-08T20:26:48]: Detect complete, result: 0x0
[09DC:09E8][2011-11-08T20:26:49]: Plan 4 packages, action: Uninstall
[09DC:09E8][2011-11-08T20:26:49]: Setting string variable
'WixBundleLog_MyAll.msi' to value
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\MyApp_(Preview_Version)_20111108202648_0_MyApp.msi.log'
[09DC:09E8][2011-11-08T20:26:49]: Setting string variable
'WixBundleRollbackLog_MyApp.msi' to value
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\MyApp_(Preview_Version)_20111108202648_0_MyApp.msi_rollback.log'
[09DC:09E8][2011-11-08T20:26:49]: Planned package: MyApp.msi, state:
Present, default requested: Absent, ux requested: Absent, execute:
Uninstall, rollback: Install, cache: No, uncache: Yes, dependency:
Unregister
[09DC:09E8][2011-11-08T20:26:49]: Planned package: DepPackage1.exe, state:
Absent, default requested: Absent, ux requested: Absent, execute: None,
rollback: None, cache: No, uncache: No, dependency: Unregister
[09DC:09E8][2011-11-08T20:26:49]: Setting string variable
'WixBundleRollbackLog_Netfx4Client' to value
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\MyApp_(Preview_Version)_20111108202648_1_Netfx4Client_rollback.log'
[09DC:09E8][2011-11-08T20:26:49]: Planned package: Netfx4Client, state:
Present, default requested: Absent, ux requested: Absent, execute: None,
rollback: Install, cache: Yes, uncache: Yes, dependency: Register
[09DC:09E8][2011-11-08T20:26:49]: Setting string variable
'WixBundleRollbackLog_VC2010RedistExe' to value
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\MyApp_(Preview_Version)_20111108202648_2_VC2010RedistExe_rollback.log'
[09DC:09E8][2011-11-08T20:26:49]: Planned package: VC2010RedistExe, state:
Present, default requested: Absent, ux requested: Absent, execute: None,
rollback: Install, cache: Yes, uncache: Yes, dependency: Register
[09DC:09E8][2011-11-08T20:26:49]: Plan complete, result: 0x0
[09DC:09E8][2011-11-08T20:26:49]: Apply begin
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to send request
to URL:
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to send request
to URL:
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to connect to
URL:
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to get size and
time for URL:
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed attempt to
download URL: '
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe'
to:
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\{c654b056-9225-4c99-ae39-ed91660726a9}\Netfx4Client'
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to download
payload from URL: '
http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe'
to working path:
'C:\DOCUME~1\USER1~1\LOCALS~1\Temp\{c654b056-9225-4c99-ae39-ed91660726a9}\Netfx4Client'
[09DC:082C][2011-11-08T20:26:50]: Failed to acquire payload: Netfx4Client
to working path:
C:\DOCUME~1\USER1~1\LOCALS~1\Temp\{c654b056-9225-4c99-ae39-ed91660726a9}\Netfx4Client,
error: 0x80072ee7.
[09DC:082C][2011-11-08T20:26:50]: Error 0x80072ee7: Failed to cache
packages.
[09DC:09E8][2011-11-08T20:26:50]: Error 0x80072ee7: Failed while waiting
for cache thread to complete before executing.
[09DC:09E8][2011-11-08T20:26:50]: Apply complete, result: 0x80072ee7
restart: No
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to