MPEI and local plugin scanning (1 Viewer)

SpudR

Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    It came to light during a recent issue of mine, that the MPEI has a bit of a weakness in that one missing file would cause an issue.
    @Edalex pointed out:
    If InstalledExtension.xml file is lost then it's lost
    I'm sure that you can see that this might cause a problem...

    So I've created this thread to discuss options - as you all know (or should!) I am no code monkey, but I'm sure some of you gifted uber-beings can come up with a better solution, than just installing your plugins again (and all the 'fun' of a reconfig)

    So over to you boxes of brains...
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    Is there somewhere in the DB of known plugins that identifies the DLLs with the GUID?
    Just asking :).
    You could look yourself at example from our own logomanager package
    <PackageClass>
    <Version>2.0</Version>
    <Groups>
    <Items>
    <GroupItem Name="Designs">
    <DisplayName>Designs</DisplayName>
    <DefaulChecked>true</DefaulChecked>
    <Description>Designs</Description>
    <Files>
    <Items />
    </Files>
    </GroupItem>
    <GroupItem Name="Plugin">
    <DisplayName>Plugin</DisplayName>
    <DefaulChecked>true</DefaulChecked>
    <Description>Plugin</Description>
    <Files>
    <Items />
    </Files>
    </GroupItem>
    <GroupItem Name="Skin">
    <DisplayName>Skin</DisplayName>
    <DefaulChecked>true</DefaulChecked>
    <Description>Skin</Description>
    <Files>
    <Items />
    </Files>
    </GroupItem>
    </Items>
    </Groups>
    <Sections>
    <Items />
    </Sections>
    <Dependencies>
    <Items>
    <DependencyItem>
    <Type>MediaPortal</Type>
    <Id />
    <MinVersion>
    <Major>1</Major>
    <Minor>1</Minor>
    <Build>6</Build>
    <Revision>27644</Revision>
    </MinVersion>
    <MaxVersion>
    <Major>1</Major>
    <Minor>1</Minor>
    <Build>6</Build>
    <Revision>27644</Revision>
    </MaxVersion>
    <WarnOnly>true</WarnOnly>
    <Message>This version of Logo Manager requires MediaPortal 1.2.0 Beta or higher!</Message>
    <Name>MediaPortal</Name>
    </DependencyItem>
    </Items>
    </Dependencies>
    <PluginDependencies>
    <Items>
    <PluginDependencyItem AssemblyName="LogoManager.dll">
    <CompatibleVersion>
    <Items>
    <CompatibleVersionItem>
    <MinRequiredVersion>1.1.6.27644</MinRequiredVersion>
    <DesignedForVersion>1.1.6.27644</DesignedForVersion>
    </CompatibleVersionItem>
    </Items>
    </CompatibleVersion>
    <SubSystemsUsed>
    <Items />
    </SubSystemsUsed>
    </PluginDependencyItem>
    </Items>
    </PluginDependencies>
    <GeneralInfo>
    <Name>Logo Manager</Name>
    <Id>bf0898e0-0866-4f52-be7e-4f504b978944</Id>
    <Author>Vasilich, Edalex</Author>
    <HomePage>https://code.google.com/p/mediaportal-russian-logos/</HomePage>
    <ForumPage>https://forum.team-mediaportal.com/threads/logomanager-0-0-0-1-31-05-3013.119376/</ForumPage>
    <UpdateUrl>http://mediaportal-russian-logos.go...ogoManager/LogoManager/update.xml</UpdateUrl>
    <Version>
    <Major>1</Major>
    <Minor>0</Minor>
    <Build>0</Build>
    <Revision>0</Revision>
    </Version>
    <ExtensionDescription>Multinational plugin for downloading tv and radio logos from online repositories replacing existing logo packs</ExtensionDescription>
    <VersionDescription>Added:

    - Automatic grabbing with defaultsettings at first plugin run

    - Autoupdate packs from central server at start

    - Many new country packs

    - Background scheduled autograbbing

    - Argus single-seat support

    Fixed:

    - Many bugs

    </VersionDescription>
    <DevelopmentStatus>Stable</DevelopmentStatus>
    <OnlineLocation>http://mediaportal-russian-logos.go...ger/LogoManager.1.0.0.0.mpe1</OnlineLocation>
    <ReleaseDate>2015-03-29T23:14:39</ReleaseDate>
    <Tags>logo,logos,tv,radio</Tags>
    <Location>D:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Installer\V2\bf0898e0-0866-4f52-be7e-4f504b978944\1.0.0.0\bf0898e0-0866-4f52-be7e-4f504b978944.mpe2</Location>
    <Params>
    <Items>
    <SectionParam Name="Icon">
    <Value />
    <ValueType>File</ValueType>
    <Description>The icon file of the package (jpg,png,bmp)</Description>
    </SectionParam>
    <SectionParam Name="Online Icon">
    <Value />
    <ValueType>String</ValueType>
    <Description>The icon file of the package stored online (jpg,png,bmp)</Description>
    </SectionParam>
    <SectionParam Name="Configuration file">
    <Value />
    <ValueType>Template</ValueType>
    <Description>The file used to configure the extension.
    If it has .exe extension the will be executed.
    If it has .dll extension it's started like MP plugin configuration.</Description>
    </SectionParam>
    <SectionParam Name="Online Screenshots">
    <Value>http://mediaportal-russian-logos.go...ogoManager/Screenshots/2013-05-31_231106.jpg;
    http://mediaportal-russian-logos.go...ogoManager/Screenshots/2013-05-31_231129.jpg;
    http://mediaportal-russian-logos.go...ogoManager/Screenshots/2013-05-31_231159.jpg;
    http://mediaportal-russian-logos.go...ogoManager/Screenshots/2013-05-31_231453.jpg;
    http://mediaportal-russian-logos.go...ger/Screenshots/2013-05-31_231537.jpg</Value>
    <ValueType>String</ValueType>
    <Description>Online stored screenshot urls separated by ; </Description>
    </SectionParam>
    <SectionParam Name="Force to uninstall on update">
    <Value>YES</Value>
    <ValueType>Bool</ValueType>
    <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description>
    </SectionParam>
    </Items>
    </Params>
    </GeneralInfo>
    <UniqueFileList>
    <Items />
    </UniqueFileList>
    <ProjectSettings>
    <FolderGroups />
    </ProjectSettings>
    <IsSkin>false</IsSkin>
    </PackageClass>
     

    SpudR

    Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    These bits look interesting:
    Code:
           <GroupItem Name="Plugin">
                    <DisplayName>Plugin</DisplayName>
                    <DefaulChecked>true</DefaulChecked>
                    <Description>Plugin</Description>
                    <Files>
                        <Items />
                    </Files>
                </GroupItem>
     
        <UniqueFileList>
            <Items />
        </UniqueFileList>
    Could the file details be put here to check local presence against?
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    Nah, this is custom group name. But you coulf look at plugin dependency item which holds all connected dll names... There could be more than one item but we could eleminate duplicates
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    Long time noone have touched mpei. Only guys to ask are ltfearme, offbyone and me i believe
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Sry not going to put any effort into this. My focus is on OV and MP2.
     

    Users who are viewing this thread

    Top Bottom