shabiel / VPE

Victory Programmer Environment (used in M code Development; esp. for VISTA)
Other
11 stars 5 forks source link

Greg: Develop a way to detect if a newer VPE is loaded but not installed #56

Open shabiel opened 5 years ago

shabiel commented 5 years ago

Would it be useful to check to see if a newer VPE is loaded but not installed and remind them to run UPDATE^XV? (This could be placed in the issues area IF you think it is a worthwhile thing to consider.)

Right now the X ^%XVEMS("VER") code is reading the 2nd line from the XVEMSU2 routine, so that wouldn't help. What if the UPDATE code created a new node in ^XVEMS (called "VERSION") that has the installed version number. Then the VERSION code could see if there is a difference between the routine's ver and the "VERSION" node.

From VERSION^XVEMSU2 make the change below.

VERSION ;VShell Version Information
32 D:'$D(XVV("RON")) REVVID^XVEMKY2
33 W !?3,@XVV("RON")
34 W " VPE version ",$P($T(+2),";",3)," "
35 W @XVV("ROFF"),!
36 Q