Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Putting Driver in \system32\drivers\

2 replies to this topic


  • Members
  • 2 posts

Posted 18 August 2005 - 21:44

I'm trying to move a driver into the WINDIR ^ "system32\\drivers" directory.

I've tried XCopyFiles, but it didn't seem to work. I didn't get any error messages so I don't know what was wrong.

So then I tried ComponentSetTarget, but I get an error:

An error occured during the move data process: -145
Component: Drivers
File Group: Drivers

I believe I am following the correct procedure:


function MoveFileData()
 drvPath = WINDIR ^ "system32\\drivers";
 ComponentSetTarget(MEDIA, "<drvPath>",drvPath);
 nResult = ComponentMoveData( MEDIA, nDisk, 0 );

and in the Components tab, I set the destination for the "Drivers" component to <drvPath>

any ideas?


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 19 August 2005 - 00:53

First off, where were you trying to manually copy the files from and are there actual files in that Drivers file group?

Regardless though, error -145 means "Target path for the component cannot be found." indicating a problem with ComponentSetTarget call. Unfortunately, it always returns 0 though and I've never used it before.

Now, if I were you, then I would just set the Component directly to "<WINDIR>\<WINSYSDIR>\drivers" and forget the whole <drvPath> thing.

user posted image


  • Members
  • 2 posts

Posted 19 August 2005 - 04:00

I was trying to copy the driver from the SRCDIR.

But, regardless, your recommended solution worked; thank you. I wasn't aware of the <WINSYSDIR> variable.

This is also a lot easier than using ComponentSetTarget()

muchos gracias Taco Bell


Edited by mgcorr, 19 August 2005 - 04:01.