Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to disable file copy dialog while installation drivers? (more details)

0 views
Skip to first unread message

Konstantin Voronkov

unread,
May 8, 2009, 4:11:21 AM5/8/09
to
Hello, All!

I have a question if it is possible to disable file copy dialog while driver
installation?
In some cases (e.g. on slow machines) end-user may have an ability to press
cancel button which is really unwanted.

I want to provide more details, because my previous question may have not
enough.
It would be great to listen that such options is not available at all that
will also help us greatly.
Also there if there is a possiblitity for some workaround (e.g. remove
cancell button from dialog, that can help greatly).

Actaullay this is minifilter driver which is installed e.g. on Window XP sp2
32-bit.
Here is a myDriver.inf file content I'm using for driver installation:

================ begin
;;;
;;;
;;;
;;;
;;;
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
ClassGuid = {b1212323-412e-4312-123-123412341234}
Provider = %MyCompany%
DriverVer = 01/24/2009,8.2.0.50 ;mm/dd/yy
CatalogFile = myDriver.cat
DriverPackageType=FileSystemFilter

[Manufacturer]
%MCompName%=myDriverModelSection,ntamd64

[myDriverModelSection]
%myDriverName%=DefaultInstall,myDriver

[myDriverModelSection.ntamd64]
%myDriverName%=DefaultInstall,myDriver

[DestinationDirs]
DefaultDestDir = 12
myDriver.DriverFiles = 12 ;%windir%\system32\drivers

[SourceDisksNames]
1 = %Disk1%

[SourceDisksFiles]
myDriver.sys = 1

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %myDriverServiceDesc%
CopyFiles = myDriver.DriverFiles

[DefaultInstall.ntamd64]
OptionDesc = %myDriverServiceDesc%
CopyFiles = myDriver.DriverFiles

[DefaultInstall.Services]
AddService = %myDriverServiceName%,,myDriver.Service

[DefaultInstall.ntamd64.Services]
AddService = %myDriverServiceName%,,myDriver.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = myDriver.DriverFiles
DelReg = myDriver.DelRegistry

[DefaultUninstall.ntamd64]
DelFiles = myDriver.DriverFiles
DelReg = myDriver.DelRegistry

[DefaultUninstall.Services]
DelService = myDriver

[DefaultUninstall.ntamd64.Services]
DelService = myDriver

;
; Services Section
;

[myDriver.Service]
DisplayName = %myDriverDisplayName%
Description = %myDriverServiceDesc%
ServiceBinary = %12%\myDriver.sys
;%windir%\system32\drivers\myDriver.sys
Dependencies = %FltmgrServiceName% ;FltMgr
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 1 ;SERVICE_SYSTEM_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = myDriver.AddRegistry

;
; Registry Modifications
;

