USMT INF Files


G

Guest

I'm trying to modify the default INF files for the USMT and it is working
wonderfully, except for one problem, I am adding a DELFILES command in the
Copy This State tag right before it copies the default file extensions, but
it is not excluding them, any ideas,, here is the INF file for you to see and
help out


[version]
Signature=$Windows NT$
DriverVer=07/01/2001,5.1.2535.0

[User Settings]
Desktop,, dir,%csidl_desktopdirectory%
Shared Desktop,, dir,%csidl_common_desktopdirectory%
Start Menu,, dir,%csidl_startmenu%
Shared Start Menu,, dir,%csidl_common_startmenu%
Favorites,, dir,%csidl_favorites%
Shared Favorites,, dir,%csidl_common_favorites%
My Pictures,, dir,%csidl_mypictures%
My Documents,, dir,%csidl_personal%
Shared Documents,, dir,%csidl_common_documents%
Quick Launch,, dir,%QuickLaunchDir%

[Desktop.Detect]
Directory,%csidl_desktopdirectory%,EXISTS

[Desktop.Instructions]
ForceDestFile = Desktop.ForceDestFile
CopyFilesFiltered = Desktop.CopyFilesFiltered

[Desktop.ForceDestFile]
%csidl_desktopdirectory%\desktop.ini

[Desktop.CopyFilesFiltered]
dir=%csidl_desktopdirectory%\*


