Thanks, Richard. My install is working now!
 
The InstallExecuteSequence was incorrect and had LaunchConditions before AppSearch. When I reversed the order the silent install works fine.
 
-Harvey


From: Foster, Richard - PAL [mailto:[EMAIL PROTECTED]
Sent: Friday, September 01, 2006 5:41 AM
To: Harvey Werner; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem with silent installs

Harvey,
 
I'm not really familiar with silent installs, but based on comments others have made previously, I wonder if it's a sequencing issue.
 
I believe that the registry scanning would occur during the "AppSearch" process. This is typically sequenced after the "LaunchConditions", but according to the WiX documentation may be sequenced before.
 
If AppSearch is not present in your InstallExecuteSequence before the LaunchConditions, then this may be the source of your problem. (It doesn't matter if AppSearch is in both InstallExecuteSequence and InstallUISequence, it will only be triggered once - again, according to the documentation.)
 
Regards,
Richard


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harvey Werner
Sent: Thursday, August 31, 2006 19:47
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with silent installs

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>
...
 
    <Property Id="MYGUIVERDIR">
      <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
 


* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Peek Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer.

-------------------------------------------------------------------------
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

Reply via email to