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

Upgrading


2 replies to this topic

thompsonson

thompsonson
  • Full Members
  • 12 posts

Posted 22 August 2007 - 17:06

We have some MSI that have been created by the Visual Studio Deployment project (vdproj in VS 2005) .

What we'd like it for the MSI to check for a previous version and uninstall it, if needed, or just 'patch' it.

Does anyone know if this is possible and could point me in the direction of some useful info.

Thanks,
Matt


cityfios

cityfios
  • Full Members
  • 3 posts

Posted 09 January 2008 - 19:17

From one newby to another, I believe MSP is an option for you - you give it the previous and upgraded images of your application and it generates an 'MSP' file, which upgrades the application.

The tool:

http://msdn2.microso...y/aa370324.aspx

Also useful (there doesn't seem to be much documentation available - this forum seems to be one of the best):

http://www.codeproje...&select=2002862

You modify the provided PCP file with the details of your specific versions (file locations, company name, etc) using Orca, put any instalation settings into your upgraded MSI using Orca, create images of both versions using msiexec /a, then use msimsp to create the MSP file, eg,

"D:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\msimsp" -s "D:\ClientUpdate.pcp" -p "D:\ClientUpdateManual.msp" -lp "D:\log.txt"

Corrections very welcome - I am still struggling with an error (which I've posted in 'Updates and Patches').

The necessary MS infrastructure and tools:

http://msdn2.microso...y/aa370834.aspx

Error codes:
http://msdn2.microso...250(VS.85).aspx

Possible tools (I didn't find these useful although I haven't got it working yet):

http://wix.sourcefor...ch_building.htm
http://www.advancedi...ch.html#install

All the best
Chris


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 10 January 2008 - 13:39

In order to automatically uninstall the old version, simply set the RemovePreviousVersions property of your Setup project to True.