如何从Installshield中的基本MSI项目修复.Net Framework?

时间:2023-01-16 22:38:47

I am working on basic MSI project in installshield for one WPF application.

我正在为一个WPF应用程序在installshield中开发基本的MSI项目。

I have added pre-requisite for .Net Framework, but this pre-requisite installs .Net framework according to registry value of .Net.

我已经添加了.Net Framework的先决条件,但是这个先决条件是根据.Net的注册表值安装.Net框架。

But my problem is, if .Net Framework is corrupted on user's machine, then how do i detect if it is corrupted or not and how do i repair it while installation.

但我的问题是,如果.Net Framework在用户的机器上损坏,那么我如何检测它是否已损坏,以及如何在安装时修复它。

Please suggest me solution for this asap. Thanks in advance.

请尽快给我建议解决方案。提前致谢。

1 个解决方案

#1


1  

Windows Installer has a mutex that enforces one installation per machine. So even if you had code to detect a broken framework, you wouldn't be able to start the repair.

Windows Installer具有一个互斥锁,可以为每台计算机强制执行一次安装。因此,即使您有代码来检测破坏的框架,您也无法启动修复。

What's the origin of this requirement anyways? IMO it shouldn't be your problem if the user has a broken framework. Point them to the verification tool and let them figure it out.

无论如何,这个要求的起源是什么?如果用户有一个破碎的框架,它应该不是你的问题。将它们指向验证工具,让他们弄明白。

#1


1  

Windows Installer has a mutex that enforces one installation per machine. So even if you had code to detect a broken framework, you wouldn't be able to start the repair.

Windows Installer具有一个互斥锁,可以为每台计算机强制执行一次安装。因此,即使您有代码来检测破坏的框架,您也无法启动修复。

What's the origin of this requirement anyways? IMO it shouldn't be your problem if the user has a broken framework. Point them to the verification tool and let them figure it out.

无论如何,这个要求的起源是什么?如果用户有一个破碎的框架,它应该不是你的问题。将它们指向验证工具,让他们弄明白。