Install and Uninstall


The OLE server is bundled in JChem_NET_API installer, when JChem_NET_API is installed it automatically register OLE server too. Administrator privileges are required for the installation since the installer writes the Windows registry. OLE server does not require the presence of Marvin Beans package. If it is not available it uses the .NET version of MarvinSketch (that is also part of the JChem_NET_API as the OLE server OLE server). If Marvin Beans package has been installed, OLE server prefers the Java based Marvin by editing OLE objects.

When you install Java based Marvin Beans package, the installer strores a reference in the Windows registry about the location of the MarvinSketch application. OLE server check this reference when try to look-up it.

The Marvin Beans installer also includes the JChem_NET_API.msi file and launch it automatically during the installation process. It means that you do not have to download or register any extra resources to setup OLE server since installer does it automatically.

If you do not use Marvin Beans installer but you need both Marvin and OLE server, you have to do the followings:

  • Download and JChem_NET_API-VERSION.msi.

  • Unwrap the

  • Launch the downloaded JChem_NET_API installer in administrator mode.

  • Run installole.bat in administrator mode with the following parameters from the lib folder of the Marvin Beans package to register the location of Marvin Beans package for the OLE server.

    installole.bat /c "MARVINHOME\lib" MARVIN_VERSION

    where MARVINHOME is the absolute path of target directory where Marvin has been installed to and MARVIN_VERSION is the version id of Marvin release. E.g.:

    installole.bat /c "C:\Program Files\ChemAxon\MarvinBeans\lib" 5.3.4

If installation has been successful, you will find OLE Server resource in the
C:\Program Files\ChemAxon\Shared\MarvinOLE folder.


When you uninstall JChem_NET_API, OLE server is also unregistered and the C:\Program Files\ChemAxon\Shared folder is also deleted (where OLE server resources was stored).

In this case, Marvin OLE support will not be available for Marvin.

When you uninstall Marvin Beans package, JChem_NET_API uninstaller is also invoked unless other products still keep reference to it.

Of course, uninstallation also requests administration privileges.

Administrator privileges

Windows 2000/XP: Most users have got administrator privileges in default (unless the system administrator restricts it). If you have got full control on your machine (install anything freely), you have administrator rights. In this case, installer/uninstaller will run definitely with admin privileges.

Windows Vista: Vista security policy is more strict than earlier Windows versions. If a user has got administrator rights, it does not mean that he can run everything with these privileges. In default, all programs run without extra rights. To run a program with administrator privileges, you have to select Run As Administrator by launching (right-click on the icon of the application and choose Run As Administrator option). After selecting this option, Vista will ask for confirmation to run the application with high privileges, click Allow. The application will run in admin mode.

Although ChemAxon installer/uninstaller does not require admin rights, it detects the highest running level and tries to run in administrator mode automatically (if it is possible). If the installer has got the proper rights, it does registration/unregistration of OLE server in the background during the (un)installation process.