Hi Thanks for the reply. It is an upgrade but for some reason it isn't upgrading properly. I unfortunately don't have all the details on what went wrong. The update was way late going out and I was in a situation where I had to trust they did the obvious stuff and work with what they gave me (1 wise installer package that was not replacing a few com objects on the upgrade install). I didn't have a lot of flexibility with the main install because it'd be a fairly large project and as I said the time constraints were super restrictive.
I am hoping to now pull this project into WIX and take ownership (Well not really, right now I feel like I know enough to know I'm dangerous but I'm not even smart enough to know how dangerous - but sometime in the future :) ). At that point I will be able to use the upgrade tags on the components and such. For this project I had to wrap the current installer in a way that the system was ready for the installation. The two components that were causing problems were actually wrapped inside the original installer package, hence my requirement to just remove the existing packages. My final solution didn't incorporate Wix at all. I just converted my CA to an exe and added it as a prereq with bootstrapper manifest generator. Is there anything inherently wrong with that? Well, there was the not having control of where to package stuff in the final package and the crappy, unconfigurable dialogs but I mean other than that? I am looking at wix to generate my next bootstrapper, does it give me the same control over my bootstrappers as it does everything else? Thanks again for your reply. Steve -----Original Message----- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: Tuesday, November 01, 2011 11:06 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] msi made up of only 1 custom action If this is an upgrade to the same product, then the UpgradeCode should be the same and it should remove the existing product if you have a proper Upgrade table setup. (No need for a custom action.) <Upgrade Id="$(var.UpgradeCode)"> <UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSION_INSTALLED" /> <UpgradeVersion Minimum="$(var.MinimumUpgradeVersion)" IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no" Property="OLDERVERSION_BEINGUPGRADED" MigrateFeatures="yes" /> <UpgradeVersion Property="ANYVERSION" IncludeMinimum="yes" Minimum="0.0.0.0" Maximum="99.99.99.99" IncludeMaximum="yes" OnlyDetect="yes" /> </Upgrade> The next question is when do you have RemoveExistingProducts scheduled? <InstallExecuteSequence> <RemoveExistingProducts Before="InstallInitialize" /> </InstallExecuteSequence> (You can schedule it before InstallInitialize which will remove it before installing the new product, or you can schedule it after InstallFinalize. If you do it after InstallFinalize, then components which aren't changed between packages won't change.) What component is it that is refusing to update? Is it a binary file with version info? If so, the version number needs to be different (possibly higher) or the upgrade won't update it. If it's a text/data file, then if it was modified post install I also believe the uninstaller won't remove it. If it is a user modified data file and it must be removed, then you can add <RemoveFile Id="Purge.UserModifiedFile" Name="FileName.ext" On="uninstall" /> to the component. (Note, this won't fix existing installers in the wild, but will fix future updates to a new installer released.) -----Original Message----- From: Steven M. Drucker II [mailto:smdruc...@hotmail.com] Sent: Monday, October 31, 2011 7:08 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] msi made up of only 1 custom action Hello, I am only 2 weeks into learning WIX and haven't done much beyond the installer stuff that comes canned in VS so bear with me. I was confronted with a challenge at work concerning an upgrade package that is simply refusing to replace a file. The guy who normally builds it insists he has taken all the usual steps and due to time constraints I have to take him for his word. I was able to write a wix component that uninstalls our products with a call to msiexec in a custom action. This project has no file or directory components, not even a feature (now that I write this I am wondering if the lack of a feature is what my problem is). It's a simple dll that makes a call to msiGetEnumeratedProducts and iterates through each product code related to a given upgrade code and uninstalls it. When I run this by itself, it removes the products and all is well. However, we also want to install the new product so I generated a bootstrap manifest, built that and got my msi, the installer and a new setup.exe which I imagine wraps the chain that calls each package. When I run the setup.exe however, it sees the project with custom actions then acts like its running it and proceeds to the exe but it doesn't actually run. Again when I click on the msi that is just the custom action that the bootstrap manifest generated for its output, it runs fine. I've lurked and know you guys will ask for log files however when I try and run the bootstrappers setup.exe (the chain wrapper) through msiexec I get an error saying it's not a recognized something or other and won't run and since that is where the problem exists, im at a loss. Any help would be greatly appreciated Steve ------------------------------------------------------------------------ ------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users