Table of Contents
Fix 1 – Restart the Windows Installer service and install visual files
Step 2
Fix 2 – Try installing it in compatibility mode
修复 3 – 暂停杀毒软件
修复 4 – 运行特定的疑难解答
修复 5 – 取消注册并注册 MSI
修复 6 – 降低 UAC 设置
Home Common Problem How to Fix Java Error 1721 in Windows 11/10

How to Fix Java Error 1721 in Windows 11/10

May 10, 2023 pm 08:10 PM
Technology News windows system

While installing Java on some Windows machines, some users complained about the error message "Error 1721: There is a problem with this Windows Installer package. " on their respective forums. This issue occurs while installing Java and can occur anytime while installing/running Java based applications. After further research, we discovered that there are multiple reasons behind this issue. Just follow these solutions and you will be able to install Java on your computer.

Solution ——

1. You can restart the computer. After restarting the system, run the installer. Test if this works.

2. Run the installer as administrator. Just, go to the location of the installer file, right-click on it, and click "Run as administrator" to run it as administrator.

如何修复 Windows 11 / 10 中的 Java 错误 1721

Complete the installation process.

Fix 1 – Restart the Windows Installer service and install visual files

Step 1

The Windows Installer service is an important part of the installation process.

1. First, press the Win key and R key at the same time.

2. Then, type this command and click OK.

服务.msc
Copy after login

如何修复 Windows 11 / 10 中的 Java 错误 1721

#3. The Service Utility page will pop up on your screen. Now, browse the complete list of services and look for the " Windows Installer " service.

4. Then, right-click on it and click "Properties".

如何修复 Windows 11 / 10 中的 Java 错误 1721

5. Enter the Windows Installer properties page and view the "Service Status:" condition.

6. If "Running" is displayed, please click "Stop" to terminate the service immediately.

如何修复 Windows 11 / 10 中的 Java 错误 1721

Just wait for Windows to stop the service.

7. Then, click "Start" to start the service.

If you notice that "Service Status:" displays "Stopped", you can click "Start" to start the service.

如何修复 Windows 11 / 10 中的 Java 错误 1721

Minimize the service window. Then, launch the installer and complete the installation process.

Step 2

Download and install the Visual C Redistributable service pack on your computer.

1. Go to Microsoft Visual C 2005 Service Pack 1 Redistributable package.

2. Once you are there, click "Download".

如何修复 Windows 11 / 10 中的 Java 错误 1721

3. Now, Check the " vcredist_x64.exe" package file.

4. Then, click "Next".

如何修复 Windows 11 / 10 中的 Java 错误 1721

After downloading the package, minimize or close the browser.

5. Go to the download location.

6. Then, double-click the installation package to start the installation.

如何修复 Windows 11 / 10 中的 Java 错误 1721

Just follow the on-screen instructions to complete the installation. After the installation is complete, restart your computer.

After restarting the system, follow the steps below to install the Visual C 2008 Redistributable package.

1. Download the Visual C 2008 package.

2. Now, go to the location where you downloaded the file. Then, double-click" subinacl".

如何修复 Windows 11 / 10 中的 Java 错误 1721

#3. Follow the steps that appear and select the drive in which you want to install the package files.

4. Then, enter the last step and click "Install Now" to install the package.

如何修复 Windows 11 / 10 中的 Java 错误 1721

After installation, restart the computer just like before.

After restarting the system, try running the installer again.

You will not encounter "Error code 1721" on your computer.

Fix 2 – Try installing it in compatibility mode

If you are running an older version of the installer, you can run it in compatibility mode for older versions of Windows.

1. Open File Explorer and go to the location of the installer.

2.到达那里后,右键点击安装程序并单击“属性”。

如何修复 Windows 11 / 10 中的 Java 错误 1721

3. 在安装程序属性页面中,导航到“兼容性”部分。

4.接下来,勾选 “兼容模式运行此程序: ”框并从下拉列表中将其设置为“ Windows Vista ”。

如何修复 Windows 11 / 10 中的 Java 错误 1721

5. 之后,点击“应用”和“确定”选项保存更改。

如何修复 Windows 11 / 10 中的 Java 错误 1721

现在,一旦您应用了新的兼容性更改,您就可以运行安装程序。

测试这是否有效,否则,运行安装和卸载故障排除程序的程序。

修复 3 – 暂停杀毒软件

