需要帮助为wpf应用程序创建安装程序包,该程序包应在启动时以自助服务机模式运行 [英] Need help for creating a setup package for wpf application which should in kiosk mode on startup

查看:82
本文介绍了需要帮助为wpf应用程序创建安装程序包,该程序包应在启动时以自助服务机模式运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wpf应用程序,需要为其创建安装程序包.
我可以创建安装程序包,但我需要创建一个程序包,该程序包将安装应用程序,以便在Windows PC启动时以信息亭模式运行.
任何帮助将不胜感激.

部署目标机器:
嵌入式Windows Standard

I have a wpf application for which I need to create a Setup package .
I can create the setup package but I need the create a package which will install the application to run in kiosk mode on boot up of windows PC.
Any help would be greatly appreciated.

Target machine for deployment :
Windows Standard Embbedded

推荐答案

您的应用应设计为Kiosk模式,而不是安装程序.

这可以通过如下所示在Window上设置WindowStyleWindowState属性来实现.
Your app should be designed for Kiosk mode and not the installer.

This can be achieved by setting the WindowStyle and WindowState properties on the Window as shown below.
<Window x:Class="LearnWPF.KioskMode.Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="LearnWPF.KioskMode"

    WindowStyle="None"

    WindowState="Maximized"> 


此处的详细信息:如何我可以在信息亭"模式下启动WPF应用程序吗? [


Details here: How can I have my WPF application start in "kiosk" mode?[^]


UPDATE:
You need to use the Registry for running a program at startup. You can use the RegistryKey class that''s in the System.Win32 namespace. The following code shows how to do this:

RegistryKey rk = Registry.CurrentUser;
RegistryKey StartupPath;
StartupPath = rk.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
if (StartupPath.GetValue("ProjectName") == null)
{
    StartupPath.SetValue("ProjectName", Application.ExecutablePath, RegistryValueKind.ExpandString);
}


此处的详细信息:
在启动时运行程序 [ ^ ]


Details here: Running a program at startup[^]


这篇关于需要帮助为wpf应用程序创建安装程序包,该程序包应在启动时以自助服务机模式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