[Shared Desktop.Detect
Directory,%csidl_common_desktopdirectory%,EXISTS,!SAMEOBJECTNAME(%csidl_desktopdirectory%)

[Shared Desktop.Instructions]
ForceDestFile = Shared Desktop.ForceDestFile
CopyFilesFiltered = Shared Desktop.CopyFilesFiltered

[Shared Desktop.ForceDestFile]
%csidl_common_desktopdirectory%\desktop.ini

[Shared Desktop.CopyFilesFiltered]
dir=%csidl_common_desktopdirectory%\*


[Start Menu.Detect]
Directory,%csidl_startmenu%,EXISTS

[Start Menu.Instructions]
ForceDestFile = Start Menu.ForceDestFile
CopyFilesFiltered = Start Menu.CopyFilesFiltered

[Start Menu.ForceDestFile]
%csidl_startmenu%\desktop.ini

[Start Menu.CopyFilesFiltered]
dir=%csidl_startmenu%\*


[Shared Start Menu.Detect]
Directory,%csidl_common_startmenu%,EXISTS,!SAMEOBJECTNAME(%csidl_startmenu%)

[Shared Start Menu.Instructions]
ForceDestFile = Shared Start Menu.ForceDestFile
CopyFilesFiltered = Shared Start Menu.CopyFilesFiltered

[Shared Start Menu.ForceDestFile]
%csidl_common_startmenu%\desktop.ini

[Shared Start Menu.CopyFilesFiltered]
dir=%csidl_common_startmenu%\*


[My Pictures.Detect]
Directory,%csidl_mypictures%,EXISTS

[My Pictures.Instructions]
ForceDestFile = My Pictures.ForceDestFile
CopyFilesFiltered = My Pictures.CopyFilesFiltered

[My Pictures.ForceDestFile]
%csidl_mypictures%\desktop.ini

[My Pictures.CopyFilesFiltered]
dir=%csidl_mypictures%\*


[My Documents.Detect]
Directory,%csidl_personal%,EXISTS

[My Documents.Instructions]
ForceDestFile = My Documents.ForceDestFile
CopyFilesFiltered = My Documents.CopyFilesFiltered

[My Documents.ForceDestFile]
%csidl_personal%\desktop.ini

[My Documents.CopyFilesFiltered]
dir=%csidl_personal%\*


[Shared Documents.Detect]
Directory,%csidl_common_documents%,EXISTS,!SAMEOBJECTNAME(%csidl_personal%)

[Shared Documents.Instructions]
ForceDestFile = Shared Documents.ForceDestFile
CopyFilesFiltered = Shared Documents.CopyFilesFiltered

[Shared Documents.ForceDestFile]
%csidl_common_documents%\desktop.ini

[Shared Documents.CopyFilesFiltered]
dir=%csidl_common_documents%\*


[Quick Launch.Detect]
Directory,%QuickLaunchDir%,EXISTS

[Quick Launch.Instructions]
ForceDestFile = Quick Launch.ForceDestFile
CopyFilesFiltered = Quick Launch.CopyFilesFiltered

[Quick Launch.ForceDestFile]
%QuickLaunchDir%\desktop.ini

[Quick Launch.CopyFilesFiltered]
dir=%QuickLaunchDir%\*


[Copy This State]
DelFiles=omit files
[omit files]
C:\program files\*
c:\windows\*
c:\drivers\*
h:\*
g:\*
f:\*
copyfiles=Default CopyFiles

[Default CopyFIles]
; Word Processor Documents
*.doc,
*.dot,
*.rtf,
*.txt,
*.mcw,
*.wps,
*.scd,
*.wri,
*.wpd,

; Spreadsheet Documents
*.xl?,
*.csv,
*.iqy,
*.dqy,
*.oqy,
*.rqy,
*.wk?,
*.wq1,
*.slk,
*.dif,

; Presentation Documents
*.ppt,
*.pps,
*.pot,
*.sh3,
*.ch3,
*.pre,
*.ppa,

[Strings]
QuickLaunchDir = "%csidl_appdata%\Microsoft\Internet Explorer\Quick Launch"
 
Ad

Advertisements

J

Johan Arwidmark

When the CopyFiles rules are more specific, the delfiles rules are
ignored..

You can also use sysfiles.inf which has a higher priority when
excluding files.


regards

Johan Arwidmark
Microsoft MVP - Setup/Deployment


I'm trying to modify the default INF files for the USMT and it is working
wonderfully, except for one problem, I am adding a DELFILES command in the
Copy This State tag right before it copies the default file extensions, but
it is not excluding them, any ideas,, here is the INF file for you to see and
help out


[version]
Signature=$Windows NT$
DriverVer=07/01/2001,5.1.2535.0

[User Settings]
Desktop,, dir,%csidl_desktopdirectory%
Shared Desktop,, dir,%csidl_common_desktopdirectory%
Start Menu,, dir,%csidl_startmenu%
Shared Start Menu,, dir,%csidl_common_startmenu%
Favorites,, dir,%csidl_favorites%
Shared Favorites,, dir,%csidl_common_favorites%
My Pictures,, dir,%csidl_mypictures%
My Documents,, dir,%csidl_personal%
Shared Documents,, dir,%csidl_common_documents%
Quick Launch,, dir,%QuickLaunchDir%

[Desktop.Detect]
Directory,%csidl_desktopdirectory%,EXISTS

[Desktop.Instructions]
ForceDestFile = Desktop.ForceDestFile
CopyFilesFiltered = Desktop.CopyFilesFiltered

[Desktop.ForceDestFile]
%csidl_desktopdirectory%\desktop.ini

[Desktop.CopyFilesFiltered]
dir=%csidl_desktopdirectory%\*


[Shared Desktop.Detect]
Directory,%csidl_common_desktopdirectory%,EXISTS,!SAMEOBJECTNAME(%csidl_desktopdirectory%)

[Shared Desktop.Instructions]
ForceDestFile = Shared Desktop.ForceDestFile
CopyFilesFiltered = Shared Desktop.CopyFilesFiltered

[Shared Desktop.ForceDestFile]
%csidl_common_desktopdirectory%\desktop.ini

[Shared Desktop.CopyFilesFiltered]
dir=%csidl_common_desktopdirectory%\*


[Start Menu.Detect]
Directory,%csidl_startmenu%,EXISTS

[Start Menu.Instructions]
ForceDestFile = Start Menu.ForceDestFile
CopyFilesFiltered = Start Menu.CopyFilesFiltered

[Start Menu.ForceDestFile]
%csidl_startmenu%\desktop.ini

[Start Menu.CopyFilesFiltered]
dir=%csidl_startmenu%\*


[Shared Start Menu.Detect]
Directory,%csidl_common_startmenu%,EXISTS,!SAMEOBJECTNAME(%csidl_startmenu%)

[Shared Start Menu.Instructions]
ForceDestFile = Shared Start Menu.ForceDestFile
CopyFilesFiltered = Shared Start Menu.CopyFilesFiltered

[Shared Start Menu.ForceDestFile]
%csidl_common_startmenu%\desktop.ini

[Shared Start Menu.CopyFilesFiltered]
dir=%csidl_common_startmenu%\*


[My Pictures.Detect]
Directory,%csidl_mypictures%,EXISTS

[My Pictures.Instructions]
ForceDestFile = My Pictures.ForceDestFile
CopyFilesFiltered = My Pictures.CopyFilesFiltered

[My Pictures.ForceDestFile]
%csidl_mypictures%\desktop.ini

[My Pictures.CopyFilesFiltered]
dir=%csidl_mypictures%\*


[My Documents.Detect]
Directory,%csidl_personal%,EXISTS

[My Documents.Instructions]
ForceDestFile = My Documents.ForceDestFile
CopyFilesFiltered = My Documents.CopyFilesFiltered

[My Documents.ForceDestFile]
%csidl_personal%\desktop.ini

[My Documents.CopyFilesFiltered]
dir=%csidl_personal%\*


[Shared Documents.Detect]
Directory,%csidl_common_documents%,EXISTS,!SAMEOBJECTNAME(%csidl_personal%)

[Shared Documents.Instructions]
ForceDestFile = Shared Documents.ForceDestFile
CopyFilesFiltered = Shared Documents.CopyFilesFiltered

[Shared Documents.ForceDestFile]
%csidl_common_documents%\desktop.ini

[Shared Documents.CopyFilesFiltered]
dir=%csidl_common_documents%\*


[Quick Launch.Detect]
Directory,%QuickLaunchDir%,EXISTS

[Quick Launch.Instructions]
ForceDestFile = Quick Launch.ForceDestFile
CopyFilesFiltered = Quick Launch.CopyFilesFiltered

[Quick Launch.ForceDestFile]
%QuickLaunchDir%\desktop.ini

[Quick Launch.CopyFilesFiltered]
dir=%QuickLaunchDir%\*


[Copy This State]
DelFiles=omit files
[omit files]
C:\program files\*
c:\windows\*
c:\drivers\*
h:\*
g:\*
f:\*
copyfiles=Default CopyFiles

[Default CopyFIles]
; Word Processor Documents
*.doc,
*.dot,
*.rtf,
*.txt,
*.mcw,
*.wps,
*.scd,
*.wri,
*.wpd,

; Spreadsheet Documents
*.xl?,
*.csv,
*.iqy,
*.dqy,
*.oqy,
*.rqy,
*.wk?,
*.wq1,
*.slk,
*.dif,

; Presentation Documents
*.ppt,
*.pps,
*.pot,
*.sh3,
*.ch3,
*.pre,
*.ppa,

[Strings]
QuickLaunchDir = "%csidl_appdata%\Microsoft\Internet Explorer\Quick Launch"
 
Ad

Advertisements

G

Guest

Thanks for the reply.. I tried adding the DELFILES command in the
sysfiles.inf, but files were still copied over. any other ideas to get it to
skip the files without removing the file extensions on the dfault copy?

Johan Arwidmark said:
When the CopyFiles rules are more specific, the delfiles rules are
ignored..

You can also use sysfiles.inf which has a higher priority when
excluding files.


regards

Johan Arwidmark
Microsoft MVP - Setup/Deployment


I'm trying to modify the default INF files for the USMT and it is working
wonderfully, except for one problem, I am adding a DELFILES command in the
Copy This State tag right before it copies the default file extensions, but
it is not excluding them, any ideas,, here is the INF file for you to see and
help out


[version]
Signature=$Windows NT$
DriverVer=07/01/2001,5.1.2535.0

[User Settings]
Desktop,, dir,%csidl_desktopdirectory%
Shared Desktop,, dir,%csidl_common_desktopdirectory%
Start Menu,, dir,%csidl_startmenu%
Shared Start Menu,, dir,%csidl_common_startmenu%
Favorites,, dir,%csidl_favorites%
Shared Favorites,, dir,%csidl_common_favorites%
My Pictures,, dir,%csidl_mypictures%
My Documents,, dir,%csidl_personal%
Shared Documents,, dir,%csidl_common_documents%
Quick Launch,, dir,%QuickLaunchDir%

[Desktop.Detect]
Directory,%csidl_desktopdirectory%,EXISTS

[Desktop.Instructions]
ForceDestFile = Desktop.ForceDestFile
CopyFilesFiltered = Desktop.CopyFilesFiltered

[Desktop.ForceDestFile]
%csidl_desktopdirectory%\desktop.ini

[Desktop.CopyFilesFiltered]
dir=%csidl_desktopdirectory%\*


[Shared Desktop.Detect]
Directory,%csidl_common_desktopdirectory%,EXISTS,!SAMEOBJECTNAME(%csidl_desktopdirectory%)

[Shared Desktop.Instructions]
ForceDestFile = Shared Desktop.ForceDestFile
CopyFilesFiltered = Shared Desktop.CopyFilesFiltered

[Shared Desktop.ForceDestFile]
%csidl_common_desktopdirectory%\desktop.ini

[Shared Desktop.CopyFilesFiltered]
dir=%csidl_common_desktopdirectory%\*


[Start Menu.Detect]
Directory,%csidl_startmenu%,EXISTS

[Start Menu.Instructions]
ForceDestFile = Start Menu.ForceDestFile
CopyFilesFiltered = Start Menu.CopyFilesFiltered

[Start Menu.ForceDestFile]
%csidl_startmenu%\desktop.ini

[Start Menu.CopyFilesFiltered]
dir=%csidl_startmenu%\*


[Shared Start Menu.Detect]
Directory,%csidl_common_startmenu%,EXISTS,!SAMEOBJECTNAME(%csidl_startmenu%)

[Shared Start Menu.Instructions]
ForceDestFile = Shared Start Menu.ForceDestFile
CopyFilesFiltered = Shared Start Menu.CopyFilesFiltered

[Shared Start Menu.ForceDestFile]
%csidl_common_startmenu%\desktop.ini

[Shared Start Menu.CopyFilesFiltered]
dir=%csidl_common_startmenu%\*


[My Pictures.Detect]
Directory,%csidl_mypictures%,EXISTS

[My Pictures.Instructions]
ForceDestFile = My Pictures.ForceDestFile
CopyFilesFiltered = My Pictures.CopyFilesFiltered

[My Pictures.ForceDestFile]
%csidl_mypictures%\desktop.ini

[My Pictures.CopyFilesFiltered]
dir=%csidl_mypictures%\*


[My Documents.Detect]
Directory,%csidl_personal%,EXISTS

[My Documents.Instructions]
ForceDestFile = My Documents.ForceDestFile
CopyFilesFiltered = My Documents.CopyFilesFiltered

[My Documents.ForceDestFile]
%csidl_personal%\desktop.ini

[My Documents.CopyFilesFiltered]
dir=%csidl_personal%\*


[Shared Documents.Detect]
Directory,%csidl_common_documents%,EXISTS,!SAMEOBJECTNAME(%csidl_personal%)

[Shared Documents.Instructions]
ForceDestFile = Shared Documents.ForceDestFile
CopyFilesFiltered = Shared Documents.CopyFilesFiltered

[Shared Documents.ForceDestFile]
%csidl_common_documents%\desktop.ini

[Shared Documents.CopyFilesFiltered]
dir=%csidl_common_documents%\*


[Quick Launch.Detect]
Directory,%QuickLaunchDir%,EXISTS

[Quick Launch.Instructions]
ForceDestFile = Quick Launch.ForceDestFile
CopyFilesFiltered = Quick Launch.CopyFilesFiltered

[Quick Launch.ForceDestFile]
%QuickLaunchDir%\desktop.ini

[Quick Launch.CopyFilesFiltered]
dir=%QuickLaunchDir%\*


[Copy This State]
DelFiles=omit files
[omit files]
C:\program files\*
c:\windows\*
c:\drivers\*
h:\*
g:\*
f:\*
copyfiles=Default CopyFiles

[Default CopyFIles]
; Word Processor Documents
*.doc,
*.dot,
*.rtf,
*.txt,
*.mcw,
*.wps,
*.scd,
*.wri,
*.wpd,

; Spreadsheet Documents
*.xl?,
*.csv,
*.iqy,
*.dqy,
*.oqy,
*.rqy,
*.wk?,
*.wq1,
*.slk,
*.dif,

; Presentation Documents
*.ppt,
*.pps,
*.pot,
*.sh3,
*.ch3,
*.pre,
*.ppa,

[Strings]
QuickLaunchDir = "%csidl_appdata%\Microsoft\Internet Explorer\Quick Launch"
 

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

Similar Threads

USMT and custom inf file. 0
USMT Migration inf.... 1
USMT and PST files 2
USMT - Corrupted file. 0
USMT 1
USMT 2
USMT 1
USMT 0

Top