I am having a
problem where an MSI built with WiX is not installing in silent mode using
"msiexec /qn /i update.msi", but it installs just fine in UI
mode.
I am using the WiX
toolset version 3.0.1319.0 and building an x86 version of my
MSI.
Here is the
pertinent code. It is supposed to find a directory location through the
registry.
<Condition
Message="$(var.prod.name) is not installed. Please install it before trying again.">
<![CDATA[(MYDIR AND MYGUIVERDIR) OR REMOVE]]>
</Condition>
Message="$(var.prod.name) is not installed. Please install it before trying again.">
<![CDATA[(MYDIR AND MYGUIVERDIR) OR REMOVE]]>
</Condition>
...
<Property Id="MYGUIVERDIR">
<RegistrySearch Id="REG_MY_GUIVERSION" Root="HKLM" Key="SOFTWARE\COMPANY\DIRECTORY" Name="GuiVersionDir" Type="directory" Win64="$(var.Win64)" />
</Property>
<RegistrySearch Id="REG_MY_GUIVERSION" Root="HKLM" Key="SOFTWARE\COMPANY\DIRECTORY" Name="GuiVersionDir" Type="directory" Win64="$(var.Win64)" />
</Property>
<Property Id="MYDIR">
<RegistrySearch Id="REG_MY_LOCATION" Root="HKLM" Key="SOFTWARE\COMPANY\DIRECTORY" Name="Location" Type="directory" Win64="$(var.Win64)" />
</Property>
Orca shows this in the LaunchCondition table:
The
Condition column: "(PMXSDIR AND PMXSGUIVERDIR) OR
REMOVE"
The
Description column: "<my product> for Windows is not installed. Please
install it before trying again."
And the
RegLocator tables looks OK too. It has REG_MY_LOCATION and REG_MY_GUIVERSION in the Signature column as I would
expect.
In UI mode,
regmon shows the registry being probed in the location expected, but not in
silent mode.
Has anyone
experienced this before where silent installs fail, but the UI mode install is
OK?
--
Harvey Werner / [EMAIL PROTECTED] /
971.327.5279
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users