如何在信息亭模式下运行C#程序? [英] How to run a C# program in kiosk mode?
问题描述
我有一个要在Windows平板电脑上安装的c#和WPF程序,我希望我的程序是平板电脑上唯一运行的程序,当用户打开平板电脑时,它应该会自动开始自动运行。
任何解决方案吗?
I have a c# and WPF program which i want to install on a windows tablet, i want my program to be the only program running on the tablet, it should start running automatically right when the user will turn on the tablet. Any solution?
推荐答案
从不使用Windows原始信息亭模式-它没有用。使用外壳替换。
Never use windows original kiosk mode - it useless. Use shell replacing.
要配置Windows信息亭模式,您需要执行以下步骤:
To configure Windows kiosk mode you need next steps:
- 为信息亭模式创建用户
- 将此用户的下一个注册表项设置为应用程序的路径:
Windows XP / 7:
Windows XP/7:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\\full\\path\\to\\your\\application.exe>"
Windows 8和更高版本:
Windows 8 and later:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"Shell"="C:\\full\\path\\to\\your\\application.exe>"
信息亭用户的自动登录:
Autologin for kiosk user:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"ForceAutoLogon"="1"
"DefaultUserName"="kiosk"
"DefaultDomainName"="<place here pc hostname>"
"DefaultPassword"=""
[Option] 如果您需要禁用Ctrl + Alt + Del,然后使用此注册表项值()或将其放置在自己的应用程序中:
[Option] If you need to disable Ctrl+Alt+Del, then use this registry key value ("") or you can place there own application:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe]
"Debugger"="\"\""
使用您的应用程序作为shell创建信息亭用户并创建/激活管理员密码。使用自动登录以管理员身份加载时,在Windows加载时以及在自动登录之前或注销时按Shift键-Windows将不会自动登录并显示用户列表。或者,您不能设置自动登录,并且窗口将显示2位用户:admin和kiosk用户,您将使用此软件。
Create kiosk user with this your application as shell and create/activate admin with password. With autologin to load as admin press shift when windows loading and before autologin or while logging out - windows will not autologin and show users list. Or, you can don't set autologin and windows will show 2 users: admin and kiosk user with this your software.
这篇关于如何在信息亭模式下运行C#程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!