I always wanted a simple trick to install the App-V virtual packages in a single click without any need to open powershell and type commands in a standalone machine. I have worked on many software's and used to see some of them provide context menu shortcut (notepad++, winzip etc..) So I had an idea to create a simple registry tweak to publish the virtual packages either globally or to a user by just right clicking a .appv file using context menu option.
Copy the below code and save it in a notepad with .reg extension. Double click and register it.
After registering the registry key, now you should be able to see the below highlighted context menu shortcut when you right-click any .appv file. To publish globally, click on the Publish Globally shortcut and vice versa.
Registry Peak:
Note: This doesn't add the dynamic configuration file while adding/publishing. I will post it separately in my next blog.
Disclaimer - Test it with caution as I don't hold any responsibility for any problem caused. This is issued for experimental purpose only.
Merry Christmas and a Happy New Year!!
If you would like to try on your own refer to the below link which can guide you.
Reference - http://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/
Copy the below code and save it in a notepad with .reg extension. Double click and register it.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.appv] @="appvex" [HKEY_CLASSES_ROOT\appvex] [HKEY_CLASSES_ROOT\appvex\shell] [HKEY_CLASSES_ROOT\appvex\shell\Publish Globally] @="&Publish Globally" [HKEY_CLASSES_ROOT\appvex\shell\Publish Globally\command] @="cmd /c start /b /wait powershell.exe -nologo -ExecutionPolicy bypass -command \"& {add-appvclientpackage '%1' |publish-appvclientpackage -global|mount-appvclientpackage}\"" [HKEY_CLASSES_ROOT\appvex\shell\Publish to User] @="Publish to &User" [HKEY_CLASSES_ROOT\appvex\shell\Publish to User\command] @="cmd /c start /b /wait powershell.exe -nologo -ExecutionPolicy bypass -command \"& {add-appvclientpackage '%1' |publish-appvclientpackage |mount-appvclientpackage}\""
After registering the registry key, now you should be able to see the below highlighted context menu shortcut when you right-click any .appv file. To publish globally, click on the Publish Globally shortcut and vice versa.
Registry Peak:
Note: This doesn't add the dynamic configuration file while adding/publishing. I will post it separately in my next blog.
Disclaimer - Test it with caution as I don't hold any responsibility for any problem caused. This is issued for experimental purpose only.
Merry Christmas and a Happy New Year!!
If you would like to try on your own refer to the below link which can guide you.
Reference - http://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/
No comments:
Post a Comment