vscode install failed with "install failed error" on windows7 - visual-studio-code

I try to install vscode on windows7 and get "install failed error", no detailed information, is there someone get the same error? It is crazy that vscode can not be installed on windows.

Use something like 7Zip to extract the archived files to a VSCodeSetup folder, with the resulting files:
Mode LastWriteTime Length Name
---- ------------- ------ ----
----- 4/22/2015 8:28 AM 140782 background.gif
----- 4/27/2015 6:22 PM 60255967 Code-0.1.0-full.nupkg
----- 4/27/2015 6:22 PM 74 RELEASES
-a--- 4/30/2015 9:25 AM 1911 SquirrelSetup.log
----- 4/24/2015 11:12 AM 1492992 Update.exe
Then open PowerShell (a CMD window would also work). I cd'd into the VSCodeSetup folder and ran the following command:
PS>.\Update.exe --install=.
(You may need to run PS or the CMD window as Administrator)
Referenced post: VSCode Installation Failed - Failed to extract installer

Related

Terraform - Unable to intiate terraform

I am trying to initiate terraform on visual studio code - insiders.
Points:
I have downloaded the terraform executable file and i am able to launch it on command prompt.
When to run the command terraform init command on visual studio code - insider i get the following error message. Please find the error message below and also the location of the terraform index.
PS F:\terraform> terraform.exe init
Fatal error in launcher: Unable to create process using
'"c:\python38\python.exe" "c:\Python38\Scripts\terraform.exe" init':
the system cannot find the file specified.
PS F:\terraform> ls
Directory: F:\terraform
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 18-09-2021 22:21 .terraform
-a--- 18-09-2021 22:33 1035 .terraform.lock.hcl
-a--- 18-09-2021 22:48 219 main.tf
-a--- 18-09-2021 22:48 41 provider.tf
----- 18-09-2021 23:44 80807800 terraform.exe
I have tried to run the same code ps core 6 i get the above error message in the command prompt it works perfectly.
I really your inputs on what can be done.
Please help
Regards
Sudlo
Here the steps which I performed to fix the issue.
I launched PS core prompt went into the directory in my case
f:\terrform and passed the command terraform init I got the same error message.
went into the location C:\Python38\Scripts and located the terraform executable file deleted the file and copied it again and performed initialization command. This time there was no error.
Hope this helps

Another clarification on Azure DevOps Pipeline: -d--- and -a--- mode

I do a Download of My Build.SourceDirectories and what is get is of this format:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 3/11/2021 8:51 PM ReleaseNoteScripts
d----- 3/11/2021 8:51 PM Flow_Tools_CodeGen_PS
-a---- 3/11/2021 8:51 PM 1319 README.md
I am using this Directory to run a powershell script to upload it in SharePoint. I am able to do it for files with mode d--- but it fails for file with mode -a--- . In this case, It gives me error as README.MD file is not found. What is -a--- mode and I am ok with README.md file not uploaded in SharePoint. How should I remove that my PowerShell Script don't take this file
Mode is a misnomer. It's really Attributes:
d is a directory, a is the archive bit set, r is read-only, s is system, h is hidden, etc.
Why this fails on the a entry suggests that your task to upload is only looking at directories and not files at that folder level. Would need to see more to say more.

powershell upgrade to 6.2 doesnt upgrade anything (except my mode)

I have run the script below
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
The msi below gets downloaded and I run it, the wizard finishes without any remarks
https://github.com/PowerShell/PowerShell/releases/download/v6.2.0/PowerShell-6.2.0-win-x64.msi
The only problem is that when I run
"$PSVersionTable.PSVersion"
It still says
Major Minor Build Revision
----- ----- ----- --------
5 1 17763 316
and a require-statement in another script also says that I have v5.1...
(yes, I have restarted my machine:))
Any ideas?

Installing Ganache.appx on Windows 10

