Installation Hanging

This forum is meant for questions and discussions about the X# language and tools
Jeff Stone
Posts: 37
Joined: Fri Jun 07, 2019 4:16 pm

Installation Hanging

Post by Jeff Stone »

Hi Everyone,

I am trying to install the latest public download version to VS 2019. The setup screen has been hanging with "Finishing installation..." displayed for the past hour. I have Windows Security Real-time Virus Protection turned off. Anyone have suggestions as to what other adjustments I may need to make to complete the installation.

TIA,

Jeff
Jamal
Posts: 315
Joined: Mon Jul 03, 2017 7:02 pm

Installation Hanging

Post by Jamal »

Hi Jeff,

I suggest you unzip the installation file, then at CMD prompt, switch to extract folder and type:

XSharpSetup25bPublic.exe /LOG="installation.log"

Then check for any errors in the log file.

If you have a previous installation, try to uninstall first.
It is possible the installer is trying to register certain run .NET assemblies in the GAC or during the generation of native images of the assemblies and got stuck. Also you can try, .NET framework repair and reboot.
Try the above first, If that does not help, there are several options in the installer. Uncheck the optional components one by one and see what happens.

Jamal
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Installation Hanging

Post by robert »

Jamal,
Thanks for helping Jeff.
The /log is enabled by default and should be written to the users temp folder with a default name that contains the installation date.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Installation Hanging

Post by ic2 »

Hello Jeff,

The VS installer is even worse than VS itself. I've had this too, and remarkably solved it by disabling all anti virus software,

See for example https://developercommunity.visualstudio ... stuck.html, last message.

Here's one of (own) my posts about failing VS installation (2017, other issue) https://developercommunity.visualstudio ... ous-s.html

Hope this helps. If you have to solve the cause of individual log messages (like I had to do with the 2nd issue) you will have to invest lots of time.

I think that 2nd issue was due to VS 2015 & 2017 on the same system (which should be possible by the way). When I installed VS 2019 I removed all traces of earlier VS versions and to my astonishment it installed without further issues.

Dick
Jeff Stone
Posts: 37
Joined: Fri Jun 07, 2019 4:16 pm

Installation Hanging

Post by Jeff Stone »

Thanks, Jamal, Robert and Dick. I disabled all antivirus activity and uninstalled VS 2017 so that X# would only install on VS 19. Still hangs. Attached is one of the install logs.

Regards,

Jeff
Attachments
Setup Log 2020-08-17 #002.txt
(346.97 KiB) Downloaded 69 times
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Installation Hanging

Post by ic2 »

Hello Jeff,

Stupid question maybe, but are you sure VS isn't installed anyhow?

There's no single failure message in the 5040 log lines. Near the end it says 2020-08-17 10:09:35.472 Installation process succeeded.

It's doing a lot with X#, de-installing, installing. Not sure why.

Do you find "C:Program Files (x86)Microsoft Visual Studio2019CommunityCommon7IDEdevenv.exe" ?

And does it happen to start VS 2019 if you double click that exe?

It is still possible everything is installed but it just didn't finish.

Dick
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Installation Hanging

Post by ic2 »

something more...

According to the log, VS 2019 is really installed, at the time you begun. It says Vs installation : 1 and Vs product version : 16.7.30406.217, which is the latest VS 2019!

Dick

2020-08-17 10:07:19.027 Installed versions of Visual Studio 2017 & 2019
2020-08-17 10:07:19.027 ===============================================
2020-08-17 10:07:19.027 InstanceId: ff68ee58 (Complete)
2020-08-17 10:07:19.027 InstallationVersion: 16.7.30406.217 (4503631684829401)
2020-08-17 10:07:19.027 InstallationPath: C:Program Files (x86)Microsoft Visual Studio2019Community
2020-08-17 10:07:19.027 Product: Microsoft.VisualStudio.Product.Community
2020-08-17 10:07:19.027 Workloads:
2020-08-17 10:07:19.027 Microsoft.VisualStudio.Workload.CoreEditor
2020-08-17 10:07:19.027 Microsoft.VisualStudio.Workload.Data
2020-08-17 10:07:19.027 Microsoft.VisualStudio.Workload.ManagedDesktop
2020-08-17 10:07:19.027 Microsoft.VisualStudio.Workload.NativeDesktop
2020-08-17 10:07:19.027 Microsoft.VisualStudio.Workload.Universal
2020-08-17 10:07:19.027
2020-08-17 10:07:19.027 Vs 2017-2019 # of installations: 1
2020-08-17 10:07:19.027 ----------------------------------------
2020-08-17 10:07:19.027 Vs installation : 1
2020-08-17 10:07:19.027 Vs instanceId : ff68ee58
2020-08-17 10:07:19.027 Vs installation dir : C:Program Files (x86)Microsoft Visual Studio2019Community
2020-08-17 10:07:19.027 Vs product version : 16.7.30406.217
2020-08-17 10:07:19.027 Vs name : Visual Studio 2019 Community
2020-08-17 10:07:19.027 Vs FullName : Visual Studio 2019 Community (16.7)
2020-08-17 10:07:19.027 DevEnv dir : C:Program Files (x86)Microsoft Visual Studio2019CommunityCommon7Ide
2020-08-17 10:07:19.027 MsBuild dir : C:Program Files (x86)Microsoft Visual Studio2019CommunityMsBuildXSharp
2020-08-17 10:07:19.027 Local appdata dir : C:UsersJeffAppDataLocalMicrosoftVisualStudio16_ff68ee58
2020-08-17 10:07:19.027 ----------------------------------------
2020-08-17 10:07:19.027 Detect 2017-2019 end
2020-08-17 10:07:19.027 End VS Detection
Jeff Stone
Posts: 37
Joined: Fri Jun 07, 2019 4:16 pm

Installation Hanging

Post by Jeff Stone »

VS2019 is fully installed and comes up when devenv.exe is double clicked. No X# references are seen under the Help or Tool menus.
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Installation Hanging

Post by ic2 »

Hello Jeff,
Jeff Stone wrote:VS2019 is fully installed and comes up when devenv.exe is double clicked. No X# references are seen under the Help or Tool menus.
Ok, sounds good. What happens if you de-install X# completely and reinstall it? I've found that installing an older version of X# after de-installing the previous versions works smoothly and in matter of minutes.

Dick
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Installation Hanging

Post by robert »

Jeff,

What I can see in the log file is that:
- the installer detects 1 VS installation (VS 2019 Community)
- all the files are installed without problem
- the files in the GAC are installed without problems
- the registry is updated correctly
- the installation ends with the installation of our extension in VS 2019. This does not seem to complete.

Maybe you can try the following:
- open a command prompt in administrator mode
- run the command file C:Program Files (x86)XSharpuninstdeployvs1.cmd
- check if you see any errors

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply