Page 1 of 2
Cant Install XSharp27
Posted: Wed Feb 10, 2021 7:51 am
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 8:02 am
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 8:39 am
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 8:54 am
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 9:10 am
by Horst
Hi
Logile in the zip
Cant Install XSharp27
Posted: Wed Feb 10, 2021 9:24 am
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):
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 3:36 pm
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
Cant Install XSharp27
Posted: Wed Feb 10, 2021 6:28 pm
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
Cant Install XSharp27
Posted: Thu Feb 11, 2021 11:22 am
by Horst
Hi Robert
Thanks a lot.
Horst
Cant Install XSharp27
Posted: Thu Feb 11, 2021 12:46 pm
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