Here is a description of the problem:
-Environment is  Win 7 SP1 Enterprise x64
-We are  executing a MSI package which  contains numerous INF files.  These
INF 
files are associated with drivers. To install the drivers , we make use of
the 
API: InstallHInfSection.

The exact usage of  InstallHInfSection is as follows:
InstallHinfSection( NULL, NULL, INFFile, 0 );

However, what is happening is that, each and every time this API is invoked
on a 
driver INF file, i am presented with a message box with the text:
Installation 
Failed.

I inspected the setupapi.app log file and did not find any errors.
Everything 
seems to be fine.
The  driver  .sys file is  successfully copied to 
%windows%\system32\drivers.

To confirm is  InstallHInfSection   works as expected, i  executed the
following 
command  from outside of the .msi package:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128  <path to
driver 
inf>
Strangely, the above command works without any error messages. 

Do you have any pointers on what could be wrong?  I am under tremendous
pressure 
to provide an answer.

Any assistance would be very much appreciated.

Regards,
Kiran Hegde



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Strange-behavior-of-SetupAPI-function-InstallHInfSection-tp7598825.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
vanity: www.gigenet.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to