You're right sorry! Missed that, must be tunnel vision after tying to sort
this all afternoon J
Thanks again
Detour 2 is having REP after InstallFinalize, not InstallInitialize.
It's not a great detour for a number of reasons, one of which is having
uninstall custom actions that run after the later version has been
installed and that may do something destructive to it. =20
=20
Interesting timing - this is another example of Rob's comment that
Fusion (and the GAC) don't interact well with installer technology.=20
=20
Phil Wilson=20
=20
=20
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren
Thomas
Sent: Friday, November 16, 2007 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [WiX-users] RemoveExistingProducts .NET GAC'd Assemblies
Removed
=20
I agree, but haven't I done the Workaround method 2 by this:
=20
<InstallExecuteSequence>
<Custom Action=3D3D'NoDowngrade'
After=3D3D'FindRelatedProducts'>NEWERPRODUCTFOUND</Custom>
<RemoveExistingProducts After=3D3D"InstallInitialize" />
</InstallExecuteSequence>
=20
Sounds like this:=3D20
=3D20
http://support.microsoft.com/kb/905238/en-us=3D20
=3D20
Phil Wilson=3D20
=3D20
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren
Thomas
Sent: Friday, November 16, 2007 10:51 AM
To: [EMAIL PROTECTED]
Subject: [WiX-users] RemoveExistingProducts .NET GAC'd Assemblies
Removed
=3D20
All,
I've written a very simple Wix Script to install an exe (notepad in this
case) and a signed .Net dll to the GAC. This seems to work just fine.
However I want to test an upgrade. I would like the previous version to
be uninstalled and then the new version installed. I don't watch to
patch because I don't want to keep track of what changes occur in the
MSI. So the safest thing for me to do is a complete re-install.
To do this I change the version number from 1.0 to 1.1 and the upgrade
version from 1.0 to 1.1 in the script below, I then compile the script
and run it. My assembly MyCommon.dll is then removed from the GAC???
I've read that I need to increment the assembly version number etc, but
in a larger script one of my dll's may not change but I would still like
to have it re-deployed.
What am I doing wrong? I've even tried changing the sequence to move
RemoveExistingProducts to an earlier place. This works but I don't
think it's the correct thing to do as Orca moans about it...
Do I need to use the REINSTALL=3D3DALL switch? if so why? =3D20
<?xml version=3D3D"1.0" encoding=3D3D"windows-1252"?>
<Wix xmlns=3D3D"http://schemas.microsoft.com/wix/2003/01/wi
<http://schemas.microsoft.com/wix/2003/01/wi
<http://schemas.microsoft.com/wix/2003/01/wi%3e> >
<http://schemas.microsoft.com/wix/2003/01/wi%3e
<http://schemas.microsoft.com/wix/2003/01/wi%3e%3e> > ">
<Product Name=3D3D"Sample Application"=3D20
Id=3D3D"????????-????-????-????-????????????" =3D20
Language=3D3D"1033"=3D20
Codepage=3D3D"1252"=3D20
Version=3D3D"1.0"=3D20
Manufacturer=3D3D"ACME"=3D20
UpgradeCode=3D3D"74b8b879-c395-423b-a289-b1e369837f1d" >
=3D20
<Package Id=3D3D"????????-????-????-????-????????????"=3D20
Keywords=3D3D"Installer"=3D20
Description=3D3D"Sample Application"=3D20
Manufacturer=3D3D"ACME."=3D20
InstallerVersion=3D3D"200"
Languages=3D3D"2057"=3D20
Compressed=3D3D"yes"=3D20
SummaryCodepage=3D3D"1252"/>
=3D20
<Media Id=3D3D"1" Cabinet=3D3D"Sample.cab" EmbedCab=3D3D"yes"/>
=3D20
<Upgrade Id=3D3D"74b8b879-c395-423b-a289-b1e369837f1d">
<UpgradeVersion OnlyDetect=3D3D"yes" Property=3D3D"NEWERPRODUCTFOUND"
Minimum=3D3D"1.0" IncludeMinimum=3D3D"no" />
<Property Id=3D3D"NEWERPRODUCTFOUND" Secure=3D3D"yes" />
<UpgradeVersion OnlyDetect=3D3D"no" =3D
Property=3D3D"PREVIOUSVERSIONSINSTALLED"
IncludeMaximum=3D3D"no" Maximum=3D3D"1.0" />
<Property Id=3D3D"PREVIOUSVERSIONSINSTALLED" Secure=3D3D"yes" />
</Upgrade>
=3D20
<CustomAction Id=3D3D'NoDowngrade' Error=3D3D'A later version of Sample =
is
already installed.' />
=3D20
<Directory Id=3D3D"TARGETDIR" Name=3D3D"SourceDir">
<Directory Id=3D3D"ProgramFilesFolder" Name=3D3D"PFiles">
<Directory Id=3D3D"Sample" Name=3D3D"Samp">
<Directory Id=3D3D"INSTALLDIR" Name=3D3D"Test">
<Component Id=3D3D"Sample.Component"
Guid=3D3D"56fba829-1f49-4fa5-a4bd-6f136d38eed9" DiskId=3D3D"1">
<File Id=3D3D"Sample.File" Name=3D3D"Notepad.exe" =3D
LongName=3D3D"Notepad.exe"
src=3D3D"Notepad2.exe" KeyPath=3D3D"yes"/>
</Component>
<Component Id=3D3D"Common.Component"
Guid=3D3D"9063055d-ead2-4310-8fc5-f5cfc64cd4c7" DiskId=3D3D"1">
<File Id=3D3D"Common.File" Name=3D3D"MyCom.dll" Assembly=3D3D".net"
LongName=3D3D"MyCommon.dll" src=3D3D"MyCommon.dll" KeyPath=3D3D"yes"/>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id=3D3D"Complete"=3D20
Title=3D3D"Sample"=3D20
Description=3D3D"Complete"=3D20
TypicalDefault=3D3D"install"=3D20
Display=3D3D"expand"=3D20
Level=3D3D"1"=3D20
ConfigurableDirectory=3D3D"INSTALLDIR">
<ComponentRef Id=3D3D"Sample.Component"/>
<ComponentRef Id=3D3D"Common.Component"/>
</Feature>
<InstallExecuteSequence>
<Custom Action=3D3D'NoDowngrade'
After=3D3D'FindRelatedProducts'>NEWERPRODUCTFOUND</Custom>
<RemoveExistingProducts After=3D3D"InstallInitialize" />
</InstallExecuteSequence>
=3D20
</Product>
</Wix>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users