- Revenera Community
- InstallShield Forum
- Re: How to get the status of Windows Virtualization enabled or not?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
How to get the status of Windows Virtualization enabled or not?
Hi, We have a requirement as part of pre-installation steps to check the status of virtualization enabled or not in windows machine where the installation is being made. Is there any built-in function to acheive this in installshield pro? Thanks in advance. Regards Saran
Please refer the following document to detect whether the installation is being run on a Virtual Machine.
I hope this might help your requirement.
Hi @javasaran ,
You can write your own custom action through an msi extension DLL to see whether the virtualization is enabled or not:
UINT _stdcall IsVirtualizationEnabled(MSIHANDLE hInstall)
::MsiSetProperty(hInstall, _T("VIRTENABLED"), "TRUE");
::MsiSetProperty(hInstall, _T("VIRTENABLED"), "FALSE");
This custom action can be sequenced during the starting of your installation to retrieve the virtualization status.
Again, you can use one more property to bind the string with your 'Text Area' control in Dialog. And the Property string can be changed from your custom action based on the virtualization value.
Help net link for the Text are control:
Here, you can set the Text attribute of Text Area control to a property; Text = [VIRTULIZATIONSUPORT]
VIRTULIZATIONSUPORT is a property, its value can be changed based on the detection of virtualization.