Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CopyFiles not working in INF files

Tags:

windows

inf

I've created this xxx.inf file and placed a Sample.exe alongside the same directory.

[Version] 
Signature=$CHICAGO$ 

[DestinationDirs] 
SampleCopy = c:\\Sample

[DefaultInstall] 
CopyFiles = SampleCopy 

[SampleCopy] 
sample.exe 

I tried to install the inf file, the desktop refreshes but I don't see the creation of c:\sample folder nor the files that should be copied there

Is there anything wrong?

like image 935
daisy Avatar asked Nov 19 '25 06:11

daisy


1 Answers

Destination directories need to be given in format "dirid,subdir", where dirid is a number.

In your case you could use one of the two lines below.

SampleCopy = 24,\Sample
SampleCopy = -1,C:\Sample
like image 143
Werner Henze Avatar answered Nov 21 '25 23:11

Werner Henze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!