For the new version to uninstall the previous, an Upgrade tag is needed with an
UpgradeVersion tag under it having the OnlyDetect attribute set to 'no':
<Upgrade Id="UPGRADE_CODE_FROM_PREV_SETUP">
<UpgradeCode OnlyDetect="no" Maximum="1.1.0" IncludeMaximum="no"/>
</Upgrade>
Note that Upgrade tag's Id attribute refers to previous setup's UpgradeCode and
not Product Guid (Product tag's Id attribute).
Dacian
----- Original Message ----
From: Levi Wilson <[EMAIL PROTECTED]>
To: Vidhya Sagar Bhogavalli (Infosys Technologies Ltd) <[EMAIL PROTECTED]>
Cc: Kansana Hariharan (Infosys Technologies Ltd) <[EMAIL PROTECTED]>;
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
Sent: Wednesday, February 21, 2007 3:50:50 PM
Subject: Re: [WiX-users] Reg. Disabling Remove from Windows Defender, and
Upgrade feature
1.) Maybe if you set the ALLUSERS property to 1 that would take care of it?
2.) Someone correct me if I'm wrong, but it sounds like a major upgrade is
what you're talking about. I think that if you change the version string it
will do a major upgrade? The major upgrade from my understanding will
uninstall the previous version, and install the new version. If you use the
same product Guid, I think that's how it finds the previous version, and you
don't have to do anything yourself. If you want to package the msi into an
exe, on the WiX sourceforge page there's a nice bootstrapper sample project
that is akin to
msistuff.exe in that, well, it is msistuff.exe with an additional option to
package an msi file right into the exe.
On 2/21/07, Vidhya Sagar Bhogavalli (Infosys Technologies Ltd)
<[EMAIL PROTECTED]> wrote:
Hi All,
I've a couple of queries
on WIX installers.
1.
I've created
an installer for Windows Vista. I've disabled the Remove feature from Add/Remove
Programs by setting the "ARPNOREMOVE" property to 1. This has
also disabled the "Remove" option from Windows Defender. Though,
When I click on "Show All Users" in Windows Defender, the "Remove"
is enabled. But I want the "Remove" option to be disabled even for "Sow
All Users". Is there any property that I can set to do this or any custom
action that would help the cause?
2.
I want to check if a
previous version of the Product already exists and If it does, I want to
uninstall it and then install the current version. Though, I cannot resort to
the Upgrade feature because it mandates the use of the "ReinstallAll"
property with the msiexec command. Otherwise, it mandates the change of the
Product
GUID as a major Upgrade. But I don't want to change the product GUID
either. I want to do the uninstall of the previous version and then proceed
with the current installation from within the .msi. Also, I don't want to
write a wrapper Setup.exe which would in turn call the msiexec command with the
ReInstallAll property. Is there a possible way of doing this from the .msi?
Please mail me If you have a
solution for either of my queries.
Thanks In Advance,
Sagar
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users