Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Administrator permission required on install (Read 3485 times)
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Administrator permission required on install
Sep 27th, 2023 at 10:29pm
Print Post  
Hello; wanted to try this out from Visual Studio but stuck as its asking for administrator permissions. Any reason why this is required? I tried Arduino ide and Platform IO, and those seems to work just fine without any special permissions.

Is there a way to install without admin permissions?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Administrator permission required on install
Reply #1 - Sep 27th, 2023 at 10:34pm
Print Post  
Hi

Visual Studio always asks for that when it installs an extension. The installer is Microsoft's none of our code is running at that point.

Visual Micro does not need admin permissions to run.

edit. I think there is an install mode we could set to avoid install for all users but that's a problem for schools etc. They don't want individual users installing. You can download the vsix (extension) and run the microsoft vsixinstaller with non admin flag set but it's not worth the hassle. A visix is simply a zip, it's the microsoft installer than is the program and that decides where to put our files. It is then Visual Studio that can load the files into its own environment when it needs to. The Microsoft gallery performs validation when extensions are uploaded to it. It's all safe and well used.
« Last Edit: Sep 27th, 2023 at 10:40pm by Tim@Visual Micro »  
Back to top
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #2 - Sep 27th, 2023 at 10:42pm
Print Post  
Hello Tim, I am not sure if this is correct. I have github copilot and it does not ask for any permissions for install. To be sure, I just uninstalled and installed it, and it installed fine without asking any permission.
  
Back to top
 
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #3 - Sep 27th, 2023 at 10:46pm
Print Post  
Tim@Visual Micro wrote on Sep 27th, 2023 at 10:34pm:
Hi

edit. I think there is an install mode we could set to avoid install for all users but that's a problem for schools etc. They don't want individual users installing. You can download the vsix (extension) and run the microsoft vsixinstaller with non admin flag set but it's not worth the hassle. A visix is simply a zip, it's the microsoft installer than is the program and that decides where to put our files. It is then Visual Studio that can load the files into its own environment when it needs to. The Microsoft gallery performs validation when extensions are uploaded to it. It's all safe and well used.


lol, I think I have the opposite problem. Hard to get admin permission to install stuff as folks are pretty suspicious of apps that require admin permission. 

Do you think I can manually install this if its just a zip?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Administrator permission required on install
Reply #4 - Sep 27th, 2023 at 11:05pm
Print Post  
You can just open the zip and edit the text file called extension.vsixmanifest

Change AllUsers to false

<Installation InstalledByMsi="false" AllUsers="false">
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Administrator permission required on install
Reply #5 - Sep 27th, 2023 at 11:16pm
Print Post  
btw: To install the vsix you simply double click it or if that fails right click "Open With>Visual Studio Version Selector".
  
Back to top
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #6 - Sep 27th, 2023 at 11:30pm
Print Post  
Tim@Visual Micro wrote on Sep 27th, 2023 at 11:05pm:
You can just open the zip and edit the text file called extension.vsixmanifest

Change AllUsers to false

<Installation InstalledByMsi="false" AllUsers="false">


Sorry but no luck. I updated as suggested in the archive vsix file, but still getting prompted. Tried also "VSIXInstaller.exe Visual.Micro.Arduino.Studio_2023_0915_2200.vsix" in VS Command prompt but same result
  
Back to top
 
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #7 - Sep 27th, 2023 at 11:31pm
Print Post  
Tim@Visual Micro wrote on Sep 27th, 2023 at 11:16pm:
btw: To install the vsix you simply double click it or if that fails right click "Open With>Visual Studio Version Selector".

Yep; was trying like this and also VSIXInstaller.exe but all provide same results
  
Back to top
 
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #8 - Sep 27th, 2023 at 11:34pm
Print Post  
Wondering if I do not have below and VS trying to install it? (or maybe some other dependencies?

<Prerequisite Id="Microsoft.VisualStudio.Workload.NativeCrossPlat" Version="[17.0,18.0)" DisplayName="Linux and embedded development with C++" />
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Administrator permission required on install
Reply #9 - Sep 27th, 2023 at 11:47pm
Print Post  
Yes I guess so if it needs to install the tools. You can install them yourself in the IDE Tools>Get Tools>Linux and Embedded Workload.

In all cases, when you are prompt for admin rights, it is Microsoft software that is asking for permission. This is because Visual Micro is not an app/exe, it is just an extension loaded into VS by Microsoft. It's not our code (or any thrid party code) that is attempting to execute.
  
Back to top
IP Logged
 
V5
Newbies
*
Offline


Posts: 7
Joined: Sep 27th, 2023
Re: Administrator permission required on install
Reply #10 - Sep 28th, 2023 at 12:07am
Print Post  
Yes, that was it Smiley
1. I installed "Linux and embedded development with C++" in workloads (need admin permission for this)
2. Downloaded VSIX, updated file extension.vsixmanifest, with AllUsers="false"
3. Double click and installed without Administrator permission anymore.

Appreciate your help with this Tim!


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Administrator permission required on install
Reply #11 - Sep 28th, 2023 at 1:10am
Print Post  
Great and it was a useful reminder thanks. We will add it to the docs.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint