简体   繁体   English

如何在不使用任何代码的情况下在 Windows 启动时运行 WPF 应用程序

[英]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.

相关问题 如何在 windows 启动时延迟 WPF 应用程序的启动? - How can I delay the start of WPF application on windows startup? 在启动时在任务栏中显示wpf应用程序,而无需使用System.Windows.Application - Show wpf application on startup in taskbar without using System.Windows.Application 如何在 Windows 启动时运行 C# 应用程序? - How to run a C# application at Windows startup? 在Windows启动时启动wpf应用程序 - Launch wpf Application on Windows startup 在Windows Phone 8中使用Nokia Imaging Sdk时如何使用Any Cpu模式运行我的应用程序 - how can i use Any Cpu Mode to run my Application when using Nokia imaging Sdk in Windows Phone 8 如何在.net WPF应用中添加应用到windows启动发送arguments? - How to add application to windows startup sending arguments in a .net WPF application? 如何为WPF应用程序修复此代码? - How can I fix this code for WPF Application? 如何允许我的应用程序在 Windows 启动时运行(或更好的用户登录)而不会被 vista/7 阻止 - How to allow my application to run on Windows startup (or better, user login) without getting blocked from vista/7 WPF浏览器应用程序可以运行不安全的代码吗? - Can a WPF Browser Application run unsafe code? 如何使用Windows应用程序驱动程序在UI自动化单元测试期间验证WPF复选框的状态? - How can I verify the state of a WPF checkbox during a UI Automation Unit Test using the Windows Application Driver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM