espressif / idf-installer

ESP IDF Windows Installer
https://dl.espressif.com/dl/esp-idf/
102 stars 21 forks source link

Release online-2.21-beta-01 - Ignoring existing MSVC Buil Tools during install. #176

Closed ChrisJones79 closed 1 year ago

ChrisJones79 commented 1 year ago

FYI: Installer created a new Build Tools instance when installing. Didn't check existing installation. I did select v5.0.1 and installed Rust options. During MSVC installation, Visual Studio Installer had Build Tools (2). I'm attaching build logs, I think. Had previous installation of xtensa Rust toolchain v1.68.0, espup <v0.3.2.

Some existing software was recognized and utilized or upgraded but not MSVC Build Tools / Win11 SDK v10.0.22621

I will attach my what I can from that single install event:

Setup Log 2023-03-15 #001.txt

dd_vs_build_tools_decompression_log.txt

dd_bootstrapper_20230315081411.log

dd_installer_20230315081412.log

dd_installer_elevated_20230315081416.log

dd_setup_20230315081656.log

dd_setup_20230315081417.log

dd_setup_20230315081414_errors.log dd_setup_20230315081656_errors.log dd_setup_20230315081417_137_Microsoft.VC.14.35.17.5.MFC.X86.Spectre.base.log dd_setup_20230315081417_138_Microsoft.VC.14.35.17.5.ATL.X64.Spectre.log dd_setup_20230315081417_139_Microsoft.VC.14.35.17.5.ATL.X86.Spectre.log dd_setup_20230315081417_140_Microsoft.VC.14.35.17.5.ATL.Headers.log dd_setup_20230315081417_141_Microsoft.VC.14.35.17.5.ATL.Source.log dd_setup_20230315081417_142_Microsoft.VC.14.35.17.5.MFC.Headers.log dd_setup_20230315081417_143_Microsoft.VC.14.35.17.5.MFC.Source.log dd_setup_20230315081417_144_Microsoft.VC.14.35.17.5.MFC.MBCS.Spectre.log dd_setup_20230315081417_145_Microsoft.VC.14.35.17.5.MFC.MBCS.X64.Spectre.log dd_setup_20230315081417_146_Microsoft.VC.14.34.17.4.MFC.Redist.X64.Spectre.log dd_setup_20230315081417_147_Microsoft.VC.14.34.17.4.MFC.Redist.X86.Spectre.log dd_setup_20230315081417_148_Microsoft.VC.14.35.17.5.MFC.X64.Spectre.log dd_setup_20230315081417_149_Microsoft.VC.14.35.17.5.MFC.X86.Spectre.log dd_setup_20230315081417_136_Microsoft.VC.14.35.17.5.MFC.X86.Debug.Spectre.base.log dd_setup_20230315081417_135_Microsoft.VC.14.35.17.5.MFC.X64.Spectre.base.log dd_setup_20230315081417_134_Microsoft.VC.14.35.17.5.MFC.X64.Debug.Spectre.base.log dd_setup_20230315081417_131_Microsoft.VC.14.35.17.5.MFC.MBCS.X64.Spectre.base.log dd_setup_20230315081417_132_Microsoft.VC.14.34.17.4.MFC.Redist.X64.Spectre.base.log dd_setup_20230315081417_133_Microsoft.VC.14.34.17.4.MFC.Redist.X86.Spectre.base.log dd_setup_20230315081417_130_Microsoft.VC.14.35.17.5.MFC.MBCS.X64.Debug.Spectre.base.log dd_setup_20230315081417_129_Microsoft.VC.14.35.17.5.MFC.MBCS.Spectre.base.log dd_setup_20230315081417_128_Microsoft.VC.14.35.17.5.MFC.MBCS.Debug.Spectre.base.log dd_setup_20230315081417_125_Win11SDK_10.0.22621.log dd_setup_20230315081417_126_Microsoft.VC.14.35.17.5.ATL.X64.Spectre.base.log dd_setup_20230315081417_127_Microsoft.VC.14.35.17.5.ATL.X86.Spectre.base.log dd_setup_20230315081417_124_Microsoft.VisualCpp.HTMLHelpWorkshop.Msi.log dd_setup_20230315081417_123_Microsoft.VC.14.35.17.5.MFC.Source.base.log dd_setup_20230315081417_122_Microsoft.VC.14.35.17.5.MFC.Headers.base.log dd_setup_20230315081417_103_Microsoft.VisualStudio.StaticAnalysis.IDE.log dd_setup_20230315081417_104_Microsoft.VC.14.35.17.5.CA.Ext.Hostx64.Targetx86.Res.base.log dd_setup_20230315081417_105_Microsoft.VC.14.35.17.5.Servicing.CAExtensions.log dd_setup_20230315081417_106_Microsoft.VC.14.35.17.5.CA.Ext.Hostx64.Targetx86.base.log dd_setup_20230315081417_107_Microsoft.VisualCpp.CA.Ext.Hostx64.Targetx86.log dd_setup_20230315081417_108_Microsoft.VC.14.35.17.5.CA.Ext.Hostx64.Targetx64.Res.base.log dd_setup_20230315081417_109_Microsoft.VC.14.35.17.5.CA.Ext.Hostx64.Targetx64.base.log dd_setup_20230315081417_110_Microsoft.VisualCpp.CA.Ext.Hostx64.Targetx64.log dd_setup_20230315081417_111_Microsoft.VC.14.35.17.5.CA.Ext.Hostx86.Targetx86.Res.base.log dd_setup_20230315081417_112_Microsoft.VC.14.35.17.5.CA.Ext.Hostx86.Targetx86.base.log dd_setup_20230315081417_113_Microsoft.VisualCpp.CA.Ext.Hostx86.Targetx86.log dd_setup_20230315081417_114_Microsoft.VC.14.35.17.5.CA.Ext.Hostx86.Targetx64.Res.base.log dd_setup_20230315081417_115_Microsoft.VC.14.35.17.5.CA.Ext.Hostx86.Targetx64.base.log dd_setup_20230315081417_116_Microsoft.VisualCpp.CA.Ext.Hostx86.Targetx64.log dd_setup_20230315081417_117_Microsoft.VisualCpp.CodeAnalysis.Extensions.log dd_setup_20230315081417_118_Microsoft.VC.14.35.17.5.Servicing.ATL.log dd_setup_20230315081417_119_Microsoft.VC.14.35.17.5.ATL.Headers.base.log dd_setup_20230315081417_120_Microsoft.VC.14.35.17.5.ATL.Source.base.log dd_setup_20230315081417_121_Microsoft.VC.14.35.17.5.Servicing.MFC.log dd_setup_20230315081417_096_Microsoft.VC.14.35.17.5.Tools.HostX64.TargetX86.base.log dd_setup_20230315081417_097_Microsoft.VisualCpp.Tools.HostX64.TargetX86.log dd_setup_20230315081417_098_Microsoft.VisualStudio.StaticAnalysis.auxil.Resources.log dd_setup_20230315081417_099_Microsoft.VisualStudio.StaticAnalysis.auxil.log dd_setup_20230315081417_100_Microsoft.VisualStudio.StaticAnalysis.FxCop.Resources.log dd_setup_20230315081417_101_Microsoft.VisualStudio.StaticAnalysis.FxCop.log dd_setup_20230315081417_102_Microsoft.VisualStudio.StaticAnalysis.IDE.Resources.log dd_setup_20230315081417_085_Microsoft.VisualCpp.Premium.Tools.HostX64.TargetX86.log dd_setup_20230315081417_086_Microsoft.VC.14.35.17.5.Prem.HostX86.TargetX86.Res.base.log dd_setup_20230315081417_087_Microsoft.VC.14.35.17.5.Premium.Tools.HostX86.TargetX86.base.log dd_setup_20230315081417_088_Microsoft.VisualCpp.Premium.Tools.HostX86.TargetX86.log dd_setup_20230315081417_089_Microsoft.VC.14.35.17.5.Prem.Hostx86.Targetx64.Res.base.log dd_setup_20230315081417_090_Microsoft.VC.14.35.17.5.Premium.Tools.HostX86.TargetX64.base.log dd_setup_20230315081417_091_Microsoft.VisualCpp.Premium.Tools.HostX86.TargetX64.log dd_setup_20230315081417_092_Microsoft.VC.14.35.17.5.Tools.HostX64.TargetX64.Res.base.log dd_setup_20230315081417_093_Microsoft.VC.14.35.17.5.Tools.HostX64.TargetX64.base.log dd_setup_20230315081417_094_Microsoft.VisualCpp.Tools.HostX64.TargetX64.log dd_setup_20230315081417_095_Microsoft.VC.14.35.17.5.Tools.HostX64.TargetX86.Res.base.log dd_setup_20230315081417_072_Microsoft.VC.14.35.17.5.CRT.x86.Store.base.log dd_setup_20230315081417_073_Microsoft.VisualCpp.CRT.x86.Store.log dd_setup_20230315081417_074_Microsoft.VC.14.35.17.5.PGO.Headers.base.log dd_setup_20230315081417_075_Microsoft.VisualCpp.PGO.Headers.log dd_setup_20230315081417_076_Microsoft.VC.14.35.17.5.PGO.X64.base.log dd_setup_20230315081417_077_Microsoft.VisualCpp.PGO.X64.log dd_setup_20230315081417_078_Microsoft.VC.14.35.17.5.PGO.X86.base.log dd_setup_20230315081417_079_Microsoft.VisualCpp.PGO.X86.log dd_setup_20230315081417_080_Microsoft.VC.14.35.17.5.Prem.HostX64.TargetX64.Res.base.log dd_setup_20230315081417_081_Microsoft.VC.14.35.17.5.Premium.Tools.HostX64.TargetX64.base.log dd_setup_20230315081417_082_Microsoft.VisualCpp.Premium.Tools.HostX64.TargetX64.log dd_setup_20230315081417_083_Microsoft.VC.14.35.17.5.Prem.HostX64.TargetX86.Res.base.log dd_setup_20230315081417_084_Microsoft.VC.14.35.17.5.Premium.Tools.HostX64.TargetX86.base.log dd_setup_20230315081417_070_Microsoft.VC.14.35.17.5.CRT.x86.OneCore.Desktop.base.log dd_setup_20230315081417_071_Microsoft.VisualCpp.CRT.x86.OneCore.Desktop.log dd_setup_20230315081417_068_Microsoft.VC.14.35.17.5.CRT.x64.Store.base.log dd_setup_20230315081417_069_Microsoft.VisualCpp.CRT.x64.Store.log dd_setup_20230315081417_066_Microsoft.VC.14.35.17.5.CRT.x64.OneCore.Desktop.base.log dd_setup_20230315081417_067_Microsoft.VisualCpp.CRT.x64.OneCore.Desktop.log dd_setup_20230315081417_060_Microsoft.VisualCpp.Tools.HostX86.TargetX64.log dd_setup_20230315081417_061_Microsoft.VisualCpp.Tools.Hostx86.Targetx64.Res.log dd_setup_20230315081417_062_Microsoft.VC.14.34.17.4.CRT.Redist.x64.OneCore.Desktop.base.log dd_setup_20230315081417_063_Microsoft.VisualCpp.CRT.Redist.x64.OneCore.Desktop.log dd_setup_20230315081417_064_Microsoft.VC.14.34.17.4.CRT.Redist.x86.OneCore.Desktop.base.log dd_setup_20230315081417_065_Microsoft.VisualCpp.CRT.Redist.x86.OneCore.Desktop.log dd_setup_20230315081417_054_Microsoft.VC.14.35.17.5.Tools.HostX86.TargetX86.base.log dd_setup_20230315081417_055_Microsoft.VisualCpp.Tools.HostX86.TargetX86.log dd_setup_20230315081417_056_Microsoft.VisualCpp.Tools.HostX86.TargetX86.Res.log dd_setup_20230315081417_057_Microsoft.VC.14.35.17.5.Tools.Hostx86.Targetx64.Res.base.log dd_setup_20230315081417_058_Microsoft.VC.14.35.17.5.Props.x64.log dd_setup_20230315081417_059_Microsoft.VC.14.35.17.5.Tools.HostX86.TargetX64.base.log dd_setup_20230315081417_041_Microsoft.VC.14.35.17.5.CRT.x86.Desktop.base.log dd_setup_20230315081417_042_Microsoft.VisualCpp.CRT.x86.Desktop.log dd_setup_20230315081417_043_Microsoft.VisualCpp.Servicing.DIASDK.log dd_setup_20230315081417_044_Microsoft.VisualCpp.DIA.SDK.log dd_setup_20230315081417_045_Microsoft.VisualCpp.Tools.Common.Utils.Resources.log dd_setup_20230315081417_046_Microsoft.VisualCpp.Tools.Common.Utils.log dd_setup_20230315081417_047_Microsoft.VC.14.35.17.5.Tools.Core.Props.log dd_setup_20230315081417_048_Microsoft.VisualCpp.Tools.Core.x86.log dd_setup_20230315081417_049_Microsoft.VisualCpp.Tools.Core.Resources.log dd_setup_20230315081417_050_Microsoft.VC.14.35.17.5.Tools.HostX86.TargetX86.Res.base.log dd_setup_20230315081417_051_Microsoft.VC.14.35.17.5.Props.log dd_setup_20230315081417_052_Microsoft.VC.14.35.17.5.Props.x86.log dd_setup_20230315081417_053_Microsoft.VC.14.35.17.5.Servicing.Compilers.log dd_setup_20230315081417_039_Microsoft.VC.14.35.17.5.CRT.x64.Desktop.base.log dd_setup_20230315081417_040_Microsoft.VisualCpp.CRT.x64.Desktop.log dd_setup_20230315081417_037_Microsoft.VC.14.35.17.5.CRT.Source.base.log dd_setup_20230315081417_038_Microsoft.VisualCpp.CRT.Source.log dd_setup_20230315081417_029_Microsoft.VC.14.35.17.5.CRT.Headers.base.log dd_setup_20230315081417_030_Microsoft.VisualCpp.CRT.Headers.log dd_setup_20230315081417_031_Microsoft.VisualCpp.Servicing.Redist.log dd_setup_20230315081417_032_Microsoft.VC.14.34.17.4.CRT.Redist.X64.base.log dd_setup_20230315081417_033_Microsoft.VisualCpp.CRT.Redist.Resources.log dd_setup_20230315081417_034_Microsoft.VisualCpp.CRT.Redist.X64.log dd_setup_20230315081417_035_Microsoft.VC.14.34.17.4.CRT.Redist.X86.base.log dd_setup_20230315081417_036_Microsoft.VisualCpp.CRT.Redist.X86.log dd_setup_20230315081417_011_Microsoft.VisualStudio.BuildTools.Resources.log dd_setup_20230315081417_012_Microsoft.VisualStudio.VC.DevCmd.Resources.log dd_setup_20230315081417_013_Microsoft.VisualStudio.VC.DevCmd.log dd_setup_20230315081417_014_Microsoft.VisualStudio.VsDevCmd.Core.DotNet.log dd_setup_20230315081417_015_Microsoft.VisualStudio.VsDevCmd.Core.WinSdk.log dd_setup_20230315081417_016_Microsoft.VisualStudio.VsDevCmd.Ext.NetFxSdk.log dd_setup_20230315081417_017_Microsoft.VisualStudio.Setup.Configuration.Interop.log dd_setup_20230315081417_018_Microsoft.VisualStudio.VC.MSBuild.v170.Base.Resources.log dd_setup_20230315081417_019_Microsoft.VisualStudio.VC.MSBuild.v170.Base.log dd_setup_20230315081417_020_Microsoft.VisualStudio.VC.MSBuild.v170.X64.log dd_setup_20230315081417_021_Microsoft.VisualStudio.VC.MSBuild.v170.X64.v143.log dd_setup_20230315081417_022_Microsoft.VisualStudio.VC.MSBuild.v170.X86.log dd_setup_20230315081417_023_Microsoft.VisualStudio.VC.MSBuild.v170.x86.v143.log dd_setup_20230315081417_024_Microsoft.VS.VC.vcvars.x64.Shortcuts.log dd_setup_20230315081417_025_Microsoft.VS.VC.vcvars.x86.Shortcuts.log dd_setup_20230315081417_026_Microsoft.VisualStudio.VC.vcvars.log dd_setup_20230315081417_027_Microsoft.VC.14.35.17.5.Servicing.log dd_setup_20230315081417_028_Microsoft.VC.14.35.17.5.Servicing.CrtHeaders.log dd_setup_20230315081417_006_Microsoft.CodeAnalysis.Compilers.log dd_setup_20230315081417_007_Microsoft.NuGet.Build.Tasks.Setup.log dd_setup_20230315081417_008_Microsoft.PythonTools.BuildCore.Vsix.log dd_setup_20230315081417_009_Microsoft.Build.Dependencies.log dd_setup_20230315081417_010_Microsoft.VisualStudio.Net.Eula.Resources.log dd_setup_20230315081417_003_Microsoft.VisualStudio.NuGet.BuildTools.log dd_setup_20230315081417_004_Microsoft.Build.log dd_setup_20230315081417_005_Microsoft.VisualStudio.NativeImageSupport.log dd_setup_20230315081417_001_Microsoft.VisualStudio.VC.Icons.log dd_setup_20230315081417_002_Microsoft.Build.UnGAC.log dd_setup_20230315081417_errors.log dd_setup_20230315081414.log

