sweety_devil Posted February 21, 2012 Report post Posted February 21, 2012 Dear all, I want to add firefox in my scanstate. In migapp.xml there is a part of code for Firefox 3: <!-- Mozilla Firefox 3 --> <component context="UserAndSystem" type="Application"> <displayName _locID="migapp.firefox3">Mozilla Firefox</displayName> <environment name="GlobalEnv"/> <environment name="GlobalEnvX64"/> <role role="Settings"> <detection> <conditions> <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Firefox 3.*\bin [PathToExe]")</condition> </conditions> </detection> <rules context="User"> <destinationCleanup> <objectSet> <pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]</pattern> </objectSet> </destinationCleanup> <include> <objectSet> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern> <pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]</pattern> </objectSet> </include> <exclude> <objectSet> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\Crash Reports\* [*]</pattern> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\Profiles\*\ [pluginreg.dat]</pattern> <pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]</pattern> </objectSet> </exclude> <merge script="MigXmlHelper.SourcePriority()"> <objectSet> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern> <pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]</pattern> </objectSet> </merge> </rules> </role> </component> How can I use this code in a custom.xml to bakcup all version of Firefox and not just the version 3. Thank you. Quote Share this post Link to post Share on other sites More sharing options...
0 Eswar Koneti Posted February 21, 2012 Report post Posted February 21, 2012 you may have to edit the settings given in <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Firefox 3.*\bin [PathToExe]")</condition> to somethinglike <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla.*\bin [PathToExe]")</condition> check the entries for migapp.firefox3 Quote Share this post Link to post Share on other sites More sharing options...
0 sweety_devil Posted February 21, 2012 Report post Posted February 21, 2012 thank you it works I use this script: <!--This componant copies all the Mozilla Firefox profiles and copies them to the new Windows 7 load. Retaining all the settings and bookmarks --> <!--NOTE: MOZILLA FIREFOX MUST BE INSTALLED PRIOR TO THIS RUNNING --> <component context="UserAndSystem" type="Application"> <displayName _locID="MigUser.firefox">Mozilla Firefox</displayName> <paths> <path type="File">%CSIDL_APPDATA%\Mozilla\Firefox\</path> </paths> <role role="Settings"> <detection> <conditions> <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_APPDATA%\Mozilla\Firefox\* [*]")</condition> </conditions> </detection> <rules context="User"> <include> <objectSet> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern> </objectSet> </include> <merge script="MigXmlHelper.SourcePriority()"> <objectSet> <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern> </objectSet> </merge> </rules> </role> </component> Quote Share this post Link to post Share on other sites More sharing options...
Dear all,
I want to add firefox in my scanstate.
In migapp.xml there is a part of code for Firefox 3:
<!-- Mozilla Firefox 3 -->
<component context="UserAndSystem" type="Application">
<displayName _locID="migapp.firefox3">Mozilla Firefox</displayName>
<environment name="GlobalEnv"/>
<environment name="GlobalEnvX64"/>
<role role="Settings">
<detection>
<conditions>
<condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Firefox 3.*\bin [PathToExe]")</condition>
</conditions>
</detection>
<rules context="User">
<destinationCleanup>
<objectSet>
<pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]</pattern>
</objectSet>
</destinationCleanup>
<include>
<objectSet>
<pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern>
<pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]</pattern>
</objectSet>
</include>
<exclude>
<objectSet>
<pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\Crash Reports\* [*]</pattern>
<pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\Profiles\*\ [pluginreg.dat]</pattern>
<pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]</pattern>
</objectSet>
</exclude>
<merge script="MigXmlHelper.SourcePriority()">
<objectSet>
<pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern>
<pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]</pattern>
</objectSet>
</merge>
</rules>
</role>
</component>
How can I use this code in a custom.xml to bakcup all version of Firefox and not just the version 3.
Thank you.
Share this post
Link to post
Share on other sites