Support Request: Run external .exe

Description

Hello,

we have made an update of Windows and Sitekiosk from 9.3 to 9.8 and we would like to use the Chrome browser now instead of IE. We have a small script which loads the .exe and it does not work anymore (the rest is OK) :

<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.ExternalApps.Run("c:\\Program Files (x86)\\VaudTax 2019\\VaudTax-2019.exe", false);
</SCRIPT>

Is there something to do so we can run this application again ?

Thank you for your help.

Answer: (5)

Re: Run external .exe 1/12/2021 2:50 PM
Hello,

The SiteKiosk Object Model for the Chrome engine differs from the one for the Internet Explorer engine.
Also see: https://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm

But you can check using the second example here that shows how you can start external applications from a web site in the SiteKiosk browser with Chrome Browser skin:
https://devblog.provisio.com/post/2016/05/20/Starting-External-Applications-from-Web-Pages.aspx

Regards,
Michael Olbrich
Re: Run external .exe 1/13/2021 3:20 PM
Sorry but it works well with IE, but your example does not work under Chrome 87.0. Maybe is it due to new rules of security ?

Is there something else that blocks the execution of the script ? In the logs there is nothing written not event an error.

KR
Re: Run external .exe 1/13/2021 3:38 PM
Hello,

the first example is for IE skin only.
https://devblog.provisio.com/post/2016/05/20/Starting-External-Applications-from-Web-Pages.aspx

But I checked the second example for Chrome Browser Skin from 2016 and saw it uses an old method to initialize the chromium object model

<!--Initializing the SiteKiosk Object Model for Chrome engine-->
<script type="text/javascript" src="file://C:/Program Files (x86)/SiteKiosk/SiteKioskNG/assets/siteKiosk/sitekiosk.js"></script>

To initialize the Chromium Object model in a web page you now should use

<script type="text/javascript">(new Function(_siteKiosk.getSiteKioskObjectModelCode()))();</script>


Like this:

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>App Start with the SiteKiosk Object Model (Chrome Engine)</title>

<!--Initializing the SiteKiosk Object Model for Chrome engine-->
<script type="text/javascript">(new Function(_siteKiosk.getSiteKioskObjectModelCode()))();</script>

<script>
//Running the external application using a universal method for optional parameter usage
function runExtApp(extapppath, extappparameter) {
var completepath = extapppath;

//Check if parameter is not empty and adding parameter to path
if (extappparameter !== "")
completepath += " " + extappparameter;

siteKiosk.system.windows.skLegacy.externalApps.run(completepath, false);
}
</script>
</head>
<body style="margin-left:auto;margin-right:auto;margin-top:50px;text-align:center;">
<input type="button" value="Start Notepad without parameter" onclick="runExtApp('c:/windows/notepad.exe', '');"/><!--You can either use single forward slashes in the path-->
<input type="button" value="Start Notepad with parameter" onclick="runExtApp('c:\\windows\\notepad.exe', 'C:\\Program Files (x86)\\SiteKiosk\\Html\\extapptest.txt');"/><!--Or you can use double backward slashes in the path-->
</body>
</html>


Here some other examples with “Using the Classic SiteKiosk Object Model in SiteKiosk Windows Chrome Browser”:
http://devblog.provisio.com/post/2018/03/20/Using-the-Classic-SiteKiosk-Object-Model-in-SiteKiosk-Windows-Chrome-Browser.aspx

General notes:
Please understand that our free support cannot offer any assistance with creating your own code or customizing the skin files (apart from the detailed SiteKiosk and SiteKiosk Object Model documentation).
http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?support.htm

Documentation:
- General Information about customizing SiteKiosk: http://www.provisio.com/web/us/features/siteskin
- SiteKiosk help: http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?customization_%28site_skin%29.htm
- SiteKiosk Object model help for IE based skins: http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm
- The SiteKiosk Object model help for Chrome Browser Skin can be requested via e-mail at support-europe(at)provisio.com

Further hints and suggestions can be found in our developer blog at http://devblog.provisio.com/


If you need further assistance in creating individual coding solutions you can contact us via e-mail that we may find a solution against payment for your needs.
In case you are interested in a solution against payment please write a detailed description to support-europe(at)provisio.com that we can check the technical feasibility and the amount of work to make a quotation.
The adjustment fees are depending on the complexity of the changes and in general it costs 120 Euro per hour.

Regards,
Michael Olbrich
Re: Run external .exe 1/13/2021 4:54 PM
Hello,

It works perfectly, the problem was the old script initializing the Object Model given in you first answer.

This one is ok for Chrome 87.0 :

<script type="text/javascript">(new Function(_siteKiosk.getSiteKioskObjectModelCode()))();</script>

Thank you very much!
KR
Re: Run external .exe 1/13/2021 4:57 PM
Thank you for your feedback.
My Account
Login
Language (Tickets):