问题标签 [srvany]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
250 浏览

windows - 我可以从注册表创建服务吗?

我有一个启动磁盘备份,我想用它来迁移到云。我需要安装一些 msi 包。我已经找到了一种使用srvany.exe安装 msi 包的方法,但我需要使用注册表项在引导磁盘中创建一个 srvany 服务。

  • 我可以从注册表创建服务吗?
  • 有没有其他方法可以仅使用备份的启动盘在系统启动时触发安装程序?

注意- 我尝试使用 Run/RunOnce 选项并使用 AutoAdminLogon 触发它,但这在系统登录时有效,我需要一个在系统启动时有效的解决方案。