I am using the following command in PowerShell to install Truffle's Ganache on my Windows 10 machine:
Add-AppxPackage -Path "C:\Users\mabel\Downloads\Ganache.appx"
Whenever I run that command I get the following error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFD, A Prerequisite for an install could not be satisfied.
Deployment Add operation with target volume C: on Package Ganache_1.0.1.0_x64__zh355ej5cj694 from: (Ganache.appx)
failed with error 0x80073CFD. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment
issues.
NOTE: For additional information, look for [ActivityId] 1e4d6f55-8379-0000-3191-4d1e7983d301 in the Event Log or use
the command line Get-AppxLog -ActivityID 1e4d6f55-8379-0000-3191-4d1e7983d301
At line:1 char:1
+ Add-AppxPackage -Path "C:\Users\mabel\Downloads\Ganache.appx"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (C:\Users\mabel\Downloads\Ganache.appx:String) [Add-AppxPackage], Exceptio
n
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
I digged a bit deeper for a diagnosis and ran the command Get-AppxLog -ActivityID 1e4d6f55-8379-0000-3191-4d1e7983d301, and got the following log details:
Time ID Message
---- -- -------
1/1/2018 8:13:38 PM 301 The calling process is powershell.exe
1/1/2018 8:13:38 PM 603 Started deployment Add operation on a package with main parameter: Ganache.appx and
Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
1/1/2018 8:13:41 PM 157 The app package signature was validated for core content of the app package published
by CN=Consensys Inc, O=Consensys Inc, L=New York, S=New York, C=US. Payload won't be
validated until the files are read.
1/1/2018 8:13:42 PM 170 The streaming reader was created successfully for app package
Ganache_1.0.1.0_x64__zh355ej5cj694.
1/1/2018 8:13:42 PM 10002 Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\edc8d325-87ef-
46b9-93c2-cf029ff3f8f4_S-1-5-21-2104190792-3376611798-3824734217-1001_1.rslc for Add
Operation on Package Ganache_1.0.1.0_x64__zh355ej5cj694.
1/1/2018 8:13:42 PM 607 Deployment Add operation on package Ganache_1.0.1.0_x64__zh355ej5cj694 has been
de-queued and is running for user DESKTOP-8NHB92D\mabel.
1/1/2018 8:13:42 PM 613 Adding uri to the list of Uris: file:///C:/Users/mabel/Downloads/Ganache.appx.
1/1/2018 8:13:42 PM 605 The last successful state reached was BundleProcessed. Failure occurred before
reaching the next state Indexed.
1/1/2018 8:13:42 PM 401 Deployment Add operation with target volume C: on Package
Ganache_1.0.1.0_x64__zh355ej5cj694 from: (Ganache.appx) failed with error
0x80073CFD. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
1/1/2018 8:13:42 PM 404 AppX Deployment operation failed for package Ganache_1.0.1.0_x64__zh355ej5cj694 with
error 0x80073CFD. The specific error text for this failure is: Deployment Add
operation with target volume C: on Package Ganache_1.0.1.0_x64__zh355ej5cj694 from:
(Ganache.appx) failed with error 0x80073CFD. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment
issues.
The windows forum recommended me to make sure Windows is fully updated, the last time I updated it was an hour ago.
From the link in the error it says "A specified install prerequisite couldn't be satisfied." I have all the prerequisites to install and run testrpc/ganache cmd line. Are there any steps I need to take before installing Ganache UI?
I got the same error, because my windows version was not updated.
Open the .appx file as a zip file
In the root is a file: AppxManifest.xml
There is an optional section on prerequisites.
But before that is a dependencies entry with a minimum windows version.
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.14316.0" />
</Dependencies>
Then I checked in powershell to get my dot version:
PS C:\Users\XXXXX\> [System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 10240 0
14316 > 10240, so my OS is too old.
In case you want an executable file, You will find an executable file here, named ganache-setup-1.3.0.exe
You can download a ganache source and build it by yourself
https://github.com/trufflesuite/ganache
Clone this repo
Run npm install
Run npm start

How do I start SourceTree 2 from the command line on Windows?

SourceTree 2.0 is substantially different from SourceTree 1 in that it uses a rolling release model - eg:
$ ls $env:LOCALAPPDATA\sourcetree
Directory: C:\Users\mike\AppData\Local\sourcetree
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 27/04/2017 17:12 app-2.0.19.1
d----- 09/05/2017 10:44 app-2.0.20.1
d----- 09/05/2017 10:44 packages
-a---- 08/05/2017 16:25 3225 SquirrelSetup.log
-a---- 18/04/2017 23:51 1518408 Update.exe
So there's no static directory for SourceTree executables anymore.
Previous versions of SourceTree included an 'stree' command but the 'Install Command Line Tools' option but this is MacOS only.
How do I start SourceTree 2 from the command line on Windows?
Got it. As Steve Streeting mentions here you can get the current path the active version of SourceTree 2 from the registry.
Combining that with some powershell gives:
function stree {
$SourceTreeCommand = (Get-ItemProperty HKCU:\Software\Classes\sourcetree\shell\open\command).'(default)'.split()[0].replace('"','')
& $SourceTreeCommand -f .
}