WARNING: Playing with the registry can cause huge problems (but not if you get it right )
@Michel Bujardet was talking on another thread about not being able to easily open projects in Windows on different versions of Xojo that you have installed on the same machine. This got me thinking about ways around it, and here is the most elegant.
Create a text file with the following information:
[code]Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo 2016r3]
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo 2016r3\command]
@="“C:\\Program Files (x86)\\Xojo\\Xojo 2016r3\\Xojo.EXE” “%1"”
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo 2016r4.1]
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo 2016r4.1\command]
@="“C:\\Program Files (x86)\\Xojo\\Xojo 2016r4.1\\Xojo.EXE” “%1"”
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo 2017r1b14\command]
@="“C:\\Program Files (x86)\\Xojo\\Xojo 2017r1b14\\Xojo.EXE” “%1"”[/code]
Now rename the text file to something like XojoChange.reg and double click the file, this will insert the changes above into the registry.
Now, when you right click a xojo_project file it will show these additional entries.
If you make a typo in the above and insert it into the registry or want to tweak them at a later date, click Start->Run and run regedit, then navigate to the entry that you wish to correct.
You can change the parts like Open Xojo 2017r1b14 to something more desirable if you wish, this is what is shown when you right click.
This can also be done for Xojo.XojoBinaryProject by changing the relevant strings from Xojo.XojoProject to Xojo.XojoBinaryProject in the above file.
If you keep your latest BETA in a certain folder, you only need to make the change once and it will work when you replace the folders contents with the latest version:
[code]Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo Latest BETA]
[HKEY_CLASSES_ROOT\Xojo.XojoProject\shell\Open Xojo Latest BETA\command]
@="“C:\\Program Files (x86)\\Xojo\\Xojo BETA\\Xojo.EXE” “%1"”
[/code]
If someone wants to make a nice little project to provide a user interface for this, please feel free, it would be a good little starter/test project using RegistryItem.