Cant Install XSharp27

This forum is meant for questions and discussions about the X# language and tools
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Cant Install XSharp27

Post by Horst »

Hi
I uploaded XSharpSetup27Public.zip to my Webserver. But i cant Install it. It doesnt support the windows version.
Its Windows Server 2019

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

Cant Install XSharp27

Post by robert »

Horst,
What did you install:
- the compiler
- the runtime
The installer has no minimum Windows version requirement .
The runtime needs at least .Net Framework 4.6.
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Cant Install XSharp27

Post by Horst »

Hi Robert
i have the newst .net framework on it.
version 2.6.1.0 was not a problem to install. i think its the installer, because thats the first msg i got when i start the exe.
See pic
Horst
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Cant Install XSharp27

Post by robert »

Horst,
That is strange.
We are creating the installer with Inno Setup.
We have not included a "MinVersion" settings and according to the docs it should default to:

Code: Select all

 6.1sp1 (Windows 7 with Service Pack 1 or Windows Server 2008 R2 with Service Pack 1)


See https://jrsoftware.org/ishelp/topic_set ... ersion.htm

Is there a setup log file in your Temp folder ? If so, can you send that to me ?
(Setup Log YYYY-MM-DD #NNN.log). You can also run the installer with /log=yourlogfilename


Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Cant Install XSharp27

Post by Horst »

Hi
Logile in the zip
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Cant Install XSharp27

Post by robert »

Horst,
From the log:

Code: Select all

2021-02-10 10:02:39.940   Windows version: 6.0.6000  (NT platform: Yes)
Apparently Windows Server 2019 is returning the wrong version information.
I checked in the install script for X# 2.6 and we had a version in the script before (we are now relying on the default for Inno):

Code: Select all

Minversion=6.0.600
I'll put that back in the script for the next installer

The quickest solution that I can give is:
- Install 2.6
- Install 2.7 on another machine
- Copy the 2.7 folder from the other machine over the 2.6 folder. DO NOT copy the Uninst folder
- Run the deploy<nn>.cmd file(s) (in the uninst folder) on the server (the ones that were created by the 2.6 installer) as administrator.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Cant Install XSharp27

Post by Horst »

Hi Robert
Do you have a cmd batch for installing only the runtime for the app into the GAC ?
I tried to remove xsharp and then i copied all xsharp and vo dll's to the my bin folder. but thats doesnt work like in VO.

Otherwise i will go back to the 2.6 Version also on my develop pc.

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

Cant Install XSharp27

Post by robert »

Horst,

Create a batch file with the following contents:

cd "c:Program Files (x86)XSharpRedist"
for %%i in (XSharp.????.dll) do gacutil /nologo /i %%i
for %%i in (XSharp.???.dll) do gacutil /nologo /i %%i
for %%i in (XSharp.??.dll) do gacutil /nologo /i %%i
for %%i in (XSharp.Macro*.dll) do gacutil /nologo /i %%i
for %%i in (VO*.dll) do gacutil /nologo /i %%i
pause

Open a Visual Studio command prompt and run this batch file as administrator

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Horst
Posts: 327
Joined: Tue Oct 13, 2015 3:27 pm

Cant Install XSharp27

Post by Horst »

Hi Robert
Thanks a lot.

Horst
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am

Cant Install XSharp27

Post by Karl-Heinz »

Hi Horst,

the most interesting part of your log file is this line:

Code: Select all

2021-02-10 10:02:39.940   Compatibility mode: Yes (PerProcessSystemDPIForceOn GdiDPIScaling DPIUnaware VistaRTM)
That´s strange, because it seems that your installer exe has these (four) compatibility mode settings. The reported version 6.0.6000 is correct, because that´s the initial Vista version+build number. "VISTARTM" means: the installer runs in "Windows Vista" mode .

When you look at your registry, does this path exist ?

Code: Select all

ComputerHKEY_CURRENT_USERSOFTWAREMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers
are there any entries ?

When I set the installer exe compatibility options as shown in the attached image i´m able to reproduce the error "This program does not support the version of Windows your computer is running" on my Win10 machine. The created registry entries in the Layers subdir are the fullpath of the installer exe and the same compatibility values as in your log file.

Code: Select all

~ PERPROCESSSYSTEMDPIFORCEON GDIDPISCALING DPIUNAWARE VISTARTM
Now, when i uncheck in the compatibility settings the OS checkbox the installer runs, because that removes "VISTARTM" from the registry setting.

Here´s a link that describes the compatibiltiy mode and its values
https://www.tenforums.com/tutorials/155 ... -10-a.html

Take a look at :

Code: Select all

5. To Set Compatibility Mode Settings for an App
regards
Karl-Heinz
Post Reply