17
votes

During installation I get a message:

Unfortunately, the component installation did not complete successfully. Please check the detailed logs for the error message.

I tried installing to all users, single user, many destinations and names.

Details:

Output folder: C:\Program Files (x86)\Google\Cloud SDK Downloading Google Cloud SDK core. Extracting Google Cloud SDK core. Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat Installing components. The filename, directory name, or volume label syntax is incorrect. Failed to install.

What to do?

4
Can you report this issue code.google.com/p/google-cloud-sdk/issues/list, with windows version, and what instaltion method you are using. You can also try cloud.google.com/sdk/downloads#versioned to download a zip archive, which you can simply unzip and run without installation step.cherba
i am facing the similar issue, it was working fine earlier but when I reinstalled google cloud sdk the msi installer is giving me the similar error.LondonUK
@LondonUK how you fixed this issue, as I am facing the same issue. earlier it was working and when I reinstalled not working and similar error.Rathakrishnan Duraimoni

4 Answers

9
votes

for some reason it seems it doesn't like the spaces in the path. Change to other path without spaces: like C:/some/folder/with/no/spaces/cloud-sdk

3
votes

The 'find' command is a standard Windows command which has been around since the days of DOS. If it doesn't exist on your system, this usually means your PATH is broken or someone has deleted 'find.exe' from C:\Windows\System32. In either case it's not an issue with the Cloud SDK installer.

If you still have 'find.exe' in C:\Windows\System32, you can check your PATH variable and add 'C:\Windows\System32' back to it if it's not included.

Source: https://issuetracker.google.com/issues/35907845

2
votes

I got the same error when installing it yesterday and I tried a different sets of solutions for this.

  • I created a find.exe path in my PATH variable
  • I also created a CLOUDSDK_PYTHON path in my environment variable
  • I tried uninstalling Python (2.7.14, I think) and re-installing it.
  • I redirected the path where the SDK is going to be installed to. The default path was C:\Program Files (x86)\Google\Cloud SDK\. I just removed the space on CloudSDK and it installed right after.

Hope this helps.

1
votes

It is a space issue in Cloud SDK folder/directory path, google cloud sdk installer adds default path as

C:\{USER_DIR}\Google\Cloud SDK

So remove space between Cloud and SDK or change path to different folder without spaces, it should work fine.