[英]How Can I Run the WPF application at Windows startup without using any code
I have created one WPF application and i converted that application into exe.我创建了一个 WPF 应用程序,并将该应用程序转换为 exe。 Now i want to run the application while windows startup.Is there any way to startup my app without writing any new code in my WPF?
现在我想在 Windows 启动时运行应用程序。有没有什么方法可以启动我的应用程序而无需在我的 WPF 中编写任何新代码?
You will have to do that as part of your installation script, not as part of your application (consider asking the user for consent).您必须将其作为安装脚本的一部分,而不是作为应用程序的一部分(考虑征求用户同意)。
See here for an example: Set that a program has to run at startup from an installer请参见此处的示例: 设置程序必须在从安装程序启动时运行
So technically, the answer to your question is: yes, you can do that without any code changes to your application.因此,从技术上讲,您的问题的答案是:是的,您无需对应用程序进行任何代码更改即可做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.