ChrisJones79 commented 1 year ago

Is this the reason?:

Telemetry property VS.SetupEngine.Id : VisualStudio/17.5.2+33502.453

Then,

[3bc4:000a][2023-03-15T08:14:18] Compatible ProductCode '{F23B70A8-9367-4AFE-9D16-EB4B2BD66DB5}' found for package 'Microsoft.VisualStudio.MinShell.Msi,version=17.5.33306.270,productarch=x86'
[3bc4:000a][2023-03-15T08:14:18] Compatible package version is less than or equal to the package version. Code '{F23B70A8-9367-4AFE-9D16-EB4B2BD66DB5}' will not be used for repair/uninstall attempts.
georgik commented 1 year ago

Thank you for report @ChrisJones79 The installer is not checking previous installation of VS Tools. It just invokes the installer of VS Tools which should do the check of integrity on their own. Rustup itself has now support for bootstrapping those tools, so we will probably remove the duplication of this procedure from the installer and let the rustup do the job of boostrapping requirements.

ChrisJones79 commented 1 year ago

I've been so excited to learn rust for esp32 but I've had a pretty hard time getting everything working.

So thank you very much @georgik and team. Everything that makes that ecosystem stronger is very much appreciated!

georgik commented 1 year ago

@ChrisJones79 Thank you for your feedback. Bootstrapping Rust on Windows is slightly more complex than one would expect.

