Thanks for the tip on the AddFeature.  However, to be more specific for
others, the actual events you want to use are AddLocal and AddSource,
because if you go looking for an AddFeature event you won't find one.

Joel Phelps
Sentinel / eCollections Software
(515) 564-0585

-----Original Message-----
From: wix-users-requ...@lists.sourceforge.net
[mailto:wix-users-requ...@lists.sourceforge.net] 
Sent: Saturday, July 31, 2010 4:47 PM
To: wix-users@lists.sourceforge.net
Subject: WiX-users Digest, Vol 50, Issue 168

Send WiX-users mailing list submissions to
        wix-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        wix-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        wix-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WiX-users digest..."


Today's Topics:

   1.  Feature Tree and Remove problem (Joel Phelps)
   2. Re: Feature Tree and Remove problem (Blair)
   3. WiX problem on Vista (S.P)
   4. Re: WiX problem on Vista (Blair)
   5. From DLL: UI mode and setup mode (Lukas Haase)
   6. Re: From DLL: UI mode and setup mode (Blair)
   7. Re: WiX problem on Vista (Rob Mensching)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Jul 2010 15:41:35 -0500
From: "Joel Phelps" <joel.phe...@ecollections.com>
Subject: [WiX-users]  Feature Tree and Remove problem
To: <wix-users@lists.sourceforge.net>
Message-ID:
        <14550066402fb742af4a9f2226ded7658ac...@pleiades.sentinel1.com>
Content-Type: text/plain;       charset="US-ASCII"

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



------------------------------

Message: 2
Date: Fri, 30 Jul 2010 14:40:18 -0700
From: "Blair" <os...@live.com>
Subject: Re: [WiX-users] Feature Tree and Remove problem
To: "'General discussion for Windows Installer XML toolset.'"
        <wix-users@lists.sourceforge.net>
Message-ID: <blu111-ds654862bf2dd200aa7c836cd...@phx.gbl>
Content-Type: text/plain; charset="us-ascii"

INSTALLLEVEL defaults to 1, and isn't changed until after CostFinalize
when
initial feature states are computed. You would need to instead send the
AddFeature event targeting Product_Full instead of (or in addition to)
changing INSTALLLEVEL.

-----Original Message-----
From: Joel Phelps [mailto:joel.phe...@ecollections.com] 
Sent: Friday, July 30, 2010 1:42 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Feature Tree and Remove problem

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




------------------------------

Message: 3
Date: Sat, 31 Jul 2010 03:08:48 -0700 (PDT)
From: "S.P" <iraniangirl9...@yahoo.com>
Subject: [WiX-users] WiX problem on Vista
To: wix-users@lists.sourceforge.net
Message-ID: <981610.97279...@web114507.mail.gq1.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Dear All,
?
I have an installer which can have different versions such as V1.7,
V1.8, etc.
After installin each version, we have some problems with uninstalling
it.
When we uninstall V1.8, it also uninstalls V1.7 or disables it.? This is
not on all machines.? The primary one we have seen the problem is on
Vista.? Unfortunately, we don't have a lot of different machines to
fully test this issue.But it works well on XP.
?
Does anybody know the reason?
?
Thanks in advance



------------------------------

Message: 4
Date: Sat, 31 Jul 2010 10:19:08 -0700
From: "Blair" <os...@live.com>
Subject: Re: [WiX-users] WiX problem on Vista
To: "'General discussion for Windows Installer XML toolset.'"
        <wix-users@lists.sourceforge.net>
Message-ID: <blu111-ds7007383c6e631f0c8867bcd...@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

Hard to say with such limited information, but my best guess would be a
problem with component rule violations. You really don't give enough of
the
right information to make concrete diagnosis and give good advice.

-----Original Message-----
From: S.P [mailto:iraniangirl9...@yahoo.com] 
Sent: Saturday, July 31, 2010 3:09 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] WiX problem on Vista

Dear All,
?
I have an installer which can have different versions such as V1.7,
V1.8,
etc.
After installin each version, we have some problems with uninstalling
it.
When we uninstall V1.8, it also uninstalls V1.7 or disables it.? This is
not
on all machines.? The primary one we have seen the problem is on Vista.?
Unfortunately, we don't have a lot of different machines to fully test
this
issue.But it works well on XP.
?
Does anybody know the reason?
?
Thanks in advance

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




------------------------------

