<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>SyMenu - Troubleshooting &amp; Bug Reports - Can't seem to launch vscode elevated... - Messages</title>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<description>SyMenu - Troubleshooting &amp; Bug Reports - Can't seem to launch vscode elevated... - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<pubDate>Mon, 14 Dec 2020 11:45:29 GMT</pubDate>
<lastBuildDate>Mon, 14 Dec 2020 11:45:29 GMT</lastBuildDate>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<title>Message from sffdb8</title>
<description><![CDATA[Thanks - got the notification.]]></description>
<pubDate>Mon, 14 Dec 2020 11:45:29 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<title>Message from Gianluca</title>
<description><![CDATA[Well I had the same problem for a while but I think now it's gone. <br/><br/>Please tell me if you receive the notification for this one.]]></description>
<pubDate>Mon, 14 Dec 2020 10:08:17 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<title>Message from sffdb8</title>
<description><![CDATA[Thanks for your very detailed explanation!<br/><br/>btw - For some reason it seems I didn't receive a notification that you responded (seems I'm subscribed because it says "stop watching this topic" up top...<br/>(and I don't have a spam folder).  just an FYI in case others share the same observation]]></description>
<pubDate>Sat, 12 Dec 2020 17:10:36 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<title>Message from Gianluca</title>
<description><![CDATA[The reason is quite complex.<br/><br/>In the past I did a lot of researches about the program execution in elevated mode and I discovered this strange Windows behavior. <br/><br/><br/>When I execute a program I use a C# object called ProcessStartInfo.<br/>ProcessStartInfo has a property called UseShellExecute that allows the execution in elevated mode (true -&gt; elevated|false -&gt; normal). Well you need to set another property along with UseShellExecute but we don't care now.<br/><br/>But ProcessStartInfo is the same object I use to manipulate the environment variables for that single execution. In fact I can't modify the environment variable system wide but I sometimes I need to change them only for the program in execution. The ProcessStartInfo  property for this magic is called EnvironmentVariables.<br/><br/>The two properties can't be manipulated at the same time. So if you need an elevated execution you have to leave the EnvVar unchanged or vice versa.<br/><br/><br/>VS Code is subject to a manipulation of its EnvVar. In fact if you go to SyMenu program configuration form and find out VS Code, you'll see that the "Enable advanced parameters" is checked and an EnvVar is redefined (APPDATA=.\).<br/>What's the point for this variable? It's useful to tell VS Code to save its configuration/last opened tab/last opened project/backup/add in/ and a ton of other settings, in a folder called Code inside the program root and not in your C:\Users[user]\AppData\Roaming\ folder.<br/><br/>The workaround for you is really easy: remove the check from "Enable advanced parameters" and your VS Code will run in elevated mode when you need it. But remember that your settings folder will be saved in the real AppData\Roaming folder from then on.]]></description>
<pubDate>Mon, 15 Jun 2020 13:25:08 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=785</link>
<title>Message from sffdb8</title>
<description><![CDATA[Although I have "Run elevated" checked in item definition, vscode will not launch elevated...<br/><br/>Seems specific to vscode as "Run elevated" works fine on other items.<br/><br/>Any workarounds?]]></description>
<pubDate>Sat, 13 Jun 2020 03:17:07 GMT</pubDate>
</item>
</channel>
</rss>
