By the sound of it you created an MSI that contains only your hotfixed file ?
That would explain the behaviour you're seeing.

You could make:
Major upgrade
Hotfix patch
There's a minor update but it probably won't give you any advantages over a
major upgrade.

The easiest, if you have the original installer's source code, is to make a
Major upgrade. A major upgrade automatically removes the old version and
replaces it with the new one. However when you remove the new version, the
old version isn't reinstalled.

If you want a small update patch (.msp), this is more difficult to write and
requires that the Windows Installer rules are followed more closely in the
original and new installers. The patch can be removed to get back to the
original installation state.

There are some rules you have to follow for the different update types which
are documented in the MSDN
http://msdn.microsoft.com/en-us/library/aa370579%28v=VS.85%29.aspx
If you're making a major upgrade then you can have Wix write the upgrade
table entries for you using the MajorUpgrade 
element.

1. Yes you can with the Permanent attribute but it would be a bad way to fix
your problem.
2. If you create one of the two update types, the files will all uninstall
correctly.

-----Original Message-----
From: Ben Peikes [mailto:bpei...@gargoylestrategic.com] 
Sent: 12 July 2011 18:42
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating a "hotfix" patch for an installer built with VS

We have an old project whose installer was built using VS. I need to
replace one of the files, so I want to create an installer with WIX
which just installs a single file. The "hotfix" installer I've created
works fine when installed, but when it gets uninstalled, it removes the
file. I'd like it to replace the file that it updated when uninstalled
with the original, but I'm not sure how to accomplish that.

 

A couple of questions:

1)      Is there any way to mark a <File> or <Component> such that it
does not get uninstalled when you uninstall the product?

2)      Is there a way to tie my wxs to another product and version
such that if the other product gets uninstalled, the hotfix
automatically gets uninstalled as well?

 

 

-----------------------------------------------------------------------------
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to