kirannhegde
2015-01-12 06:38:19 UTC
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.
-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.