WIX: Generate conditions?

I created the installer with WIX and packaged it using the .NET 4.0 platform using a task GenerateBootstrapper. Now .NET 4.0 cannot be installed on XP SP2, but there seems to be no preliminary check for this, so its installer does not work halfway.

I want to add my own check to make sure that the OS on which the entire package is installed is supported by the .NET 4.0 platform. Is there any way to enable OS / Service Pack check in bootloader when using GenerateBootstrapper? If not, how else can I do this?

+3
source share
1 answer

bootstrapper, bootstrapper Windows.

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\
    Packages\DotNetFX40\Product.xml

64- Windows

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\
    Packages\DotNetFX40\Product.xml

32- Windows. Pack.xml ​​, .

<!--  Block install on less than Windows XP SP2 --> 
<FailIf Property="VersionNT" Compare="VersionLessThan" 
        Value="5.1.2" String="InvalidPlatformWinNT" /> 

, , VersionNT - , , , "5.1.3" .

+1

Source: https://habr.com/ru/post/1759024/


All Articles