FAQ: Autostart of an application at Windows logon

Description

The SiteKiosk shell replacement (e.g. active in the so-called “Autostart“ mode of SiteKiosk) causes applications stored in the Startup directory (Start-->All Programs-->Startup) to be overlooked when the user logs on to the system.

Since SiteKiosk 8.x you can start external applications after the start of the SiteKiosk browser by adding them to the SiteKiosk configuration (-->Applications) and enabling the checkbox at “Run program automatically“:
https://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?applications.htm


Alternatively or with older versions:
If you would like these applications to be launched even though you are using SiteKiosk in shell replacement mode, you must store the programs in the directory
HK_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENT_VERSION/RUN
located in the Windows Registry, rather than in the Startup folder.

Another option is to use the Windows function “Scheduled Tasks.”
This Windows feature allows you to select a user under whose access rights this program is supposed to be executed.




You can also create an external script that launches a program after SiteKiosk was started.

EXAMPLE (JavaScript in combination with SiteKiosk Object Model):

evtid = SiteKiosk.Scheduler.AddDelayedEvent(5000, start);

function start()
{
SiteKiosk.ExternalApps.Run("c:/windows/notepad.exe", false);
}


In this sample script, “notepad.exe“ is launched 5 seconds (5,000 ms) after the start of the SiteKiosk browser (SiteKiosk.exe).

Use an editor (e.g. Notepad) to create a JS file (e.g. start.js) and copy these lines to the file.
Continue by simply saving the JavaScript file you created to the directory ...SiteKiosk\Html\ and add it to the SiteKiosk configuration as an external script (-->Browser-->Browser Design-->Advanced-->Execute Script File).


Please note that the script above is merely an example. When you implement your own application, you may have to observe certain user access rights.
These include “read AND write access“ to the corresponding directories.

If necessary, you can use the System Security Wizard to adjust this and other rights for the SiteKiosk user.

Answer: (0)

No answers/comments
My Account
Login
Language (Articles):