Setting "Run as Administrator" for a Dock application

Discussion in 'Installation and Configuration of Parallels Desktop' started by MacAttak, Mar 11, 2013.

  1. MacAttak

    MacAttak Bit poster

    Messages:
    4
    I am running the latest release of Parallels 8. I have Boot Camp configured, with Windows 8 Enterprise installed. I am running that partition in Parallels, in Coherence Mode.

    I run Visual Studio 2012 very often, and for what I am doing it must always be set to "Run as Administrator". I had no problem going to the program shortcuts folder in Windows, and modifying the shortcut to always Run as Administrator. This works fine if I launch the program from the Windows Start Screen, or if I use the "Windows 8 Applications" menu that Parallels added to the Dock. Windows asks for UAC permission to run it with elevated permissions, and everything seems to be fine.

    But since I run this very often, I would like to just pin it to the Dock. So I right-click the Dock icon for Visual Studio (after launching it), and select "Keep in Dock" from the menu. The icon remains in the Dock after closing the program - as expected. But when I click on the Docked icon to launch it, I am not prompted to run it with elevated permissions.

    The expected behavior would be for Windows to display a UAC prompt for elevated permissions approval every time I run the application.

    Is this an unsupported scenario? Is it somehow retaining my choice to run elevated (which doesn't happen in Windows normally)? Did I do something incorrectly?
     
  2. HervéG

    HervéG Bit poster

    Messages:
    1
    I have the exact same problem, except that I am running Windows 8 Pro and not using Boot Camp.
     
    Last edited: Apr 3, 2013
  3. dustin3

    dustin3 Bit poster

    Messages:
    1
    I was having the same problem but after trying several different things, I was able to find a work around, maybe this will work for you too.

    1) Create a link to you Program on your Desktop in Windows
    2) Right click and go to properties and set to "Run as Administrator"
    3) Open Finder on your Mac and browse to your Boot Camp partition to your Desktop where you created the link
    I browsed to -> [C] My Boot Camp -> Users -> username ->Desktop
    this is the path: file://localhost/Volumes/C//Users/username/Desktop
    4) Right click on the link you created and choose Make Alias
    5) Move that alias to your Mac Desktop/Space or drag it to your Dock

    Now when I click on that alias it runs the shortcut and prompts me for administrative rights. Good Luck

    [Edit]
    The alias has by default a folder icon as the alias icon. As an added tip you can make the icon the same icon from windows by
    1) Find the original parallels app for Visual Studio (Visual Studio 2010.app) and right click -> Get Info
    2) Also do a right click -> Get Info on your new alias with the folder icon.
    3) Click on the small icon in the top left corner for the original with the good icon and do command-c
    4) Click on the small icon in the top left corner for the new alias with the folder icon and do command-v
     
    Last edited: Apr 30, 2013

Share This Page