Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Making VS-generated MSIs Patch-Friendly


1 reply to this topic

Scott Mayham

Scott Mayham
  • Full Members
  • 54 posts

Posted 19 April 2011 - 14:22

Folks,

I just started working at a .NET shop which produces MSIs directly out of the VisualStudio 2010 build. These MSIs work fine, but are not Patch-Friendly.

For example, when patching one of these MSIs, you get a Maintenance screen from the MSI asking you if you want to repair or remove the original MSI. The reason for this is that the Action which produces this UI, "MaintenanceForm", has a Condition of Installed<>"". This says "run if the MSI is installed", which of course it is when you are patching it.

I have devised an inelegant solution which I'd like to improve upon. The solution is a VbScript which uses the MSI API to change that condition to Installed<>"" And NOT PATCH. InstallShield-generated MSIs have this. This script is run as a post-build action in Visual Studio.

What I'd like to know, is there some way to modify how Visual Studio produces these MSIs? I would hope that there is some kind of template or settings, but nobody here seems to know, and neither do I.

Longer-term, I'll be developing InstallShield projects for these MSIs, and hopefully, the problem will go away. So I'm looking for an interim solution.

Thanks,

T. Scott Mayham
Senior Software Engineer - Innovations
678 319 8384
Scott.Mayham@Infor.com

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 20 April 2011 - 14:56

I'm not aware of any such setting or template.