cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not applicable

Detecting virtual machine in windows server 2012

I have Installshield MSI project. I want to create an installer which can install limited components if installer is running on virtual machine. To detect virtual machine installshiled provides inbuild methods described here http://helpnet.flexerasoftware.com/installshield17helplib/DetectingVirtualMachine.htm I used this method but it is wrongly identifies windows server 2012 physical machine as a virtual machine. Do anyone know what could be the problem.

I created a custom action item for SetAllUsers.dll and set function name as IsDetectVM. Scheduled to execute just after "IsSetAllUsers" action item in "Install Exec Sequence". Then in install script "OnFirstUIBefore" SYSINFO.bIsVirtualMachine comes true.
Thanks in advance.
Labels (1)
0 Kudos
(1) Reply
CHANDINATHREDDY
Level 7

HI,

Please fallow the instructions properly and the rerun type is an boolean either 0 or 1 you can set that the feature condition for the futures.

either go with install script or Custom action don't do both the things.
0 Kudos