It does the basic stuff, migrate the desktop, favorites, and some additional
filetypes and folders. And it SHOULD exclude .mp3 files or videos. And it
does not exclude anything :-(
It seems like it happens when I place a mp3 file on the desktop, or other
folder that I have chosen to migrate. When it is stored in the root of the
C-drive, it is not migrated. I have tried to use an Microsoft example
XML-file, that utilize the UnconditionalExclude , without any luck. As I read
the documentation, UnconditionalExclude overrules everything else, correct ??
Have anyybody seen that before ? Or maybe have a working XML-file wih
exclusions they can post ??
Any help or input will be great :-)
Anyway, I discovered that no matter what I did, if a excluded filetype was
located in any of the folders I have the selected to migrate (
desktop,favorites and a custom folder in the root of C:\ ) they would be
migrated, even when the UnconditionalExclude was used in the XML-file.
The trick is, in every rule ,where I state a folder to migrate, I had to add
the UnconditionalExclude list, within the same component. Then it works, but
my XML-file ,is now veryy long and confusing to edit :-(
Below is a snippet of my xml-file, for your reference.
<component type="Documents" context="User">
<displayName _locID="miguser.desktop">Desktop</displayName>
<paths>
<path type="File">%CSIDL_DESKTOP%</path>
</paths>
<role role="Settings">
<detects>
<detect>
<condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_DESKTOP%")</condition>
</detect>
</detects>
<rules>
<include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
<objectSet>
<pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
</objectSet>
</include>
<!-- FIx for exclude added below -->
<unconditionalExclude>
<objectSet>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp4]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpeg]",
"Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.avi]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wmv]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wma]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vob]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mkv]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vhd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vmc]", "Fixed")</script>
<pattern type="File">%CSIDL_PERSONAL%\PRIVATE\* [*]</pattern>
</objectSet>
</unconditionalExclude>
<merge script="MigXmlHelper.DestinationPriority()">
<objectSet>
<pattern type="File">%CSIDL_DESKTOP%
[desktop.ini]</pattern>
<pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
</objectSet>
</merge>
</rules>
</role>
</component>
That should not be the case - and i have not had that issue?
One thing you can try to help figure out what rules are getting processed is
to create the diagnostic log - this file contains a dump of all the migration
rules created - here you can see what is getting matched in the patterns -
SET MIG_ENABLE_DIAG=<filename>
If you are interested in looking deeper into this please post your previous
set of exclude rules - that did not work -
<component type="Documents" context="System">
<displayName>Data directory</displayName>
<role role="Data">
<rules context="System">
<!-- GENERAL Exclude section -->
<unconditionalExclude>
<objectSet>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]",
"Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wav]",
"Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ost]",
"Fixed")</script>
</objectSet>
<objectSet>
<pattern type="File">C:\Program Files\* [*]</pattern>
<pattern type="File">C:\Windows\* [*]</pattern>
</objectSet>
</unconditionalExclude>
Cheers
Chris
<!-- This component migrates data in user context -->
<component type="Documents1" context="UserandSystem">
<displayName>MigDocUser1</displayName>
<role role="Data">
<rules>
<unconditionalExclude>
<objectSet>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.txt]",
"Fixed")</script>
</objectSet>
</unconditionalExclude>
</rules>
</role>
</component>