Why Visual Studio code and most of the applications are not installing in fresh windows 10? - visual-studio-code

I am trying to install Visual Studio Code in my fresh windows 10 but it is throwing an error Setup was unable to create a directory
Error 5: Access is denied

Since your UAC(User Account Control) is turned off, and you are running the install as Admin (because you already are admin), it seems like a permission issue and not a UAC issue. Try this:
Create a folder name "Temp" under C:\ // This step is important, the
folder has to exist.
Right click the Computer in Start menu and select Properties. Click
Advanced System Setting. In System Properties windows, click
Advanced tab.
Click Environment Variables button. Under User
variables list, double click TMP.
Change Variable value: from
"%USERPROFILE%\AppData\Local\Temp" to "C:\Temp".
Try to install.

Related

Unable to open or uninstall Visual Studio Code

I downloaded visual studio code a while ago but was never able to open it. When I open the app, I get the error "unable to write program user data". When I run as administrator, a window opens briefly before closing again. When I try to uninstall the program, I get error 5, "unable to create a temporary file. Setup aborted."
I have tried to create new TEMP and TMP directories but it made no difference.
This is on windows 11, the x64 bit version of vscode.
I have installed and used the same version of Visual Studio Code on a previous device (with windows 10 however) and never had any issues.
If you are not allowed to write data.
It means you do not have the necessary permissions for the directories. I see you tried already to run as ADM.
Try to check if your user account got the necessary permissions to write in the directories that you want. In the error message, maybe it shows the directory in question, if not, try first the VSC directories or the PROJECT directory. See below:
To do this, navigate to the directories specified (Or project directory) in the error message and right-click on them. Select "Properties" and then go to the "Security" tab. Make sure that your user account is listed and has the "Full control" permission.
You can also try to reset the settings for VSCode, by running the command Code --reset-settings in the command prompt.

Permission denied when I try to open VSCode using a command line

I'm trying to edit a file by openning it via git using VS Code as an editor
$code texte.txt
and I got this
/c/Users/MAYA/AppData/Local/Programs/Microsoft VS Code/bin/code: line 61: /c/Users/MAYA/AppData/Local/Programs/Microsoft VS Code/Code.exe: Permission denied
I google it but didn' find anything usefull, any help please?
P.S: my environement: windows 7, MINGW64
Thought it would be useful to share this as well.
WSL is not able to run VS Code with Windows environment administrator permissions.
Right-click on your Visual Studio Code shortcut and select "Properties" in C:\Users\<myUsername>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code
In the Compatibility tab's settings section un-check "Run this program as an administrator"
A wonderful person brought this up on this Reddit post.
Follow the steps below and be proud of the OS you use.
Search for "Advanced System Setting" from Start.
Click on Environment Variables
On System Variables choose "path" from Variable tab and click on Edit.
Click on New on the right side of the popup window.
Copy your path from the Explorer's breadcrumb path and paste it into the
new opened path in step 4, example:- C:\Program Files\Microsoft VS
Code\bin
Click Ok on all the open windows to confirm changes and restart your cmd
Now you run it $code.cmd file.extension
I added the path from the Explorer's breadcrumb to Environment Variables under Advanced System Setting then I used $code.cmd file.extension

App built with Install4j does not launch post installation on Windows 10 machine

When I install an java/swing application built with Install4j on Windows 10, it gets installed under default folder C:\Program Files(x86)\MyApp folder but when I try to launch by doing double click on Launcher then it gives an error dialogue with permission issue message :"Windows can not access the specified device, path or file. You may not have appropriate permission to access them". When I launch the same by doing a right click on launcher and then choosing the option "Run as administrator" then it launches fine. I checked the permission on the launcher file for the user I logged in and it was there. Kindly suggest me how to go about this. Is this an user configuration issue on the Windows 10 machine or something else. This problem has been seen recently.

Install VSCode in a specific folder

I just downloaded the Visual Studio Code App from https://code.visualstudio.com/ and when I tried to install it, it simply just installed it by itself, without the option to change the installation path.
I have an external harddrive, which is where I want the IDE to be placed instead of the Local Harddrive. How can I change this?
On the VSCode download page select "System Installer" instead of "User Installer". The System installer will prompt you for the install location.
Full credit to Hans Passant for giving the following working solution as a comment.
The installer does very little beyond copying the files, it just creates some Explorer context menu shortcuts ("Open with Code"). Otherwise following Chromium conventions and copying itself to c:\Users\yourname\AppData\Local\Code\app-0.1.0 so it can update itself without you noticing. Boo. So high odds that simply moving that folder to the other drive works just fine, put it anywhere and create a shortcut to Code.exe. If you still want the context menu entry to work then use Regedit and search for "code\app-0.1.0".

wrapper | OpenSCManager failed - Access is denied. (0x5)

I am trying to install Archiva on windows 8.1 pro (64 bit) and I am continuously getting the same error as below
wrapper | OpenSCManager failed - Access is denied. (0x5).
I logged in as administrator only. But still I am getting the same error. Most of the answers for the same problem I am seeing it for VISTA and 7 etc.. But not for Windows8.1 Pro (64 bit)
You need to run that command as an administrator.
Right-click on the command prompt entry in the start menu / task bar
Select "Run as Administrator"
Navigate to the Archiva installation directory
Then run:
bin\archiva install
net start archiva
Click on Start
Click All Programs
Click on Accessories
Right click on Command Prompt icon
Click Properties
Click on the Shortcut tab on the top
Click the Advanced button at the bottom
Click on the check box that says:
Run as Administrator
Click OK
Go to the folder having the batch file
Enter the command which was giving
Access denied
error
It will execute successfully.
I'm not sure this is supported by the wrapper.
Maybe the way to go for you is to use the war within a servlet container.
Have a look here: http://archiva.apache.org/docs/2.1.0/adminguide/webapp.html
HTH
pleas open Command Prompt run as administrator mode and then go to
{tinydms-home}/bin
then
tinydms install
to installing
Type cmd as shown below:
Run as administrator as shown below:
Sometimes, reopening the console or restarting the computer solves this problem for me. I hope it works