Message: 5
Date: Sat, 31 Jul 2010 19:29:56 +0200
From: Lukas Haase <lukasha...@gmx.at>
Subject: [WiX-users] From DLL: UI mode and setup mode
To: wix-users@lists.sourceforge.net
Message-ID: <i31mio$lr...@dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hi,

I looked at the docs at 
http://msdn.microsoft.com/en-us/library/aa368250%28VS.85%29.aspx but I 
could not find any information:

Within a DLL extension for MSI, how can I found out ...

a) In which UI mode I am (full, reduced, simple, no)
b) If I am called in InstallUISequence or InstallExecuteSequence
c) If I am called in setup mode, repair mode or uninstall mode?

I need at least (c) because my function should only be called on a fresh

install.

I need (a) because in case of a full/reduced UI I want to have 
MsiProcessMessage, in the other cases I want to do "silent" action.

Regards,
  Luke




------------------------------

Message: 6
Date: Sat, 31 Jul 2010 13:51:30 -0700
From: "Blair" <os...@live.com>
Subject: Re: [WiX-users] From DLL: UI mode and setup mode
To: "'General discussion for Windows Installer XML toolset.'"
        <wix-users@lists.sourceforge.net>
Message-ID: <blu111-ds172b1e4add6d243b9eef3ecd...@phx.gbl>
Content-Type: text/plain; charset="us-ascii"

a) - from http://msdn.microsoft.com/library/aa368281.aspx - UILevel
property
(read from session). Note that you can always safely call
MsiProcessMessage.
If the UI does not allow your message, it will be added to any log AND
some
sort of default response will be returned.

b) - Not sure, but you can schedule actions such that they exist in both
sequences yet only run once.

c) - one solution to this is found here:
http://code.dblock.org/ShowPost.aspx?id=42. The "canonical" way is to
wait
until after CostFinalize and then use either component or feature
action/status states (pick either a feature or a component that relates
to
the action's target, and act based on both the current and the action
state).

-----Original Message-----
From: Lukas Haase [mailto:lukasha...@gmx.at] 
Sent: Saturday, July 31, 2010 10:30 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] From DLL: UI mode and setup mode

Hi,

I looked at the docs at 
http://msdn.microsoft.com/en-us/library/aa368250%28VS.85%29.aspx but I 
could not find any information:

Within a DLL extension for MSI, how can I found out ...

a) In which UI mode I am (full, reduced, simple, no)
b) If I am called in InstallUISequence or InstallExecuteSequence
c) If I am called in setup mode, repair mode or uninstall mode?

I need at least (c) because my function should only be called on a fresh

install.

I need (a) because in case of a full/reduced UI I want to have 
MsiProcessMessage, in the other cases I want to do "silent" action.

Regards,
  Luke


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




------------------------------

Message: 7
Date: Sat, 31 Jul 2010 14:44:51 -0700
From: Rob Mensching <r...@robmensching.com>
Subject: Re: [WiX-users] WiX problem on Vista
To: "General discussion for Windows Installer XML toolset."
        <wix-users@lists.sourceforge.net>
Message-ID:
        <aanlkti=dtaoj+fb1zypk4=va4nqc4hfnccaekdy9v...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

What does the verbose log file say?

On Sat, Jul 31, 2010 at 10:19 AM, Blair <os...@live.com> wrote:

> Hard to say with such limited information, but my best guess would be
a
> problem with component rule violations. You really don't give enough
of the
> right information to make concrete diagnosis and give good advice.
>
> -----Original Message-----
> From: S.P [mailto:iraniangirl9...@yahoo.com]
> Sent: Saturday, July 31, 2010 3:09 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] WiX problem on Vista
>
> Dear All,
>
> I have an installer which can have different versions such as V1.7,
V1.8,
> etc.
> After installin each version, we have some problems with uninstalling
it.
> When we uninstall V1.8, it also uninstalls V1.7 or disables it.  This
is
> not
> on all machines.  The primary one we have seen the problem is on
Vista.
> Unfortunately, we don't have a lot of different machines to fully test
this
> issue.But it works well on XP.
>
> Does anybody know the reason?
>
> Thanks in advance
>
>
>
------------------------------------------------------------------------
----
> --
> 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
>
>
>
>
------------------------------------------------------------------------
------
> 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
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC


------------------------------

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


End of WiX-users Digest, Vol 50, Issue 168
******************************************


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