Share via


VSIX not installing in non admin account

Question

Friday, September 22, 2017 12:53 PM

Hi Team,

I have two user accounts in a machine. One with admin rights and another one hasn't. I have an C# application which has admin rights that installs VSIX into my Visual Studio 2017. I have used the following arguments for the VSIXInstaller.exe to install the VSIX.

Arguments:

VSIXInstaller.exe "vsixfile" /q

While installing my application, it installs the VSIX only to the user account with the admin rights. When I log on to the non-admin user account, VSIX is not displayed in the Visual Studio 2017 as it is not installed. But while running the VSIXInstaller.exe with same arguments in Command Prompt (without admin) in non-admin account, the VSIX is installed successfully. 

Could you please let me know how to run the VSIXInstaller.exe which installs the VSIX to all the user accounts?

Regards,

Manivannan S. 

All replies (4)

Saturday, September 23, 2017 5:36 AM

You need to add the /admin argument for VSIXInstaller to install the extension for all users.

Sergey Vlasov | Vlasov Studio | Visual Studio extensions and tools


Monday, September 25, 2017 7:09 AM

Hi Manivannan_4718,

Do you have tried /admin argument that Sergey Vlasov suggested?

If that has help you resolved your problem, please mark the helpful reply as answer, which is benefit to other communities who has the same problem.

If not, please feel free to let me know.

Best Regards,
Weiwei

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Tuesday, September 26, 2017 5:28 AM

Hi Sergey,

I have already tried running with /admin. Still the VSIX is not installed in the non admin user. I have used the following arguments.

VSIXInstaller.exe "vsixfile" /q /admin and VSIXInstaller.exe "vsixfile" /q /a

Regards,

Manivannan S. 


Tuesday, September 26, 2017 9:22 AM

With the /admin switch it should install to a folder like C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\COMMUNITY\COMMON7\IDE\EXTENSIONS available to all users. Do you see any errors in your install log?

Sergey Vlasov | Vlasov Studio | Visual Studio extensions and tools