Java 安装问题中的防病毒程序可能会导致此问题。

1. 关闭错误消息,如果您还没有这样做的话。

2. 现在,查看任务栏,您可以在那里看到一个箭头图标。只是,点击它。

3. 单击图标后,您可以在系统托盘上看到最小化的防病毒软件。

4.接下来,右键单击防病毒软件并点击“暂停保护”以短暂暂停防病毒活动。

如何修复 Windows 11 / 10 中的 Java 错误 1721

暂停防病毒程序后,运行安装程序并完成 Java 应用程序的安装。

检查这是否有效。

修复 4 – 运行特定的疑难解答

有一个程序安装和卸载疑难解答程序可以帮助您识别和解决问题。

1. 首先,访问MicrosoftProgram_Install_and_Uninstall.meta。

2.接下来,点击“下载”将工具下载到您的计算机上。

如何修复 Windows 11 / 10 中的 Java 错误 1721

3. 下载工具后,关闭浏览器。

4. 然后,双击“ MicrosoftProgram_Install_and_Uninstall.meta ”安装程序在您的计算机上运行疑难解答。

如何修复 Windows 11 / 10 中的 Java 错误 1721

4. 当程序安装程序和卸载程序页面打开时,点击“下一步”进入下一页。

如何修复 Windows 11 / 10 中的 Java 错误 1721

5. 一旦你被问到,“你在安装或卸载程序时遇到问题吗?”,选择“安装”选项进行故障排除。

如何修复 Windows 11 / 10 中的 Java 错误 1721

让 Windows 检查注册表是否存在与补丁相关的问题。

6. 现在,您可以在那里看到应用程序列表。

7.只需选择您遇到此问题的应用程序。

如果您在其中看不到该应用程序,请选择“未列出”并单击“下一步”。

如何修复 Windows 11 / 10 中的 Java 错误 1721

让 Windows 有一点时间来检测并针对该问题制定修复方案。

修复 5 – 取消注册并注册 MSI

您应该注销并重新注册 MSI 可执行文件。

1. 首先按下键盘上的Win 键并在搜索框中输入“ powershell ”。

2. 一旦你可以看到“ Windows Powershell ”已经出现在搜索结果中。只需右键单击它并点击“以管理员身份运行”以管理员身份打开终端。

如何修复 Windows 11 / 10 中的 Java 错误 1721

3. 来到 PowerShell 主屏幕,一一编写此代码,然后按 Enter

msiexec / unregmsiexec /regserver
Copy after login

如何修复 Windows 11 / 10 中的 Java 错误 1721

这样,您已注销并重新注册了 Windows Installer 服务。

现在,尝试启动安装程序并进行测试。

修复 6 – 降低 UAC 设置

尝试降低用户帐户控制并再次尝试安装 Java 应用程序。

1. Simply press the Windows key and search for "User Account Control".

2. Then, click "Change User Account Control Settings" to access the settings.

如何修复 Windows 11 / 10 中的 Java 错误 1721

#3. This will open the User Account Control settings pane.

4. Set the slider all the way to "Never notify".

5. Then, click "OK" to save the changes.

如何修复 Windows 11 / 10 中的 Java 错误 1721

That way, when you do this, the User Account Control interference is eliminated. After that, run the installer again.

The installation will not be interrupted by the "Error code 1721" message.

The above is the detailed content of How to Fix Java Error 1721 in Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What does Discord Do Not Disturb mean and how to use it? What does Discord Do Not Disturb mean and how to use it? Jun 03, 2023 pm 01:02 PM

If you have Discord Do Not Disturb enabled, you will not see any notifications on your app. This includes servers, group chats, and direct messages. Discord is a chat application that allows users to communicate through text, pictures, and video calls in games. It is designed to be a communication channel for gamers to chat and coordinate with each other in real time. DND settings allow you to disable all incoming messages you don't want to see. This is useful if you don't want to be disturbed by any messages while you are working. Additionally, you can also try the best Discord bots that can help you manage your guild while you are away. If you're wondering what Discord Do Not Disturb means and how to use it, this tutorial should help. D

How to disable driver signature enforcement in Windows 11 How to disable driver signature enforcement in Windows 11 May 20, 2023 pm 02:17 PM

