How can I detect if OS is Windows 7 Embedded from an Install Condition?
I have an installation package that I want to only install开发者_运维百科 if it is currently being installed on an embedded version of Windows 7. I was hoping to check the WindowsBuild property in my Install Condition, but it doesn't appear that Embedded OS's are called out.
Does anyone have any other ideas?
Windows Installer doesn't have support for this. So you will need a custom action:
- use a win32 DLL or VBScript custom action to detect if the installer is running on an embedded version
- based on the result set an installer property, for example IS_EMBEDDED
- use this property as a custom launch condition
精彩评论