Mage.exe, MinVersion, and "The specified minimum version is not valid."
When I run the ClickOnce utility mage.exe creating a new deployment manifest using the -MinVersion
and parameters -Install
, I get an error.
> mage.exe -New Deployment -Install true -Version 1.0.0.0 -MinVersion 1.0.0.0
The minimum version specified is not valid.
How can I avoid this error message?
source to share
The parameters -Install
and -MinVersion
cannot be used on the same command line. This is a flaw, if not a bug, in the mage.exe file. Therefore, you must apply these parameters in two separate commands. For example,
> mage.exe -New Deployment -Install true -Version 1.0.0.0
deploy.application successfully created
> mage.exe -Update deploy.application -MinVersion 1.0.0.0
deploy.application successfully updated
HT: http://geekswithblogs.net/rakker/archive/2008/07/16/123828.aspx
source to share
The manual for mage.exe states for the -Install option that:
If you specify the -MinVersion option and the user has a version less than -MinVersion, this will force the application to install, regardless of the value you pass to -Install.
This basically means that the -MinVersion option already includes -Install. And now it seems that the developer assumed that the options are mutually exclusive. However, the management does not mention this. So I would consider it a mistake. Especially considering that the manual specifically mentions that the other -BrowserHosted option cannot be combined with -Install.
source to share