Microsoft has built several security features into Windows to ensure your PC remains secure. One of them is driver signature enforcement in Windows 11. When this feature is enabled, it ensures that only drivers digitally signed by Microsoft can be installed on the system. This helps most of the users to a great extent as it protects them. But there is a downside to enabling driver signature enforcement. Suppose you find a driver that works for your device, but it is not signed by Microsoft, although it is completely safe. But you won't be able to install it. Therefore, you must know how to disable driver signing in Windows 11

Error code 22: How to fix graphics device driver Try updating graphics driver or clearing CMOS Error code 22: How to fix graphics device driver Try updating graphics driver or clearing CMOS May 19, 2023 pm 01:43 PM

What does graphics device error code 22 mean and what causes it? When you encounter error code 22, you will always see the error message This device is disabled. (Code 22). You can view more details about this graphics device driver error code 22 by going to the Device Status area in the device properties. We also discussed Error code 11 in Windows 43. You can also check out our guide on how to fix graphics device error code 31 on your PC. Device is actually disabled: The device in question may throw you this error code 22 and is actually disabled. There are driver issues: Incompatible or corrupted driver files can also cause multiple issues with the device program. Drivers are not the most

How to fix Windows 11 activation error 0xc004c060 How to fix Windows 11 activation error 0xc004c060 May 17, 2023 pm 08:47 PM

Why am I encountering Windows 11 activation error 0xc004c060? First make sure you are using genuine Windows and that the license key is valid. Also, check if it was obtained from an official source and if the key is suitable for the installed OS version. If there is an issue with any of these, you may encounter Windows 11 activation error 0xc004c060. So be sure to verify these and if you find everything is in order, move on to the next section. If you obtained the key through unreliable means or believe that the installed copy is a pirated version, you will need to purchase a valid key from Microsoft. In addition to this, misconfigured settings, missing

0x80010105: How to fix this Windows update error 0x80010105: How to fix this Windows update error May 17, 2023 pm 05:44 PM

Microsoft regularly releases Windows updates to improve functionality or increase the security of the operating system. You can ignore some of these updates, but it's important to always install security updates. While installing these updates, you may encounter error code; 0x80010105. An unstable connection usually causes most update errors, and once the connection is reestablished you're good to go. However, some require more technical troubleshooting, such as the 0x80010105 error, which is what we will see in this article. What causes WindowsUpdate error 0x80010105? This error may occur if your computer has not been updated in a while. Some users may have permanently disabled W for their reasons

How to disable display scaling for high DPI settings in Windows 11 or 10 How to disable display scaling for high DPI settings in Windows 11 or 10 May 22, 2023 pm 10:11 PM

The default display scaling feature on Windows 10 or later is a core component of the Windows operating system. But sometimes, this feature of certain apps can cause compatibility issues, unreadable text, blurry logos, and ultimately, app crashes. This can be a huge headache if you're dealing with 2160p or higher resolutions. There are many ways to disable the default display scaling feature on high DPI settings. We've selected the best ones and detailed step-by-step instructions for each process. How to Disable Display Scaling on High DPI Settings There is a way, all you have to do is disable high DPI scaling for a single application, and there is a way to do it for the entire Window

How to disable core parking on Windows 10 How to disable core parking on Windows 10 May 16, 2023 pm 01:07 PM

If you are a Windows user and want to disable the core parking functionality in your system, this article will guide you through the process. What is core parking? The core parking function is a power saving mechanism. It puts some of your processors into a sleep mode that doesn't perform any tasks and consumes very little or no power. This helps reduce energy consumption and therefore heat in the system. These cores are unparked when needed. Few users need to disable this feature, especially gamers. Disabling this feature will improve your system performance. Disable Windows Core Parking using Windows Registry Editor Step 1: Use Windows + R keys simultaneously to open the run prompt. Step 2: At the run prompt

5 Ways to Disable Delivery Optimization Service in Windows 5 Ways to Disable Delivery Optimization Service in Windows May 17, 2023 am 09:31 AM

There are many reasons why you might want to disable the Delivery Optimization service on your Windows computer. However, our readers complained about not knowing the correct steps to follow. This guide discusses how to disable the Delivery Optimization service in a few steps. To learn more about services, you may want to check out our How to open services.msc guide for more information. What does Delivery Optimization Service do? Delivery Optimization Service is an HTTP downloader with cloud hosting solution. It allows Windows devices to download Windows updates, upgrades, applications and other large package files from alternative sources. Additionally, it helps reduce bandwidth consumption by allowing multiple devices in a deployment to download these packages. In addition, Windo