Installation of Nextion Editor

Questions about Wine on Linux
Locked
flvtxfreak
Newbie
Newbie
Posts: 3
Joined: Sun Jul 19, 2020 10:01 pm

Installation of Nextion Editor

Post by flvtxfreak »

Winehq version: 5.0.1
OS: Ubuntu 18.04.4 64bit

Wine appears to run ok. Winefile, winecfg, and notepad all start and appear to run ok.
Gecko and mono are installed:

wine uninstaller --list

Code: Select all

{92E6986F-9DE7-4D94-A27F-3601B260C881}|||Wine Gecko (32-bit)
{83F3DB41-CE50-411F-B218-93FD46CE0AB0}|||Wine Gecko (64-bit)
{0A3CE9B1-FEEE-59FE-9F5B-6AD87E9D6D55}|||Wine Mono Runtime
{8938A429-407D-5208-903D-37777470D766}|||Wine Mono Windows Support
WINEARCH is set to win32 and I'm just going with the default .wine prefix.
I'm attempting to install the Nextion Editor application. The setup
file I've downloaded is nextion-setup-v1-60-2.exe, currently their latest I believe.

From the Downloads directory when I execute wine nextion-setup-v1-60-2.exe, the following is
echoed to terminal and then the setup dialog starts:

Code: Select all

002d:fixme:explorerframe:taskbar_list_SetProgressValue iface 00111638, hwnd 00030054, ullCompleted 10000, ullTotal 9e000 stub!
002d:fixme:explorerframe:taskbar_list_SetProgressState iface 00111638, hwnd 00030054, flags 0 stub!
0030:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0030:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
The installer appears to work and starts the typical install process but never gets to the expected
"Program installed" press OK type dialog, It just quits and the following lines are output
to terminal:

Code: Select all

0030:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0030:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
Failed to run module constructor due to (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)
Now it appears in installed software list:

Code: Select all

{A32FC570-5615-409B-BD34-2DCBBF90A697}|||Nextion Editor
{92E6986F-9DE7-4D94-A27F-3601B260C881}|||Wine Gecko (32-bit)
{83F3DB41-CE50-411F-B218-93FD46CE0AB0}|||Wine Gecko (64-bit)
{0A3CE9B1-FEEE-59FE-9F5B-6AD87E9D6D55}|||Wine Mono Runtime
{8938A429-407D-5208-903D-37777470D766}|||Wine Mono Windows Support
An entry is created in my Applications tabs and a desktop shortcut is created with the following properties:

Code: Select all

env WINEPREFIX="/home/huw/.wine" wine C:\\Program\ Files\ \(x86\)\\Nextion\ Editor\\Nextion\ Editor.exe 
Double click on the desktop shortcut brings up Ubuntu Untrusted dialog. Click on Trust and Launch and then nothing.

I've tried starting the .exe up using winefile but I get the following line in terminal:

Code: Select all

Failed to run module constructor due to (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)
I've also changed into the prefix directory where it installed The Nextion app and tried
starting with wine 'Nextion Editor.exe' but get the same line as above.

I specified the WINEARCH=win32 intially because posts relating to Nextion Editor
software under wine (there werent that many) all seemed to reference that in their
attempts, albeit a year or more ago.

Any advice on moving forward from this point would be much appreciated.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation of Nextion Editor

Post by jkfloris »

Something went wrong when creating the 32-bit prefix. A 32 bit prefix doesn't have Wine Gecko 64-bit or the Program Files (x86) directory.

The Nextion Editor requires Microsoft .Net 3.5 and wants Windows Media Player.
Fortunately, you can easily install both with winetricks

Code: Select all

# Make sure your winetricks version is uptodate
sudo winetricks --self-update

# Create a 32-bit prefix and install .Net and Windows Media Player
WINEPREFIX=~/.nextion WINEARCH=win32 winetricks -q dotnet35 wmp11

# Run the installer
WINEPREFIX=~/.nextion wine nextion-setup-v1-60-2.exe

# Run Nextion
cd ~/.nextion/drive_c/Program\ Files/Nextion\ Editor/
WINEPREFIX=~/.nextion wine Nextion\ Editor.exe
flvtxfreak
Newbie
Newbie
Posts: 3
Joined: Sun Jul 19, 2020 10:01 pm

Re: Installation of Nextion Editor

Post by flvtxfreak »

jkfloris wrote: Tue Jul 21, 2020 4:38 pm Something went wrong when creating the 32-bit prefix. A 32 bit prefix doesn't have Wine Gecko 64-bit or the Program Files (x86) directory.

The Nextion Editor requires Microsoft .Net 3.5 and wants Windows Media Player.
Fortunately, you can easily install both with winetricks

Code: Select all

# Make sure your winetricks version is uptodate
sudo winetricks --self-update

