Need advice on getting an INF file to pass HCT

R

Robert Stankey

All,

I've created an INF file where I've defined a [DefaultUninstall]
section as follows:

; ===================================================================================
; Uninstall Section
; ===================================================================================
[DefaultUninstall]
DelReg = MyDriverUninstallDriverDelReg
DelFiles = MyDriver.DelFiles

[DefaultUninstall.Services]
DelService = mydriver

[MyDriverUninstallDriverDelReg]
HKLM, System\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318},
UpperFilters, %REG_MULTI_SZ_DELETE%, mydriver

[MyDriver.DelFiles]
mydriver.sys,,,

When my driver is removed my installation/removal program calls
SetupInstallFromInfSection(), specifying the [DefaultUninstall]
section, and everything works beautifully on both W2K and WinNet --
except HCT's infChecker doesn't like it because the [DefaultUninstall]
section is not referenced anywhere (argh!!!).

So, does anyone have advice on whether I can create some kind of dummy
reference in a section that won't get called by the installation
process yet allow this to pass.

Regards,
Bob
 
C

cd

It must pass the ChkINF of the latest DDK which I believe report those as
warnings not errors which is not a problem to WHQL.
 
R

Robert Stankey

Thanks Karl!

I saw this Errata on the website but wanted to double-check. I
recently got bit on a different submission because I assumed one of
the errata's applied to that particular problem.

Can I assume if my INF file passes the latest HCT or DDK INF checker
that a submission will go through even if a previous INF checker
version failed? In other words, if I use HCT 9.5.0.2 to check an INF
file for W2K which fails, then run the INF checker from 11.2 for
WinNET which passes, that my W2K submission will go through?

Regards,
Bob

Karl Foose said:
Hello Robert,

Please READ the SOLUTION in Errta 1088 to understand how to resolve this
issue. The solution contains a workaround that should solve your problem.

http://www.microsoft.com/whdc/hwtest/search/details.aspx?Type=err&ID=1088

Best Regards,
Karl Foose



Robert Stankey said:
All,

I've created an INF file where I've defined a [DefaultUninstall]
section as follows:

; ============================================================================
=======
; Uninstall Section
; ============================================================================
=======
[DefaultUninstall]
DelReg = MyDriverUninstallDriverDelReg
DelFiles = MyDriver.DelFiles

[DefaultUninstall.Services]
DelService = mydriver

[MyDriverUninstallDriverDelReg]
HKLM, System\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318
},
UpperFilters, %REG_MULTI_SZ_DELETE%, mydriver

[MyDriver.DelFiles]
mydriver.sys,,,

When my driver is removed my installation/removal program calls
SetupInstallFromInfSection(), specifying the [DefaultUninstall]
section, and everything works beautifully on both W2K and WinNet --
except HCT's infChecker doesn't like it because the [DefaultUninstall]
section is not referenced anywhere (argh!!!).

So, does anyone have advice on whether I can create some kind of dummy
reference in a section that won't get called by the installation
process yet allow this to pass.

Regards,
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top