WiX Burn 3.7 and Postgresql Registry Search fail -
i'm trying build bundle postgresql prerequisite. i'm trying detect postgresql searching registry follows:
<fragment> <util:registrysearch id ="postgresqlpath_x64" root="hklm" key="software\postgresql\installations\postgresql-x64-9.1" result="exists" variable="postgresqlinstalled_x64" win64="yes" /> <util:registrysearch id="postgresql_x86" root="hklm" key="software\postgresql\installations\postgresql-9.1" result="exists" variable="postgresqlinstalled_x86" win64="no"/> and use in exepackage:
<exepackage sourcefile="..\..\bin\external_software\postgresql\postgresql-9.1.6-1-windows-x64.exe" installcommand="$(var.postgresqlinstallcommand)" installcondition="versionnt64" detectcondition="postgresqlinstalled_x64" permachine="yes" compressed="yes"/> <exepackage sourcefile="..\..\bin\external_software\postgresql\postgresql-9.1.6-1-windows.exe" installcommand="$(var.postgresqlinstallcommand)" installcondition="(not versionnt64)" detectcondition="postgresqlinstalled_x86" permachine="yes" compressed="yes" /> it evaluates false when postgresql installed, no matter on win version (x86 or x64) i'm testing.
doing wrong here or? :/
here compete log file of install:
[072c:0664][2013-10-08t15:32:15]i001: burn v3.7.1224.0, windows v6.1 (build 7601: service pack 1), path: c:\users\a521064\desktop\slim_bootstrapper.exe, cmdline: '' [072c:0664][2013-10-08t15:32:15]i000: initializing string variable 'postgresqluninstall' value 'postgresql\9.1\uninstall-postgresql.exe' [072c:0664][2013-10-08t15:32:15]i000: setting string variable 'wixbundlelog' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215.log' [072c:0664][2013-10-08t15:32:15]i000: setting string variable 'wixbundleoriginalsource' value 'c:\users\a521064\desktop\slim_bootstrapper.exe' [072c:0664][2013-10-08t15:32:15]i052: condition 'versionnt >= v5.1' evaluates true. [072c:0664][2013-10-08t15:32:15]i000: setting string variable 'wixbundlename' value 'slim controller (bundle)' [072c:0664][2013-10-08t15:32:16]i100: detect begin, 3 packages [072c:0664][2013-10-08t15:32:16]i052: condition 'postgresqlinstalled_x64' evaluates false. [072c:0664][2013-10-08t15:32:16]i052: condition 'postgresqlinstalled_x86 or postgresqlinstalled_x86_2' evaluates false. [072c:0664][2013-10-08t15:32:16]i101: detected package: postgresql_9.1.6_1_windows_x64.exe, state: absent, cached: none [072c:0664][2013-10-08t15:32:16]i101: detected package: postgresql_9.1.6_1_windows.exe, state: absent, cached: none [072c:0664][2013-10-08t15:32:16]i101: detected package: sliminstall.msi, state: absent, cached: none [072c:0664][2013-10-08t15:32:16]i199: detect complete, result: 0x0 [072c:0664][2013-10-08t15:32:17]i200: plan begin, 3 packages, action: install [072c:0664][2013-10-08t15:32:17]i052: condition 'versionnt64' evaluates true. [072c:0664][2013-10-08t15:32:17]w321: skipping dependency registration on package no dependency providers: postgresql_9.1.6_1_windows_x64.exe [072c:0664][2013-10-08t15:32:17]i000: setting string variable 'wixbundlelog_postgresql_9.1.6_1_windows_x64.exe' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_0_postgresql_9.1.6_1_windows_x64.exe.log' [072c:0664][2013-10-08t15:32:17]i000: setting string variable 'wixbundlerollbacklog_postgresql_9.1.6_1_windows_x64.exe' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_0_postgresql_9.1.6_1_windows_x64.exe_rollback.log' [072c:0664][2013-10-08t15:32:17]i052: condition '(not versionnt64)' evaluates false. [072c:0664][2013-10-08t15:32:17]w321: skipping dependency registration on package no dependency providers: postgresql_9.1.6_1_windows.exe [072c:0664][2013-10-08t15:32:17]i052: condition 'versionnt64 >= v5.1' evaluates true. [072c:0664][2013-10-08t15:32:17]i000: setting string variable 'wixbundlerollbacklog_sliminstall.msi' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_1_sliminstall.msi_rollback.log' [072c:0664][2013-10-08t15:32:17]i000: setting string variable 'wixbundlelog_sliminstall.msi' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_1_sliminstall.msi.log' [072c:0664][2013-10-08t15:32:17]i201: planned package: postgresql_9.1.6_1_windows_x64.exe, state: absent, default requested: present, ba requested: present, execute: install, rollback: uninstall, cache: yes, uncache: no, dependency: none [072c:0664][2013-10-08t15:32:17]i201: planned package: postgresql_9.1.6_1_windows.exe, state: absent, default requested: absent, ba requested: absent, execute: none, rollback: none, cache: no, uncache: no, dependency: none [072c:0664][2013-10-08t15:32:17]i201: planned package: sliminstall.msi, state: absent, default requested: present, ba requested: present, execute: install, rollback: uninstall, cache: yes, uncache: no, dependency: register [072c:0664][2013-10-08t15:32:17]i299: plan complete, result: 0x0 [072c:0664][2013-10-08t15:32:17]i300: apply begin [0b08:0ab8][2013-10-08t15:32:20]i360: creating system restore point. [0b08:0ab8][2013-10-08t15:32:33]i361: created system restore point. [0b08:0ab8][2013-10-08t15:32:33]i000: caching bundle from: 'c:\users\a521064\appdata\local\temp\{cef60084-9565-4990-b3d6-2704a4475eab}\.be\slim_bootstrapper.exe' to: 'c:\programdata\package cache\{cef60084-9565-4990-b3d6-2704a4475eab}\slim_bootstrapper.exe' [0b08:0ab8][2013-10-08t15:32:33]i320: registering bundle dependency provider: {cef60084-9565-4990-b3d6-2704a4475eab}, version: 0.9.18.0 [0b08:0960][2013-10-08t15:32:39]i305: verified acquired payload: postgresql_9.1.6_1_windows_x64.exe @ path: c:\programdata\package cache\.unverified\postgresql_9.1.6_1_windows_x64.exe, moving to: c:\programdata\package cache\e8dc6f6a96d4a4821f149fa9ca67b35c506645c1\postgresql-9.1.6-1-windows-x64.exe. [0b08:0960][2013-10-08t15:32:39]i305: verified acquired payload: sliminstall.msi @ path: c:\programdata\package cache\.unverified\sliminstall.msi, moving to: c:\programdata\package cache\{4e9dae71-ac58-4a0c-a63f-2ac752c983ef}v0.9.19\sliminstall.msi. [0b08:0ab8][2013-10-08t15:32:40]i301: applying execute package: postgresql_9.1.6_1_windows_x64.exe, action: install, path: c:\programdata\package cache\e8dc6f6a96d4a4821f149fa9ca67b35c506645c1\postgresql-9.1.6-1-windows-x64.exe, arguments: '"c:\programdata\package cache\e8dc6f6a96d4a4821f149fa9ca67b35c506645c1\postgresql-9.1.6-1-windows-x64.exe" --mode unattended --superpassword postgres --servicepassword postgres --debuglevel 4 --unattendedmodeui none --install_runtimes 0' [072c:0664][2013-10-08t15:34:01]i319: applied execute package: postgresql_9.1.6_1_windows_x64.exe, result: 0x0, restart: none [0b08:0ab8][2013-10-08t15:34:01]i323: registering package dependency provider: {4e9dae71-ac58-4a0c-a63f-2ac752c983ef}, version: 0.9.19, package: sliminstall.msi [0b08:0ab8][2013-10-08t15:34:01]i301: applying execute package: sliminstall.msi, action: install, path: c:\programdata\package cache\{4e9dae71-ac58-4a0c-a63f-2ac752c983ef}v0.9.19\sliminstall.msi, arguments: ' arpsystemcomponent="1" msifastinstall="7"' [072c:0664][2013-10-08t15:34:42]i319: applied execute package: sliminstall.msi, result: 0x0, restart: none [0b08:0ab8][2013-10-08t15:34:42]i325: registering dependency: {cef60084-9565-4990-b3d6-2704a4475eab} on package provider: {4e9dae71-ac58-4a0c-a63f-2ac752c983ef}, package: sliminstall.msi [072c:0664][2013-10-08t15:34:42]i399: apply complete, result: 0x0, restart: none, ba requested restart: no [072c:0664][2013-10-08t15:34:45]i500: shutting down, exit code: 0x0 [072c:0664][2013-10-08t15:34:45]i410: variable: postgresqluninstall = postgresql\9.1\uninstall-postgresql.exe [072c:0664][2013-10-08t15:34:45]i410: variable: versionnt = 6.1.0.0 [072c:0664][2013-10-08t15:34:45]i410: variable: versionnt64 = 6.1.0.0 [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleaction = 4 [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleelevated = 1 [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleinstalled = 0 [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlelog = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215.log [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlelog_postgresql_9.1.6_1_windows_x64.exe = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_0_postgresql_9.1.6_1_windows_x64.exe.log [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlelog_sliminstall.msi = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_1_sliminstall.msi.log [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlemanufacturer = atos solutions , services [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlename = slim controller (bundle) [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleoriginalsource = c:\users\a521064\desktop\slim_bootstrapper.exe [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleproviderkey = {cef60084-9565-4990-b3d6-2704a4475eab} [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlerollbacklog_postgresql_9.1.6_1_windows_x64.exe = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_0_postgresql_9.1.6_1_windows_x64.exe_rollback.log [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundlerollbacklog_sliminstall.msi = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008153215_1_sliminstall.msi_rollback.log [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundletag = [072c:0664][2013-10-08t15:34:45]i410: variable: wixbundleversion = 0.9.18.0 [072c:0664][2013-10-08t15:34:45]i007: exit code: 0x0, restarting: no and on uninstall again doesn't find reg key:
[0ac0:05e0][2013-10-08t15:47:54]i001: burn v3.7.1224.0, windows v6.1 (build 7601: service pack 1), path: c:\users\a521064\desktop\slim_bootstrapper.exe, cmdline: '' [0ac0:05e0][2013-10-08t15:47:54]i000: initializing string variable 'postgresqluninstall' value 'postgresql\9.1\uninstall-postgresql.exe' [0ac0:05e0][2013-10-08t15:47:54]i000: setting string variable 'wixbundlelog' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754.log' [0ac0:05e0][2013-10-08t15:47:54]i000: setting string variable 'wixbundleoriginalsource' value 'c:\users\a521064\desktop\slim_bootstrapper.exe' [0ac0:05e0][2013-10-08t15:47:54]i052: condition 'versionnt >= v5.1' evaluates true. [0ac0:05e0][2013-10-08t15:47:54]i100: detect begin, 3 packages [0ac0:05e0][2013-10-08t15:47:54]i052: condition 'postgresqlinstalled_x64' evaluates false. [0ac0:05e0][2013-10-08t15:47:54]i052: condition 'postgresqlinstalled_x86 or postgresqlinstalled_x86_2' evaluates false. [0ac0:05e0][2013-10-08t15:47:54]i101: detected package: postgresql_9.1.6_1_windows_x64.exe, state: absent, cached: complete [0ac0:05e0][2013-10-08t15:47:54]i101: detected package: postgresql_9.1.6_1_windows.exe, state: absent, cached: none [0ac0:05e0][2013-10-08t15:47:54]i101: detected package: sliminstall.msi, state: present, cached: complete [0ac0:05e0][2013-10-08t15:47:54]i199: detect complete, result: 0x0 [0ac0:05e0][2013-10-08t15:48:07]i200: plan begin, 3 packages, action: uninstall [0ac0:05e0][2013-10-08t15:48:07]i000: setting string variable 'wixbundlerollbacklog_sliminstall.msi' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754_0_sliminstall.msi_rollback.log' [0ac0:05e0][2013-10-08t15:48:07]i000: setting string variable 'wixbundlelog_sliminstall.msi' value 'c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754_0_sliminstall.msi.log' [0ac0:05e0][2013-10-08t15:48:07]w321: skipping dependency registration on package no dependency providers: postgresql_9.1.6_1_windows.exe [0ac0:05e0][2013-10-08t15:48:07]w321: skipping dependency registration on package no dependency providers: postgresql_9.1.6_1_windows_x64.exe [0ac0:05e0][2013-10-08t15:48:07]i201: planned package: sliminstall.msi, state: present, default requested: absent, ba requested: absent, execute: uninstall, rollback: install, cache: no, uncache: yes, dependency: unregister [0ac0:05e0][2013-10-08t15:48:07]i201: planned package: postgresql_9.1.6_1_windows.exe, state: absent, default requested: absent, ba requested: absent, execute: none, rollback: none, cache: no, uncache: no, dependency: none [0ac0:05e0][2013-10-08t15:48:07]i201: planned package: postgresql_9.1.6_1_windows_x64.exe, state: absent, default requested: absent, ba requested: absent, execute: none, rollback: none, cache: no, uncache: yes, dependency: none [0ac0:05e0][2013-10-08t15:48:07]i299: plan complete, result: 0x0 [0ac0:05e0][2013-10-08t15:48:07]i300: apply begin [0600:0b3c][2013-10-08t15:48:09]i360: creating system restore point. [0600:0b3c][2013-10-08t15:48:19]i361: created system restore point. [0600:0b3c][2013-10-08t15:48:19]i326: removed dependency: {cef60084-9565-4990-b3d6-2704a4475eab} on package provider: {4e9dae71-ac58-4a0c-a63f-2ac752c983ef}, package sliminstall.msi [0600:0b3c][2013-10-08t15:48:19]i329: removed package dependency provider: {4e9dae71-ac58-4a0c-a63f-2ac752c983ef}, package: sliminstall.msi [0600:0b3c][2013-10-08t15:48:19]i301: applying execute package: sliminstall.msi, action: uninstall, path: c:\programdata\package cache\{4e9dae71-ac58-4a0c-a63f-2ac752c983ef}v0.9.19\sliminstall.msi, arguments: ' arpsystemcomponent="1" msifastinstall="7"' [0ac0:05e0][2013-10-08t15:48:22]i319: applied execute package: sliminstall.msi, result: 0x0, restart: none [0600:0b3c][2013-10-08t15:48:22]i351: removing cached package: sliminstall.msi, path: c:\programdata\package cache\{4e9dae71-ac58-4a0c-a63f-2ac752c983ef}v0.9.19\ [0600:0b3c][2013-10-08t15:48:22]i351: removing cached package: postgresql_9.1.6_1_windows_x64.exe, path: c:\programdata\package cache\e8dc6f6a96d4a4821f149fa9ca67b35c506645c1\ [0600:0b3c][2013-10-08t15:48:22]i330: removed bundle dependency provider: {cef60084-9565-4990-b3d6-2704a4475eab} [0600:0b3c][2013-10-08t15:48:22]i352: removing cached bundle: {cef60084-9565-4990-b3d6-2704a4475eab}, path: c:\programdata\package cache\{cef60084-9565-4990-b3d6-2704a4475eab}\ [0ac0:05e0][2013-10-08t15:48:23]i399: apply complete, result: 0x0, restart: none, ba requested restart: no [0ac0:05e0][2013-10-08t15:48:43]i500: shutting down, exit code: 0x0 [0ac0:05e0][2013-10-08t15:48:43]i410: variable: postgresqluninstall = postgresql\9.1\uninstall-postgresql.exe [0ac0:05e0][2013-10-08t15:48:43]i410: variable: versionnt = 6.1.0.0 [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleaction = 3 [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleelevated = 1 [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleinstalled = 1 [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundlelog = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754.log [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundlelog_sliminstall.msi = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754_0_sliminstall.msi.log [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundlemanufacturer = atos solutions , services [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundlename = slim controller (bundle) [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleoriginalsource = c:\users\a521064\desktop\slim_bootstrapper.exe [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleproviderkey = {cef60084-9565-4990-b3d6-2704a4475eab} [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundlerollbacklog_sliminstall.msi = c:\users\a521064\appdata\local\temp\slim_controller_(bundle)_20131008154754_0_sliminstall.msi_rollback.log [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundletag = [0ac0:05e0][2013-10-08t15:48:43]i410: variable: wixbundleversion = 0.9.18.0 [0ac0:05e0][2013-10-08t15:48:43]i007: exit code: 0x0, restarting: no regsearch msi works:
<property id="postgresqlx64"> <registrysearch id='postgresqlx64regsearch' root='hklm' key='software\postgresql\installations\postgresql-x64-9.1' name="version" win64="yes" type ="raw" /> </property> and log:
appsearch: property: postgresqlx64, signature: postgresqlx64regsearch msi (c) (08:4c) [15:34:04:011]: note: 1: 2262 2: signature 3: -2147287038 msi (c) (08:4c) [15:34:04:011]: property change: adding postgresqlx64 property. value '9.1.6.1'. appsearch: property: postgresql_service, signature: postgresqlserviceregsearch
burn not calling either of registrysearch elements because you've defined them in <fragment> haven't referenced them in <bundle>.
you can 1 of following:
- add
<util:registrysearchref>elements inside<bundle> - nest
<util:registrysearch>elements under<bundle>
according rob mensching in mailing list post, referencing item in fragment <foobarref> element brings in whole fragment:
when 1 thing referenced in fragment whole fragment pulled in.... other elements list typically support elements can go in item can referenced. example, xxxsequence elements can go in fragment customaction being scheduled. use customactionref say, "hey, want customaction , don't want think how gets scheduled."
when <registrysearch> elements being referenced, you'll see log entries this:
[2218:2f1c][2013-10-09t10:59:02]i000: setting numeric variable 'postgresqlinstalled_x64' value 0
Comments
Post a Comment