[myDriver.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%

[myDriver.DelRegistry]
;HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%
;HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%
;HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%

;
; Copy Files
;

[myDriver.DriverFiles]
myDriver.sys

;;
;; String Section
;;

[Strings]
myDriverDisplayName = "MyCompany Driver"
MyCompany = "MyCompany"
myDriverServiceDesc = "MyCompany Driver"
myDriverServiceName = "myDriver"
myDriverDebugLevel = "DebugLevel"
FltmgrServiceName = "FltMgr"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"
Disk1 = "myDriver Source"
MCompName = "MComp"
myDriverName = "myDriver"

;Instances specific information.
DefaultInstance = "myDriver"
Instance1.Name = "myDriver"
Instance1.Altitude = "320400"
Instance1.Flags = 0x0
================ end

Best Regards,
Voronkov Konstantin

Pavel A.

unread,
May 8, 2009, 4:30:28 PM5/8/09
to
Use flag 0x00000002 (COPYFLG_NOSKIP) :

[myDriver.DriverFiles]
myDriver.sys,,,2

See more details on this in WDK docum, topic name "INF copyfiles directive"

Regards,
-- PA

"Konstantin Voronkov" <Voronkov@noMail> wrote in message
news:283E9176-D38A-4BA4...@microsoft.com...

Tim Roberts

unread,
May 8, 2009, 11:39:11 PM5/8/09
to
"Konstantin Voronkov" <Voronkov@noMail> wrote:
>
>I have a question if it is possible to disable file copy dialog while driver
>installation?
>In some cases (e.g. on slow machines) end-user may have an ability to press
>cancel button which is really unwanted.

YOU might not want it, but if I have a slow machine **I** certainly want
the ability to cancel a slow operation.

Remember, YOU don't own my computer. I bought your product, and if I want
to cancel part of your product, I should have every right to do that.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Konstantin Voronkov

unread,
May 12, 2009, 7:41:53 AM5/12/09
to
Tim, thanks a lot for you comment.

I believe my applicaiton will be installed by system administrator, not by
user.
This is system administrator in the company who applies the policy to the
workstations which belongs to the company, not to users.

Can be there any way for system administrator to be sure workstation is into
consistent state and all needed application components are installed and not
skipped by end-users?

Tim, can you advise anything else to help me, please?

Best Regards,
Konstantin

"Tim Roberts" <ti...@probo.com> wrote in message
news:llu905h8lpfeho7q1...@4ax.com...

Konstantin Voronkov

unread,
May 12, 2009, 7:43:18 AM5/12/09
to
Pavel, thanks a lot!
This is exact what I need.

Best Regards,
Konstantin

"Pavel A." <pav...@12fastmail34.fm> wrote in message
news:%231AX8wB...@TK2MSFTNGP05.phx.gbl...

Tim Roberts

unread,
May 13, 2009, 12:57:39 AM5/13/09
to
"Konstantin Voronkov" <Voronkov@noMail> wrote:
>
>I believe my applicaiton will be installed by system administrator, not by
>user.
> This is system administrator in the company who applies the policy to the
>workstations which belongs to the company, not to users.
>
>Can be there any way for system administrator to be sure workstation is into
>consistent state and all needed application components are installed and not
>skipped by end-users?

I'm confused. If a system administrator is involved, and is interested in
leaving the workstation in a consistent state, why would he abort the
installation? As long as the driver is pre-installed properly, why would
the user abort the driver load? He's just going to hurt himself.

You can't make things idiot proof, because the idiots keep getting more and
more capable.

Konstantin Voronkov

unread,
May 13, 2009, 5:46:42 AM5/13/09
to
Tim,

Why are you talking about "pre-installation" only?
There are tasks to install, upgrade drivers. Install application
unatendenly etc.
In our understanding system administrator is not the person who is only
"pre-installs" applicaitons.

We value our customers very much and never (under no condition) consider
them to be idiots.
We understand this is normal humar reaction of non-technical (e.g.
accountant, assurance specialist, or whoever) to be affraid of poping dialog
and pressing cancel.


Thanks,
Konstantin

"Tim Roberts" <ti...@probo.com> wrote in message

news:khkk0551i94646dm8...@4ax.com...

Pavel A.

unread,
May 13, 2009, 6:53:01 AM5/13/09
to
Konstantin Voronkov wrote:
..........

> We value our customers very much and never (under no condition) consider
> them to be idiots.
> We understand this is normal humar reaction of non-technical (e.g.
> accountant, assurance specialist, or whoever) to be affraid of poping
> dialog and pressing cancel.

If administrators who are afraid of popup dialogs
and hit cancel, can't be considered idiots... let's name
them cancelots ;)

-- pa

Maxim S. Shatskih

unread,
May 13, 2009, 4:17:50 PM5/13/09
to
> We understand this is normal humar reaction of non-technical (e.g.
> accountant, assurance specialist, or whoever) to be affraid of poping dialog
> and pressing cancel.

Not so, I think it is proven that unexperienced people say OK to all dialogs, unless they are red in color and contain the words like "Security Alert" or such.

But the very idea to make the driver installation uncancellable seems very good for me, I would prefer any INF execution to be 1 large atomic transaction without the way to cancel it. Hitting Cancel for such operations can easily render the OS unstable.

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

Konstantin Voronkov

unread,
May 15, 2009, 10:26:24 AM5/15/09
to
Hello, Maxim!

>Not so, I think it is proven that unexperienced people say OK to all
>dialogs,
> unless they are red in color and contain the words like "Security Alert"
> or such.

Do people press OK if there is only one button in the dialog, and that is
Cancel button?
I'm affraid that researches of human behaviour have not been performed ;-)


Actully I agree with you and it is the exact our fear to leave a system into
unpredictable state.
Unfortunately we found a restriction with COPYFLG_NOSKIP propose by Pavel.
It requres driver signed by Microsoft and ignored if driver is not signed.
MSDN says:
0x00000001 (COPYFLG_WARN_IF_SKIP)

Send a warning if the user elects to not copy a file. This flag and the next
are mutually exclusive, and both are irrelevant to INF files that are
digitally signed.

