Brian, thanks for the quick reply.

Let me elaborate what I am doing a little more.  I need to display some
custom dialogs durin uninstall.  So, I followed the technique as described
in http://www.pcreview.co.ui/forums/thread-1544595.php.  Basically I set ARP
SYSTEMCOMPONENT to 1.  And then I create new registry entry to specify my
own UninstallString to "msiexec /x {ProductCode} /qf", which gives me full
UI during uninstall.

But this seems to mess up the Preselected property.

One thing I can do is to make my own copy of ProgressDlg.wxs and fix the
condition to TitleInstalling by removing Preselected out of the condition.
But should I worry about Preselected having other uses in other parts of the
uninstall process?

Thanks!

Charles


On 6/1/07, Brian Simoneau <[EMAIL PROTECTED]> wrote:

 I think using /x to indicate uninstall will set REMOVE=ALL.

-Brian Simoneau

 -----Original Message-----
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Charles Wan-Calo
*Sent:* Friday, June 01, 2007 2:14 PM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] Preselected is set to 1 during uninstall?

Hi, All WiX experts,

I am using WiX 2.0 to make a .msi file for my project.

I am having problem when running uninstall in full UI mode
msiexec /x my.msi /qf

The Preselected property is set to 1.  This messes up the title of
ProgressDlg, where both "Installing [product name]" and "Removing [product
name]" are displayed at the same time in the dialog, which makes it look
ugly.

In ProgressDlg.wxs, <Control Id="TitleInstalling> has a condition:
NOT Installed OR (Installed AND (RESUME OR Preselected) AND NOT PATCH)

This TitleInstalling is not supposed to be shown during uninstall.  But it
did because the condition is true, and that's because "Installed" is true
and "Preselec"t is 1.

The reason that Preselected is 1 during uninstall seems to be:

According to the log, I have REMOVE=ALL. According to MSDN, if REMOVE is
present, then Preselected is set to 1.  (See here: 
http://msdn2.microsoft.com/en-us/library/aa370839.aspx
)

I didn't set REMOVE anywhere in my wxs scripts.

I need the full UI mode because I need custom dialogs to give the user an
option to remove data files generated by my app.

Can someone explain to me why Preselected is set to 1?

Thanks!

Charles


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to