Groups do not work anymore !?

Discussion in 'Skins and Plugins Installer (MPEI)' started by lkuech, August 28, 2007.

  1. lkuech
    • Team MediaPortal

    lkuech Retired Team Member

    Joined:
    February 16, 2007
    Messages:
    576
    Likes Received:
    83
    Location:
    Hamburg
    Ratings:
    +83 / 0
    Home Country:
    Germany Germany
    Hi dukus.

    I currently play around with the installation of my next version of the ViewModeSwitcher.
    It comes with two files with the same name... one for the TVE2 and one for the TVE3.
    Because of this I've created two groups and disallowed multiselection.

    If I try to install the mpi I can select the group and everything looks good but I do not get any files installed.
    As soon as I delete all groups the installation works... It seems to me that the file/group mapping does not work anymore.

    If I look in xmp of the mpi file I can see that the file information in the grouping section is still a absolute path, the file path itself (in the files section) is relative.



    This bug was not there as I tried this function for the first time... so I guess it is a side effect of a recently integrated function/improvement.

    :D

    Bye
    Lars
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    Pls, send me the xmp file to have a look, probally it is a bug
     
  4. lkuech
    • Team MediaPortal

    lkuech Retired Team Member

    Joined:
    February 16, 2007
    Messages:
    576
    Likes Received:
    83
    Location:
    Hamburg
    Ratings:
    +83 / 0
    Home Country:
    Germany Germany
    Ok... Here we go ;)

    It is just a quick test file with one file and one group. As soon as you delete the group the is copied perfectly...

    Code (Text):
    1.  
    2. <MPinstaler>
    3.     <ver>1.00.000</ver>
    4.     <FileList>
    5.         <File>
    6.             <FileName>ViewModeSwitcher.dll</FileName>
    7.             <Type>Plugin</Type>
    8.             <SubType>Process</SubType>
    9.             <Source>[B]bin\Release\ViewModeSwitcher.dll[/B]</Source>
    10.             <Id>01020</Id>
    11.             <Option />
    12.         </File>
    13.     </FileList>
    14.     <StringList />
    15.     <Actions />
    16.     <SetupGroups>
    17.         <SetupGroup Id="1" Name="Test" />
    18.     </SetupGroups>
    19.     <SetupGroupMappings>
    20.         <SetupGroupMapping Id="1" FileName="[B]D:\MP Source\MediaPortal\ViewModeSwitcher\bin\Release\ViewModeSwitcher.dll[/B]" />
    21.     </SetupGroupMappings>
    22.     <Option>
    23.         <BuildFileName />
    24.         <ProiectFileName>D:\MP Source\MediaPortal\ViewModeSwitcher\test.xmp</ProiectFileName>
    25.         <ProiectName>TestPack</ProiectName>
    26.         <Author>LKuech</Author>
    27.         <UpdateURL>http://mpi.team-mediaportal.com</UpdateURL>
    28.         <Version>0.1</Version>
    29.         <Description />
    30.         <Group>Automation</Group>
    31.         <Release>Beta</Release>
    32.     </Option>
    33.     <Properties>
    34.         <MPMaxVersion />
    35.         <MPMinVersion>16000</MPMinVersion>
    36.         <MinExtensionVersion />
    37.         <MaxExtensionVersion />
    38.         <ForumURL />
    39.         <WebURL />
    40.         <CreationDate>Tuesday, August 28, 2007 12:00:00 AM</CreationDate>
    41.         <SingleGroupSelect>False</SingleGroupSelect>
    42.     </Properties>
    43. </MPinstaler>
    44.  

    EDIT: BTW... How do I use the MPMIN & Max Version?

    Bye
    Lars
     
  5. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    Now it is fixed.
    The MPMIN & Max not used yet.
    Not allowed to use files with same type and same name. Rename one of them and use the OutPutFilename properties to specify the name of file.
     
  6. lkuech
    • Team MediaPortal

    lkuech Retired Team Member

    Joined:
    February 16, 2007
    Messages:
    576
    Likes Received:
    83
    Location:
    Hamburg
    Ratings:
    +83 / 0
    Home Country:
    Germany Germany
    Thanx ... The grouping bug is gone. good work!

    But it seems there is another one:

    As I mentioned above, the plugin comes with two files with the same name... one for the TVE2 and one for the TVE3.

    As you expected it... this does not work.

    So I tried to rename the source files, so that they have different names (ViewModeSwitcherHelperTVE2.dll and ViewModeSwitcherHelperTVE3.dll) and set the Outputfilename property of these files to same value (ViewModeSwitcherHelperTVE.dll).

    Unfortunately this leads to the same result that both files get copied all the time even if only one file is mapped to a group... and of course the last one always wins :p

    Is there another workaround or do you need to fix something first?

    I have attached the complete installation routine so it should be easier to analyse for you.

    Edit: I forgot to mention, that if I give one of the file a different outputfilename ... everything is working perfectly...

    Bye
    Lars
     
  7. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
  8. lkuech
    • Team MediaPortal

    lkuech Retired Team Member

    Joined:
    February 16, 2007
    Messages:
    576
    Likes Received:
    83
    Location:
    Hamburg
    Ratings:
    +83 / 0
    Home Country:
    Germany Germany
    Hi Dukus.

    Brilliant work. Using GUID's is always a good approach., isn't it? ;)

    Is it possible that you integrate the the MPMinVersion soon?
    Because my MPI file will only work properly with the SVN >15676.... This may confuse many users...

    Many :D

    Lars
     
  9. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    Other changes after MP final release.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!