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