在系统启动时安装MSI [英] Install a msi at system startup time

查看:118
本文介绍了在系统启动时安装MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台安装在另一台计算机上的计算机的可引导磁盘.我需要准备好可引导磁盘,以便在使用已安装的可引导磁盘创建计算机时安装了某些msi.

I have a bootable disk from a machine which is mounted on another machine. I need to make the bootable disk ready so that when i create a machine using that mounted bootable disk some of the msi's are installed.

在系统启动时不知道实例凭据的情况下运行msi的最佳方法是什么?

What is the best way to run the msi's at system startup without knowing the instance credentials?

注意:我已经尝试使用RunOnce和AutoAdminLogon,它可以工作,但是我需要知道此方法的凭据.

Note : I have tried using RunOnce and AutoAdminLogon, it works but i need to know the credentials for this method.

此外,由于我只有可启动磁盘,因此我需要使用可以通过更改注册表配置单元来执行的方法.

Also, since i have only the bootable disk i need to use methods which can be performed by making changes in registry hive.

预先感谢您的建议.

推荐答案

我终于得到了我的问题的答案,还有很多其他方法,但是我已经测试了以下两种方法.

I finally got the answer to my question, there are many other methods but i have tested the following two methods.

方法1 -我们可以编写一个bat文件来安装msi或任何其他操作,并将其作为启动脚本.为了使其成为启动脚本,我们需要输入以下内容:

Method 1 - We can write a bat file to install the msi or any other operation and place it as the startup script. For making it as the startup script, we need to make following entries :

  1. 将bat文件复制到以下位置:%boot_drive_name%\Windows\System32\GroupPolicy\Machine\Scripts\Startup
  2. 将注册表加载到注册表配置单元中的boot_drive中.
  3. 创建注册表项,并包含您的bat文件名: HKLM\%reg_hive_name%\Microsoft\Windows\CurrentVersion\GroupPolicy\Scripts\Startup\0\0 HKLM\%reg_hive_name%\Microsoft\Windows\CurrentVersion\GroupPolicy\State\Machine\Scripts\Startup\0\0
  1. Copy the bat file to the location : %boot_drive_name%\Windows\System32\GroupPolicy\Machine\Scripts\Startup
  2. Load the registry in the boot_drive in registry hive.
  3. Create the registry key and include your bat file name : HKLM\%reg_hive_name%\Microsoft\Windows\CurrentVersion\GroupPolicy\Scripts\Startup\0\0 HKLM\%reg_hive_name%\Microsoft\Windows\CurrentVersion\GroupPolicy\State\Machine\Scripts\Startup\0\0

方法2 -我们可以在删除可引导磁盘之前安装路径为 srvany.exe 的服务,然后可以使用注册表配置单元并将srvany服务的参数更改为在Windows启动时运行MSI或任何其他Windows应用程序.

Method 2 - We can install services with path to srvany.exe before removing the bootable disk then we can use registry hive and change the parameters for the srvany service to run msi's or any other windows application at windows startup.

如果我们不想更改源计算机上的任何内容,则方法1更好.我们可以通过使用注册表来触发启动脚本来完成所有工作.

Method 1 is better if we do not want to change anything on the source machine. We can do everything by using registry to trigger the startup script.

这篇关于在系统启动时安装MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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