0x00000002 (COPYFLG_NOSKIP)

Do not allow the user to skip copying a file. This flag is implied if the
driver package is signed.

I guess we will sign driver because we have to.

Thanks a lot,
Konstantin


"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message
news:uklmlfA1...@TK2MSFTNGP03.phx.gbl...

Konstantin Voronkov

unread,
Jul 28, 2009, 11:00:02 AM7/28/09
to
Hello, All!

As we see we cannot hide this irritating dialog with only single Cancel
button and completely no text inside it.

The driver requires signing which cost actually much money ($250 per each OS
for each version of drivers and each driver).
This will result in more than $2,000 for each release, because we use 3
drivers and support a lot of Windows OSs.

IMHO, this requirement does not look reasonable from Microsoft Team.

Is there any other solution or workaround to hide the dialog or make it
non-pressable?


Do you know a way to contact Microsoft Team to get help on this issue?


Best Regards,
Konstantin


"Pavel A." <pav...@12fastmail34.fm> wrote in message
news:%231AX8wB...@TK2MSFTNGP05.phx.gbl...

Maxim S. Shatskih

unread,
Jul 28, 2009, 12:21:38 PM7/28/09
to
> As we see we cannot hide this irritating dialog with only single Cancel
> button and completely no text inside it.

How is File Copy dialog related to WHQL signing?

Konstantin Voronkov

unread,
Jul 28, 2009, 12:43:44 PM7/28/09
to
Hello, Maxim!

According to MSDN http://msdn.microsoft.com/en-us/library/ms794560.aspx

0x00000002 (COPYFLG_NOSKIP)
Do not allow the user to skip copying a file. This flag is implied if the
driver package is signed.

The driver should be signed.

We assume it is a driver signature we get during WHQL.


Thanks a lot for fast reply,

Konstantin

"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message

news:%23jat895...@TK2MSFTNGP04.phx.gbl...

Konstantin Voronkov

unread,
Jul 28, 2009, 12:49:23 PM7/28/09
to
Maxim,

actually we also supposed that driver signature is obligatory, because just
adding the COPYFLG_NOSKIP (myDriver.sys,,,2) into the inf-file does not
suppresses the dialog.

Driver installation can be cancelled even if COPYFLG_NOSKIP is used.

Can it be that the options just does not work?

Best Regards,
Konstantin

"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message
news:%23jat895...@TK2MSFTNGP04.phx.gbl...

Volodymyr M. Shcherbyna

unread,
Jul 28, 2009, 5:39:44 PM7/28/09
to
Le Tue, 28 Jul 2009 19:00:02 +0400, Konstantin Voronkov a écrit :

[...]

> The driver requires signing which cost actually much money ($250 per
> each OS for each version of drivers and each driver).
> This will result in more than $2,000 for each release, because we use 3
> drivers and support a lot of Windows OSs.

Yes, this topic appears from time to time here and the opinions are
discrepant. From one side it's hard to spent money and time on this, and
whql does not garantee the drivers are bugs free.

From another side, it actually allows to find out bugs like pnp handling,
driver verifier asserts, etc. So the idea is to make driver as stable as
possible, pass dtm tests and get whql and release it. If it is stable,
there will be no need to update untill next major release which might be
in 6-12 months. I suppose 2k USD is nothing for average company during 1
year?

--
Volodymyr, www.shcherbyna.com

Konstantin Voronkov

unread,
Jul 29, 2009, 4:55:41 AM7/29/09
to
Hello, Volodymyr!

I agree with you totally.
I just have one question if you can confirm that WHQL driver signing will
really help us to suppress the dialog?


As Maxim and Pavel mentioned MSDN says that COPYFLG_NOSKIP flag can work
without signature,
but actually it does not.

From MSDN: "COPYFLG_NOSKIP 0x00000002 Do not allow a user to skip copying a
file"


Thanks for your help,

Konstantin


"Volodymyr M. Shcherbyna" <v_sch...@online.mvps.org> wrote in message
news:u8iwsv8D...@TK2MSFTNGP03.phx.gbl...

Volodymyr Shcherbyna

unread,
Aug 8, 2009, 5:28:25 AM8/8/09
to
Sorry for long delay. You can ask this question at WHQL support (you can
find it at official WHQL page), they usually are very active and answer
these questions accuratly.

--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Konstantin Voronkov" <Voronkov@noMail> a écrit dans le message de
news:OlYEbpCE...@TK2MSFTNGP04.phx.gbl...

0 new messages