When I create an application with Visual Studio 2010 and then try to run the exe, it requires that I install it. I'm trying to create a very simple program that doesn't require installation. An example of this would me something like procmon.exe. You can run procmon without any installation required.
Also, is it possible to create the exe without requiring a certificate?
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
Hello I have created a DLL file using visual C++ 2010, that runs a C script that i have written.
I have then created a user interface using visual C# 2010 and linked everything together.
On my machine the resulting exe application runs perfectly.
However when i try to put the folder, containing BOTH the exe and the dll, on other computers.. it runs on some computers, but on others it does not.
the error i receive has to do with "Cant find dll file or assembly".
All computers have windows 7 64bit installed.
My question is: Is there a requirement for the application to run? (files or something that should be installed on all machines???)
I have noticed the following (after alot of looking) that:
the computers that run the application HAVE visual studio 2010 installed
the computers that do not run the application DO NOT have visual studio 2010 but have visual studio 2008 installed..
all computers have .NET framework 4.5 installed.
Do you think the visual studio has anything to do with this?!!? isnt the point having a stand alone application is to make the app run on any machine?
Is there a way to fix it so that the app will run on any computer regarding having visual installed or not?
thank you all..
You can use Dependency Walker to check what dll the program can't find.
Just load the .exe into the program.
You might also find that you will need to install the Visual Studio 2010 Redistributable on those computers that you are deploying to.
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
I have a project that suffers from a Visual Studio bug shown here
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=356321
It means that I can't build the installer project on my windows 7 machine
(the workaround presented doesn't work for me, regcap.exe crahses when I try to run it)
Now I plan to build the installer on a remote XP machine or in XP mode. Can I do this without installing the full Visual Studio? What is the command line to build from a .vdproj file?
The obvious choice that comes to mind is using msbuild, but unfortunately it doesn't support building from .vdproj files. Another option without using Visual Studio is to use Team Foundation Build, if you have it installed or can afford to install it on one of your machines.
Ugly work around: move to wix - http://wix.sourceforge.net/
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