The odd thing here is that if you were willing to change the ProductCode
this would be a walk in the park - the major upgrade would do what you
want.
Having said that, you can't get there with your requirements. If you
don't change the ProductCode then Windows thinks your product is already
installed and will go into maintenance mode or "another version of this
product is already installed". Therefore you won't get the opportunity
to run a custom action because you won't get that far.
This where I think you're stuck: your comment "I cannot resort to the
Upgrade feature because it mandates the use of the "ReinstallAll"
property with the msiexec command" is incorrect when applied to major
upgrades. So if you were willing to change the ProductCode guid you'd
just install the new package with a major upgrade and you'd get the
required result. There's no special command line, just an ordinary
install, and if the older version is detected it gets uninstalled.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vidhya
Sagar Bhogavalli (Infosys Technologies Ltd)
Sent: Wednesday, February 21, 2007 8:02 AM
To: Levi Wilson
Cc: Kansana Hariharan (Infosys Technologies Ltd);
[email protected]
Subject: Re: [WiX-users] Reg. Disabling Remove from Windows Defender,
and Upgrade feature
1. The ALLUSERS property is already set to 1. This property is set
to 1 just to install it for all users but it doesn't serve in disabling
the Remove feature for ALLUSERS.
2. I don't want to Product Code by doing a major Upgrade. A major
Upgrade finds if the previous version is installed or not using its
Upgrade Code but the product code is changed. Also I don't want to use a
bootstrapper. I want the msi to check if the previous version exists, if
it does then uninstall it and then proceed with the installation. Can I
do it with the help of any custom actions?
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 8:21 PM
To: Vidhya Sagar Bhogavalli (Infosys Technologies Ltd)
Cc: [email protected]; Kansana Hariharan (Infosys
Technologies Ltd)
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=DEVDE
V
_______________________________________________
WiX-users mailing list
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users