I would like to ask you for some more details. Right now, we're using the following commands to deploy Windows SDK.

vs_build_tools.exe --passive --wait --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621

Code: https://github.com/espressif/idf-installer/blob/test/release-2.21/src/InnoSetup/PreInstall.iss#L267

The Component ID is derived from this list: https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2022

What versions of VC Tools/SDK were deployed on your system and were not taken into account? We can somehow modify the result of vs_build_tools CLI based on selector of Component ID.

In my case I've deployed it on clean Windows 11 Sandbox and the installation deployed VC Tools and Windows11SDK. The second time I run the command it was using already deployed version.

BTW: Workaround is to use rustup-init.exe in interactive mode. When it detects that VC Tools or Windows11SDK is missing it will prompt user to install it. Unfortunatelly the rustup feature does not support non-interactive mode, which we need for smooth deployment.

georgik commented 1 year ago

The new release 2.21 is available. Feel free to re-open in case of problem.

ChrisJones79 commented 1 year ago

Thank you. I'm sorry I wasn't able to respond in a timely manner. Life has been complicated. I appreciate the help and will try the new installer.

On Fri, Mar 31, 2023, 05:38 Juraj Michálek @.***> wrote:

The new release 2.21 is available. Feel free to re-open in case of problem.

— Reply to this email directly, view it on GitHub https://github.com/espressif/idf-installer/issues/176#issuecomment-1491636200, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY6C5JJFHUVECIRFZT67ZDW62QYNANCNFSM6AAAAAAV3XXZGA . You are receiving this because you were mentioned.Message ID: @.***>