OrderNet is a a popular stock trading platform in Israel. OrderNet comes in two versions: The regular version is based on Silverlight and can be used on Linux using Pipelight. The Pro version is a desktop program written in .NET Framework and features better interface. This post walks through the steps needed to get OrderNet Pro running on Debian Jessie using Wine.
- OrderNet Pro on Debian Jessie.
- OrderNet Pro running on Debian Jessie.
Installing Wine
OrderNet Pro is a 32bit application, so we will need to enable the i386 architecture. Also it requires a more recent version of Wine than is available at the stable repository, so we will enable the Jessie backports repository.
# echo "deb http://httpredir.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list
# dpkg --add-architecture i386
# apt-get update
# apt-get install -t jessie-backports wine-development wine32-development winetricks winbind
Now we go one to install the .Net framework. To do so we will create a different Wine prefix for 32bit.
$ export WINE=/usr/bin/wine-development
$ export WINESERVER=/usr/bin/wineserver-development
$ export WINEARCH=win32
$ export WINEPREFIX=$HOME/.wine32
$ winetricks dotnet40 corefonts
Installing Wine Gecko
Download the Wine Gecko MSIs for suitable for your wine version. The links below work for wine-developement packaged for Jessie Backports (wine-1.9.12):
$ wget https://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86.msi
$ wine-development msiexec /i wine_gecko-2.44-x86.msi
Check the installation by running
$ wine-development wineboot -fu
If you get the following error
Could not load wine-gecko. HTML rendering will be disabled.
then there is a problem with your wine-gecko installation. In that case it’s best to remove ~/.wine32
and try again form the beginning.
Installing OrderNet Pro
OrderNet Pro is a ClickOnce application, so there is no real installation, you just have to run it once.
wine-development rundll32 dfshim.dll,ShOpenVerbApplication https://ibiclickonce.ordernet.co.il/files/rts/ClickOnce/Ibi/Fmr.Rts.Shell.application
where the URL is taken from your investment firm’s OrderNet Pro page. For example, for IBI the page https://ibiclickonce.ordernet.co.il/ has a link to the correct URL.
Creating a shortcut
In order to make launching OrderNet Pro as easy as any other application, we need to create a desktop file. Start by downloading an appropriate icon:
$ wget -O ~/.local/share/icons/hicolor/256x256/apps/ordernet-pro.png https://ibiclickonce.ordernet.co.il/LaNegra.png
and then create the desktop file itself:
$ cat << EOF > ~/.local/share/applications/ordernet-pro.desktop
[Desktop Entry]
Type=Application
Name=OrderNet Pro
%Comment=A sample application
Exec=env WINEPREFIX=$HOME/.wine32 wine-development rundll32 dfshim.dll,ShOpenVerbApplication https://ibiclickonce.ordernet.co.il/files/rts/ClickOnce/Ibi/Fmr.Rts.Shell.application
Icon=ordernet-pro
Terminal=false
EOF