# Create a 32-bit prefix and install .Net and Windows Media Player
WINEPREFIX=~/.nextion WINEARCH=win32 winetricks -q dotnet35 wmp11

# Run the installer
WINEPREFIX=~/.nextion wine nextion-setup-v1-60-2.exe

# Run Nextion
cd ~/.nextion/drive_c/Program\ Files/Nextion\ Editor/
WINEPREFIX=~/.nextion wine Nextion\ Editor.exe
Thank you for your response. I removed/purged my installed winetricks then installed from git. Now Version 20200412

Then:

$ WINEPREFIX=~/.nextion WINEARCH=win32 winetricks -q dotnet35 wmp11
Executing mkdir -p /home/huw
Using winetricks 20200412-next - sha256sum: d3829f1cfe6fa655b178ef1f547bc39c9e4acfac72899726ab310a8462f34167 with wine-5.0.1 and WINEARCH=win32
Executing w_do_call dotnet35
Executing mkdir -p /home/huw
Executing load_dotnet35
------------------------------------------------------
dotnet35 does not yet fully work or install on wine. Caveat emptor. <<----Problem or just warning???
------------------------------------------------------


$ WINEPREFIX=~/.nextion wine Downloads/nextion-setup-v1-60-2.exe
002d:fixme:explorerframe:taskbar_list_SetProgressValue iface 00111690, hwnd 00030054, ullCompleted 10000, ullTotal 9e000 stub!
002d:fixme:explorerframe:taskbar_list_SetProgressState iface 00111690, hwnd 00030054, flags 0 stub!
0030:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0030:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0030:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0030:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
Failed to run module constructor due to (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)

$ WINEPREFIX=~/.nextion wine Nextion\ Editor.exe
Failed to run module constructor due to (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)

Same messages/behavior as before. What is it about 'mono' or 'mscorlib.dll' thats problematic?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation of Nextion Editor

Post by jkfloris »

Code: Select all

$ WINEPREFIX=~/.nextion WINEARCH=win32 winetricks -q dotnet35 wmp11
Executing mkdir -p /home/huw
Using winetricks 20200412-next - sha256sum: d3829f1cfe6fa655b178ef1f547bc39c9e4acfac72899726ab310a8462f34167 with wine-5.0.1 and WINEARCH=win32
Executing w_do_call dotnet35
Executing mkdir -p /home/huw
Executing load_dotnet35
------------------------------------------------------
dotnet35 does not yet fully work or install on wine. Caveat emptor. <<----Problem or just warning???
------------------------------------------------------
Just a warning, but the log should be much longer. It can take a couple of minutes to install .Net 3.5.
The other log files show that .Net 3.5 is not installed. Mono is the replacement of .Net (mscorlib) in Linux / Wine
(Please use the forum code-tags when posting a terminal output)
fargodwe

Re: Installation of Nextion Editor

Post by fargodwe »

I went through the process of creating the 32-bit prefix, installing .NET4.5 via winetricks. In the middle of that installation a dialog box comes up from the .NET installer about Windows Installer Service is missing and that .NET installation may fail. I clicked continue and let it go ahead. Then ran the editor installer. Immediately following installation it automatically tries to start the editor. That fails with another message box that is apparently tied to the one in the .NET installation. It wouldn't let me copy that window so I'll post the text here:

Code: Select all

This application could not be started.  
You must enable the .NET Framework from the Windows 
Features dialog box (from Control Panel, choose Programs,
turn Windows Features on or off.
.
I haven't seen a recent post from the original poster to know where they got to so I thought I would try to see if I could learn how to install it. I don't know if it helps in troubleshooting more problems with this. I for one would be curious how to work around the Windows Installer Service missing message box in the .NET installation as I think it would at least let it get further. I didn't find anything with wine to run the Windows control panel (I would have thought there would be no need for it ;) ).
flvtxfreak
Newbie
Newbie
Posts: 3
Joined: Sun Jul 19, 2020 10:01 pm

Re: Installation of Nextion Editor

Post by flvtxfreak »

Update: I went back and recreated the .nextion prefix. I saw another post on this forum about .NET35 and they mentioned winbind and corefonts (amontg other things). I apt installed winbind, used wineconfig to install corefonts. I also remembered someone on one of the hundred pages I looked over mentioning the two com32*.dlls possibly being needed so I installed them also. Then, installing dotnet35 using winetricks worked. Took several minutes, then I applied dotnet35sp1, then I installed wmp11.
Running the nextion editor setup this time worked. It installed and auto launched. The desktop shortcut also works. Havent done anything with it yet but at least things have worked now up to this point.

Thanks much for the assistance getting this going!
fargodwe

Re: Installation of Nextion Editor

Post by fargodwe »

my boo-boo - never meant for the post from me to get posted and it won't let me change it. Please ignore it!
Locked