Ok,

I've seen around the web this is a good place to ask questions about
WiX.  I have been working on an install for one of my company's
products.  I've run into a couple of issues that I have not been able to
figure out.

1. When selecting custom install, this brings up the feature tree with
all features listed initially as "Entire feature will be unavailable".
You can change the features as expected and everything installs fine,
but I'd like to set the custom install to default certain features to
"Will be installed on local hard drive" or "Entire feature will be
installed on local hard drive" instead of "Entire feature will be
unavailable".

I'm using WixUI_Mondo with one custom dialog I added.

Here is my feature tree.
        <!--Top level feature-->
        <Feature Id="Product_Full"
                 Title="Product Suite"
                 Display="expand"
                 TypicalDefault="install"
                 AllowAdvertise="no"
                 InstallDefault="local"
                 Level="3">
            <ComponentRef Id="Empty"/>
            <!--Sub Group for client applications-->
            <Feature Id="Client"
                     Title="Client"
                     Description="Installs the client software needed to
use the Product system."
                     Display="expand"
                     Level="1"
                     TypicalDefault="install"
                     InstallDefault="local"
                     AllowAdvertise="no"
                     ConfigurableDirectory="INSTALLDIR">
                    <ComponentGroupRef Id="Product_Components"/>
            </Feature>
        </Feature>

Here is the UI entries
<!--Wix UI Entries-->
        <UI Id="Product_Mondo">
            <UIRef Id="WixUI_Mondo" />
            <UIRef Id="WixUI_ErrorProgressText" />

            <DialogRef Id="ProductRegistrationDlg"/>

            <Publish Dialog="LicenseAgreementDlg" Control="Next"
Event="NewDialog" Value=" ProductRegistrationDlg "
Order="3">LicenseAccepted = "1"</Publish>
            <Publish Dialog="SetupTypeDlg" Control="Back"
Event="NewDialog" Value=" ProductRegistrationDlg ">1</Publish>
            <Publish Dialog="SetupTypeDlg" Control="CustomButton"
Property="INSTALLLEVEL" Value="3">1</Publish>
            <!--<Publish Dialog="SetupTypeDlg" Control="CustomButton"
Property="SetInstallLevel" Value="3">1</Publish>-->
        </UI>
        <!--Wix UI Entries-->

I tried both of the Publish elements on the CustomButtom individually
hoping one or the other would enable the features I want, but alas
neither did. 

2. Error when clicking Remove in Add Remove Programs

Currently, if you use the install and then go to Add Remove Programs and
click the remove button the remove process throws the following error

"The installer has encountered an unexpected error installing this
package.  This may indicate a problem with this package. The error code
is 2343."

However, if you click change in Add Remove Programs and then click the
remove button in the installer the change button brings up, it works
fine.  I looked up the error which is "Specified path is empty."
Unfortunately, this and my FileMon logging didn't reveal anything.  If
anyone has any ideas or knows what command is run when the remove button
is clicked so I can turn on verbose logging I'm all ears.

Joel Phelps

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to