Windows Installer ( MSI ) 使用的MSI文件格式专门用于安装 - 这与有时用于运行安装程序的EXE格式不同,后者是简单的可执行文件,可以通过编程运行任意数量的任务。(EXE)
当Windows Installer无法在您的 Windows 10 设备上安装程序包时,会出现InstallShield 错误代码 1722 。( InstallShield Error code 1722)当您在错误提示上单击“确定(OK)”时,安装过程会回滚,然后安装失败。您可能会在安装任何软件或驱动程序时遇到此错误。在这篇文章中,我们将找出潜在的原因,并提供最合适的解决方案。
根据您尝试安装的软件,当您遇到此问题时,您将收到类似于以下内容的错误消息;
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
除了焦点错误信息外,您在软件安装过程中也可能会遇到以下情况;
MSI Error 1722: ‘There is a problem with the Windows Installer Package’ during installation/uninstallation.
Error 1722: There is a problem with this Window Installer package. A program run as part of this package did not finish as expected.
Error 1722 – The Windows Installer Service could not be accessed.
Error 1722 – Windows Installer Service couldn’t be started.
Error 1722 – Could not start the Windows Installer service on Local Com Error 5: Access is denied.
以下是此错误的已知潜在罪魁祸首:
- 缺少依赖的系统文件(System Files),如 dll 文件、ocx 文件、sys 文件等。
- 与Installer(Installer)冲突的无效注册表(Registry)项。
- 防病毒软件(Antivirus)最近删除了恶意文件,但也留下了损害。
- 安装程序服务已停止。
- 安装不完整。
如果某些MSI程序包未从Windows 10的(Windows 10)程序(Programs)和功能(Features)小程序中正确删除,也可能会出现该错误。损坏安装的残余有时会阻止软件的安装和卸载。
(InstallShield Error)安装MSI(MSI)程序时出现 InstallShield 错误代码 1722
如果您遇到此问题,您可以尝试以下我们推荐的解决方案(不分先后顺序),看看是否有助于解决问题。
- 运行程序安装(Program Install)和卸载疑难解答(Uninstall Troubleshooter)
- 使用第三方软件卸载程序卸载软件
- 确保已启用Windows Installer服务(Windows Installer)
- 注销并重新注册Windows Installer 服务(Windows Installer Service)
- 执行干净启动(Boot)并安装软件
- 修复 Windows 注册表
让我们看一下关于列出的每个解决方案所涉及的过程的描述。
1]运行(Run)程序安装(Program Install)和卸载疑难解答(Uninstall Troubleshooter)
此解决方案要求您运行Microsoft的程序安装和卸载疑难解答程序,并查看安装 MSI 程序时出现的 InstallShield 错误代码 1722(InstallShield Error code 1722 while installing MSI program)问题是否已解决。当您被阻止安装或删除程序时,程序安装(Program Install)和卸载疑难解答可帮助您自动修复问题。(Uninstall)它还修复了损坏的注册表项。
2]使用第三方软件卸载程序卸载软件
Windows 10 程序(Programs)和功能(Features)小程序有时在从您的设备中删除软件时效率低下 - 在某些情况下,即使软件已成功卸载,您的计算机上仍有残留文件、依赖项,这些可能会导致冲突。在这种情况下,最好使用第三方软件卸载程序(use a third-party software uninstaller),因为他们会彻底从Windows 10计算机中删除软件。
卸载程序后,在不同的文件夹位置下载新的安装程序设置,然后关闭所有程序并运行安装文件。
3]确保启用Windows Installer服务(Windows Installer)
这些软件依赖于Windows Installer 服务(Windows Installer Service)。因此,如果您在安装任何软件时遇到问题,很可能是未启用MSI服务。(MSI)在这种情况下,请确保启用了 Windows Installer 服务(Windows Installer Service is enabled)。
4]注销(Unregister)并重新注册Windows Installer服务(Windows Installer Service)
请执行下列操作:
- 按 Windows key + R 调用“运行”对话框。
- 在“运行”对话框中,键入
cmd
然后按 CTRL + SHIFT + ENTER 以 在管理员模式下打开命令提示符(open Command Prompt in admin mode)。 - 在命令提示符窗口中,键入以下命令并按Enter以暂时取消注册Windows Installer服务:
msiexec /unreg
- 成功处理命令并收到成功消息后,输入以下命令并按Enter 再次注册Windows Installer:
msiexec /regserver
成功处理第二个命令后,再次重新启动计算机,然后再次尝试安装软件。如果安装/卸载错误仍然存在,请尝试下一个解决方案。
5]执行(Perform)干净启动(Clean Boot)并安装软件
执行干净启动(Performing a Clean Boot)可以消除软件安装过程中发生的任何冲突——这意味着使用最少的驱动程序和程序启动 Windows 10 计算机。
6]修复Windows注册表
最近的软件更改(即与Windows安装程序相关的安装或卸载)导致的无效/损坏的注册表项也可能触发此错误。在这种情况下,您可以修复注册表(repair the registry),然后再次尝试安装软件。
相关文章:(Related posts:)
InstallShield Error code 1722 while installing MSI program
The MSI file format used by Windows Installer (MЅI) is used specifically for inѕtallation – this differs from the EXE format sometimes υsed to run installers, which are sіmple executable files that can be programmed to run any number of tasks.
The InstallShield Error code 1722 appears when Windows Installer fails to install a package on your Windows 10 device. When you click OK on the error prompt, the installation process gets rolled back and then the installation fails. You may encounter this error with any software or driver installation. In this post, we will identify the potential causes, as well as offer the most suitable solutions.
Depending on the software you’re trying to install, when you encounter this issue, you’ll receive an error message similar to the following;
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
In addition to the error message in focus, you may encounter the following during software installation as well;
MSI Error 1722: ‘There is a problem with the Windows Installer Package’ during installation/uninstallation.
Error 1722: There is a problem with this Window Installer package. A program run as part of this package did not finish as expected.
Error 1722 – The Windows Installer Service could not be accessed.
Error 1722 – Windows Installer Service couldn’t be started.
Error 1722 – Could not start the Windows Installer service on Local Com Error 5: Access is denied.
Below are the known potential culprits of this error:
- Missing dependent System Files like dll files, ocx files, sys files, etc.
- Invalid Registry Entries that are conflicting with Installer.
- Antivirus removes malicious files recently but left damages as well.
- Installer Service is stopped.
- Incomplete installation.
The error may also occur if some MSI packages are not properly removed from the Programs & Features applet in Windows 10. The remnants of the corrupted installation can sometimes prevent the installation and uninstallation of the software.
InstallShield Error code 1722 while installing MSI program
If you’re faced with this issue, you can try our recommended solutions below in no particular order and see if that helps to resolve the issue.
- Run the Program Install and Uninstall Troubleshooter
- Uninstall the software using a third-party software uninstaller
- Ensure Windows Installer service is enabled
- Unregister and re-register Windows Installer Service
- Perform a Clean Boot and install software
- Repair Windows Registry
Let’s take a look at the description of the process involved concerning each of the listed solutions.
1] Run the Program Install and Uninstall Troubleshooter
This solution requires you to run the Program Install and Uninstall Troubleshooter from Microsoft and see if the InstallShield Error code 1722 while installing MSI program issue is resolved. The Program Install and Uninstall troubleshooter helps you automatically repair issues when you’re blocked from installing or removing programs. It also fixes corrupted registry keys.
2] Uninstall the software using third-party software uninstaller
The Windows 10 Programs and Features applet sometimes can be inefficient in removing software from your device – in some cases even though the software has been successfully uninstalled, there are still residual files, dependencies that are leftover on your machine and these can cause conflicts. In cases like this, it’s better to use a third-party software uninstaller as they do a thorough job of removing software from a Windows 10 computer.
After you uninstall the program, download a fresh installer setup in a different folder location, then close all programs and run the setup file.
3] Ensure Windows Installer service is enabled
These software are dependent on the Windows Installer Service. So, if you’re having an issue installing any software, it’s likely that the MSI service is not enabled. In this case, ensure that the Windows Installer Service is enabled.
4] Unregister and re-register Windows Installer Service
Do the following:
- Press Windows key + R to invoke the Run dialog.
- In the Run dialog box, type
cmd
and then press CTRL + SHIFT + ENTER to open Command Prompt in admin mode. - In the command prompt window, type the command below and hit Enter to temporarily unregister the Windows Installer service:
msiexec /unreg
- Once the command is processed successfully and you get the success message, input the following command and hit Enter to register the Windows Installer once again:
msiexec /regserver
After the second command is processed successfully, restart your computer once again, and try installing the software again. If the install/uninstall error persists, try the next solution.
5] Perform a Clean Boot and install software
Performing a Clean Boot can remove any conflicts that occur during your software installation – this means starting your Windows 10 computer with minimum required drivers and programs.
6] Repair Windows Registry
Invalid/corrupted registry entries from a recent software change i.e install or uninstall that is related to Windows installer, can also trigger this error. In this case, you can repair the registry, then try the software installation again.
Related posts: