- Revenera Community
- :
- InstallShield
- :
- 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
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi javasaran
Please refer the following document to detect whether the installation is being run on a Virtual Machine.
https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/DetectingVirtualMachine.htm
I hope this might help your requirement.
Thanks,
Bikram
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @javasaran ,
You can write your own custom action through an msi extension DLL to see whether the virtualization is enabled or not:
Like below:
UINT _stdcall IsVirtualizationEnabled(MSIHANDLE hInstall)
{
if(IsProcessorFeaturePresent(PF_VIRT_FIRMWARE_ENABLED))
::MsiSetProperty(hInstall, _T("VIRTENABLED"), "TRUE");
else
::MsiSetProperty(hInstall, _T("VIRTENABLED"), "FALSE");
return 0;
}
This custom action can be sequenced during the starting of your installation to retrieve the virtualization status.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @javasaran,
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.