- Home /
Install Unity WebPlayer Plugin from Intranet
I am working on a project that requires all files to be loaded from the internal network. Is it possible to get the Unity web plugins to install properly from within an intranet? It needs to install for Internet Explorer.
It appears that there are 2 different methods to installing the plugin for Internet Explorer (download a file, or activeX install) .I was able to set it up so that the user can manually download the plugin from a link to install. However, this method requires the browser to be restarted (which is not acceptable). I can't seem to figure out how to get the ActiveX version to install (I'm not sure where the file even is to link to locally)...
I'm hoping someone has done this before!
Thanks!
Answer by slgooding · Dec 05, 2014 at 08:24 PM
I went ahead and solved this myself. I can now install the plugin from a local server using the Internet Explorer application installer. This allows the user to run the plugin without having to restart the browser!
I needed the following files:
UnityWebPlayer.exe
UnityWebPlayer.application
UnityWebPlayerBootstrap.exe.manifest
getunity.png (optional)
I placed these files in a subdirectory called "unityplugin". Hopefully someone else will find this helpful!
Here is the code that I used to create the link to install the application:
div class="missing">
<h2>Unity Web Player must be installed to run this application. Click the button below to download and install it.</h2>
<!--
<a href
-->
<script>
// Files Manually downloaded and placed into subdirectory "unityplugin"
// http://webplayer.unity3d.com/download_webplayer-3.x/UnityWebPlayerBootstrap.exe.manifest
// http://webplayer.unity3d.com/download_webplayer-3.x/3.0/co/UnityWebPlayer.application
// http://webplayer.unity3d.com/download_webplayer-3.x/UnityWebPlayer.exe
// http://webplayer.unity3d.com/installation/getunity.png
var dir = window.location.href.substr(0, location.href.lastIndexOf("/") + 1); // get current URL
// Link to Internet Explorer application installer
document.write("<a href='"+ dir +"unityplugin/UnityWebPlayer.application?installer="+ dir +"unityplugin/UnityWebPlayer.exe' title='Unity Web Player must be installed!'>");
document.write("<img alt='Unity Web Player. Install now!' src='"+dir+"unityplugin/getunity.png' width='193' height='63' />");
</script>
</a>
<h3 style="font-style:oblique;">Note: This application works best with Internet Explorer. If the application will not load after installing the Unity Web Player, please completely close the browser, and start it again.</h3>
</div>