The Life and Times of a Dev

Yes, we're really that weird
posts - 179, comments - 302, trackbacks - 106

My Links

News

Twitter









Tag Cloud

Archives

Post Categories

Play

Work

Mage and MinVersion

Well, that was certainly annoying.  I'm trying to create a new application manifest (deployment manifest), and if I use the -MinVersion (-mv) option as specified in the Mage documentation, it fails with the error, "The minimum version specified is not valid."  I'm guessing that this goes hand in hand with the bug that I ran into earlier where you can't do anything but a check after install when using mage.  For that defect, I ended up running some code to replace the <expiration maximumAge="0" unit="days" /> tag with <beforeApplicationStartup/>, since mage won't do it correctly.

To get around this problem, you end up needing to run mage twice.  First, to create the deployment manifest, and second to add the -MinVersion property to the app.  Like so (in MSBuild):

<Exec WorkingDirectory="$(DeployTempDir)" Command="mage.exe -New Deployment -ToFile MyApp.application -Version $(BuildLabel) -Name &quot;App&quot; -providerUrl https://www.myurl.com/myapp/myapp.application -AppManifest $(BuildLabel)\MyApp.exe.manifest -Install true"></Exec>
<Exec WorkingDirectory="$(DeployTempDir)" Command="mage.exe -Update MyApp.application -MinVersion $(BuildLabel)"></Exec>

Kinda silly, but it works.

Technorati Tags: ,,
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Wednesday, July 16, 2008 1:34 PM |

Feedback

Gravatar

# re: Mage and MinVersion

Thanks, helped me out! Yours is one of only two posts google finds on this error.
12/28/2009 10:56 AM | rs387
Gravatar

# re: Mage and MinVersion

Helped me.Thanks alot
3/8/2011 5:44 AM | Venkatesu
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: