I'm building my own extension for VS2010 and it has to be deployed outside of Visual Studio Gallery. My NSIS installer does a very good job in installing other parts of software, however I can't figure out how to install .vsix extension.
I tried doing that via VsixInstaller.exe which is a part of Visual Studio, however it does not allow to silently install an extension for any VIsual Studio found on the machine and get a proper error code into the installer.
"VsixInstaller.exe /quiet extension.vsix" returns 0 error code no matter what happens and requires /skuName and /skuVersion which is not trivial to detect automatically.
Can I somehow do that manually? ReSharper for example keeps all the extension binaries in it's "Program Files" folder and somehow makes them available for VIsual Studio.
Have you tried using copy aka:
copy xx.vsix "%APPDATA%\Microsoft\VisualStudio\10.0\Extensions"
or
copy xx.vsix %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft"
Registering Visual Studio extensions is complicated process. For pre 2010 VS editions you need to copy appropriate files (.dll/.zip template/.regpkg...) into some folder and then write keys into registry with paths, settings, etc. (many, many keys).
These keys/settings are based on extension you are developing (LanguageService, Package, Add-in, ...)
After 2010 VS editions have new feature - .vsix extensions which is simple .zip archive containing all required files and registry keys.
You need to copy this .vsix file into some folder (recommended is inside VS install directory or other known folder as %VSInstallDir%\\) and then setup VS to load it (like running devenv.com /setup)
Read this blog for more info about discovering VS extensions: http://blogs.msdn.com/b/visualstudio/archive/2010/02/19/how-vsix-extensions-are-discovered-and-loaded-in-vs-2010.aspx
Related
During update Visual Studio 2019 to latest version (16.9), setup failed. Stupidly I closed installer window without read the error.
When I retryed the update, the Installer crashes few seconds after start.
I have uninstalled wholly Visual Studio, but Installer still crash.
I think something is left dirty after first update fail, I tried to search in log files recoverd by collect.exe tools, but I can't found usefull information in that bilions of messages.
Reinstalling Windows must be the last choice, there is a way to take crash error for undertand the problem and search for a solution?
EDIT
Also InstallCleanup.exe don't solve the problem
Visual Studio Installer version 2.9.3349 has problems with culture "it-IT". If that's your case (as it is mine), there is a workaround here:
https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-crashes-after-up/1356122
The workaround is to force a working locale: ./vs_installer.exe --locale en-US
If you think your install and/or installer is corrupted, run the installation cleaner tool available at the URL below and then re-download the latest installer, from which you can get 16.9.
https://learn.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019
Additionally there is a step you can try in Troubleshooting Installation Issues, specifically Step 4 (The advice above the break is actually Step 6 in this process)
Step 4 - Delete the Visual Studio Installer directory to fix upgrade problems
The Visual Studio Installer bootstrapper is a minimal light-weight executable that installs the rest of the Visual Studio Installer. Deleting Visual Studio Installer files and then rerunning the bootstrapper might solve some update failures.
Note
Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.
Close the Visual Studio Installer.
Delete the Visual Studio Installer directory. Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer.
Run the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don't find that application, you can download the bootstrapper by going to the Visual Studio downloads page and clicking Download for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
Try to install or update Visual Studio again. If the Installer continues to fail, go to the next step.
You have to download the installer again for the offline installation eg.vs_enterprise.exe then run vs_enterprise.exe --layout "folder where you have the offline installation". The new installer needs to download a different new configuration file vs_installer.version.json
https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019
I've been working in Visual Studio 2017 and over time have installed and configured several extensions to improve my workflow.
I recently installed Visual Studio 2019 side-by-side and want to start migrating my solutions onto it so I can benefit from the new features, etc. however it doesn't appear to have migrated any of the extensions I have in VS2017. I could install them one by one but reconfiguring everything to exactly the way I had them before would be painstaking and I'd surely miss something.
I would think this would be a feature built into the VS installer, but apparently it isn't unless I missed it. Presumably any automated import function would check compatibility with the new version and warn the user for incompatibilities that might be found.
I've loaded one of my previous solutions in VS2019 and have looked through some of the menus and settings dialogs, but don't see any way to automatically import the extensions.
I've also searched online and in Microsoft's documentation but can't seem to find anything that helps.
There is no "automatic import for extensions". You could try to update your extensions manually.
This steps for VSIX extension files. Use it if you have vsix installer but it doesn't support VS2019.
Rename file extension from vsix to zip
Unzip
Open extension.vsixmanifest, manifest.json and catalog.json and for Microsoft.VisualStudio.Component.CoreEditor change version to [15.0,)
Open extension.vsixmanifest and also replace all [15.0,16.0) by
[15.0,17.0).
Add the prerequisite in this way:
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
Zip all files
Rename to vsix
Also you could try to move extensions manually. Use it if your extension in not in vsix.
Find your extensions in c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\
Copy them into c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\
Make steps 3 and 4 from "VSIX update"
The Extension Manager extension (different versions for VS2017 and VS2019) allows you to export a list of extensions and then import it.
Useful also in cases when copying between machines or users.
I have visual studio 2010 ultimate. There is no option to make executable file.
So how can I make executable files using this version of visual studio.
Actually you've already created an .exe file by "building" your code that you tested in debugger mode. However your .exe file may require other files in order to deploy it onto another P/C. I recommend you read this information at the following link;
click here to go on link
Other than that you can actually find a copy of your current executeable in your application folders debug folder. May take a little searching. I'm using Visual Studio 2012 RC and I don't know if the file structure is the same for Visual Studio 2010 but for the application "counter" I look in "C:\Users\John\Documents\Visual Studio 2012\Counter\Counter\obj\Debug\Counter.exe.
I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that??
I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller.
I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that??
Kazar's answer is correct. The Visual Studio setup creates a .msi file that describes the installation in a database table. .msi files are consumed by the Windows Installer engine msiexec.exe (much like .docx consumed by Word). If the application is already installed, then the unistall/modify/repair options are presented.
I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller.
There are free and commercial products available. There are two general types of installations for Windows: Windows Installer (.msi) files and script-based installers.
The msi file generated by visual studio setup projects is already both an installer and an uninstaller - run the msi setup file to install it, and then right-click on it to see the uninstall option.
Your installed program will be shown in Control Panel > Add/Remove Programs. You will be able to just hit the "Remove" button there to uninstall your app.
MSI that VS has generated for you is a standard Microsoft installer package, that you can use to install/uninstall software. You can also run admin/silent installations etc, depending on custom command line parameters if you want.
Quickest and easy solution can be found here:
http://tech.chitgoks.com/2009/02/06/visual-studio-create-an-uninstaller-shortcut-in-your-installer-wizard/
if you know where the files were placed and what registry keys were set, you can delete and fix the registry,create an uninstaller program and bundle it with the program in question
the best way would to be to have a generic uninstaller program that takes config files
I installed Visual Studio 2008 package FULL option. It worked with out any problem. I installed Vstudio 2008 and MSDN in separate folder in the D drive. 2 days later in order to remove my projects i uninstalled every thing and also i deleted visual studio 2008, visual studio 2005 folders from C:\Documents and Settings\IRCTC\My Documents. (I believe these 2 folders were automatically created when we install visual studio) also I cleared %path% and path (c/windows/path). Again I installed VISUAL STUDIO 2008 but now I can't able to create window application (other web, vb also), what is the solution for this ...
ERROR that shown is
c:/documents and settings/IRCTC/local settings/temp/g1zzsdl.bak/temp/windowsFormsApplication.csproj cannot be opened because project type (.csproj) is not supported by this version of visual studio.......
Whether any system file corrupted (windows temp or .net folber in windows).....
No other installation problem found in my system.....
please help.....
What are the files/folders required for the installation......
When you get that error is usually because:
You are trying to open a project created with a previous version of Visual Studio (not your case)
There was a bit of a screw-up during the installation (sounds like your case)
I'd uninstall the thing and reinstall completely first thing.
If it still doesn't work, it could be related to VS templates and you might wanna try and run from Visual Studio 2008 command prompt:
devenv /InstallVSTemplates
If it still doesn't work, open Visual Studio, in the menu, Open Tools->Options->Projects and Solutions->General. At this point you will notice the path of Project Templates is set to "C:\Documents and Settings[yourUserName]\My Documents\Visual Studio 9\Templates\ProjectTemplates" or something very similar to that. In order to fix it you gotta set that path to C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\Project Templates or the same path according to wherever you installed Visual Studio
I don't think is related to VS project Templates though - see this link
Try and see what happens!
Why didn't you use visual studio's uninstall function available from the control panel|add/remove programs?
I would uninstall the latest installation as described above, and try again.