Install an MSI on Windows 10 and NOT in Windows 8.3 (using wix for building msi) - Advanced Installer Community
sari s nair
Posts: 5
Joined: Mon Aug 28, 2017 7:32 am

Install an MSI on Windows 10 and NOT in Windows 8.3 (using wix for building msi)

I am having "a" and "b" drivers. I want to install "a" on Windows 8.1 and "b" in Windows 10.

So "a" driver should not install on win10 and "b" on win8.1 . For this i have tried many conditions and nothing worked for me.

win10 -(VersionNT = 1000 AND MsiNTProductType = 1))

win8.1 -(VersionNT = 603 AND MsiNTProductType = 1))

I have this in advanced installer site,
"By default, Windows 10 sets the VersionNT property to 603. But to differentiate from Windows 8.1 all the MSI packages built with Advanced Installer reset its value to 1000."

I am using wix for building MSI, So it seems for both win10 and win8.1 will have the same VersionNT-603.

Is there any other option to differentiate these two O.S?

Thanks In Advance
Sari
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Install an MSI on Windows 10 and NOT in Windows 8.3 (using wix for building msi)

Hello Sari,

As you could have seen, the default behavior for the VersionNT property on Windows 8.1 and 10 is to have the same value and we are doing some custom modifications behind to make what you want achievable.

To be fully honest with you, all you want to do is achievable with 1 click by using Advanced Installer.

Please note that we also have a freeware version of our product, which is completely free:

Top Freeware features

All you need to do is to create a "Simple" project, add your files in the "Files and Folders" page and then go to "Launch Conditions" page from where you can select what versions of Windows you want your package to support.
LC.png
LC.png (164.45 KiB) Viewed 3755 times

All you need to do is just uncheck the versions that you do not want your package to support.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sari s nair
Posts: 5
Joined: Mon Aug 28, 2017 7:32 am

Re: Install an MSI on Windows 10 and NOT in Windows 8.3 (using wix for building msi)

Hi Catalin,

Thanks for your reply, But now i can't change to advanced installer because of the project dependencies.

something like the below condition i am expecting. return "false" value will install the msi.

So i want to know is there any way to make the same condition "True" for win10 and "False" for win8.1

if (driver="a")
{
<Condition Level="0"><![CDATA[(PRINT~<>"Yes" AND NOT Installed) OR (VersionNT > 603 OR VersionNT < 601)]]></Condition>
}
elif(driver="b")
{
<Condition Level="0"><![CDATA[(PRINT~<>"Yes" AND NOT Installed) OR (VersionNT<1000)]]></Condition>
}

Thanks
Sari
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Install an MSI on Windows 10 and NOT in Windows 8.3 (using wix for building msi)

Hello Sari,

From what I know, by default, Windows 10 sets the VersionNT property to 603. But to differentiate from Windows 8.1 all the MSI packages built with Advanced Installer reset its value to 1000.

I guess you can try to do this in your project, but honestly I am not quite sure how you can achieve this, as I am not familiar with WiX.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”