Lab 5: Configure Shell Launcher or Assigned Access
Many IoT device scenarios require a custom user experience. This can be done by either automatically launching an application at Windows startup, or a custom shell experience. Using a custom shell experience enables the OEM to create a controlled user experience where the Windows UI is hidden and the OEM application is the focus.
Windows 10 IoT Enterprise has two custom shell features that enable this custom user experience.
Shell Launcher enables OEMs to set a classic, non-UWP, app as the system shell. The advantage to using Shell Launcher is the ability to provide custom actions based on the exit code of the OEM application. For example if the OEM application exits with a specific exit code, the system can be configured to automatically restart the application, reboot or shutdown the device, etc.
Assigned Access enables OEMs to set a UWP application as the system shell. Similar to Shell Launcher, Assigned Access can automatically restart the application when it's closed, keeping the device in the intended user experience.
For a fully automated approach to enabling these features, consider using the Windows 10 IoT Enterprise deployment framework.
Complete Lab 4: You should have a basic image that's been sysprepped and ready to be captured.
Complete the OOBE process on the IoT device
In lab 4 we used Sysprep to get the system ready for capture and deployment. The following steps assume you're using the image from lab 4. The steps will still work on system that hasn't been Sysprepped, but the OOBE experience will already be completed.
Complete the OOBE process on the reference system
Turn on the reference IoT device and boot to the OS partition. The OS was in a Sysprep state and OOBE should begin.
Complete the OOBE experience. Choose the settings that match your device requirements.
The OOBE experience can be fully automated using an Answer File along with Sysprep to answer the OOBE questions in advance. For more details refer to the example Answer Files in the Windows 10 IoT Enterprise deployment framework.
Enable and configure Shell Launcher
Enable Shell Launcher
Once the device is booted to the desktop, enable the Shell Launcher. From an Administrative Command Prompt:
DISM /online /Enable-Feature /FeatureName:Client-EmbeddedShellLauncher
Configure Shell Launcher to run an OEM application
With Shell Launcher enabled, you can set an application as the Windows Shell. Below, we'll show you how to use notepad.exe as the shell for the current user. In your device, you'll use a different application in place of Notepad.exe to configure the system to use the OEM application as the shell, but the steps are the same. See Shell launcher to learn more.
To set Notepad.exe as your custom shell:
From PowerShell run:
$ShellLauncherClass = [wmiclass]"\\localhost\root\standardcimv2\embedded:WESL_UserSetting" $ShellLauncherClass.SetDefaultShell("notepad.exe",1) $ShellLauncherClass.SetEnabled($TRUE)
Reboot the reference IoT device. When the system reboots the Notepad application will start as the default system shell.
Enable and configure Assigned Access
The lab steps below provide links on how to install a UWP application suitable for Assigned Access and to configure the system to launch the application automatically at startup. The UWP application must be able to run above the lock screen in order to work correctly with assigned access.
See details on the UWP application requirements for Assigned Access at Create a kiosk app for Assigned Access.
Sideload a UWP application and configure Assigned Access to run it
In this lab, you'll add a UWP app to your image by sideloading it onto the system. For production scenarios follow the guidance on deploying signed UWP applications.
Compile the UWP application and build the APPX package following the steps at Packaging UWP apps.
Sideload the UWP application following the steps at Sideload your app package
Follow the steps at Set up a kiosk using Windows PowerShell to complete the process.
For scenarios where multiple apps are needed, follow the steps at Set up a multi-app kiosk