Groups do not work anymore !? (2 Viewers)

lkuech

Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    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
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    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:
    <MPinstaler>
    	<ver>1.00.000</ver>
    	<FileList>
    		<File>
    			<FileName>ViewModeSwitcher.dll</FileName>
    			<Type>Plugin</Type>
    			<SubType>Process</SubType>
    			<Source>[B]bin\Release\ViewModeSwitcher.dll[/B]</Source>
    			<Id>01020</Id>
    			<Option />
    		</File>
    	</FileList>
    	<StringList />
    	<Actions />
    	<SetupGroups>
    		<SetupGroup Id="1" Name="Test" />
    	</SetupGroups>
    	<SetupGroupMappings>
    		<SetupGroupMapping Id="1" FileName="[B]D:\MP Source\MediaPortal\ViewModeSwitcher\bin\Release\ViewModeSwitcher.dll[/B]" />
    	</SetupGroupMappings>
    	<Option>
    		<BuildFileName />
    		<ProiectFileName>D:\MP Source\MediaPortal\ViewModeSwitcher\test.xmp</ProiectFileName>
    		<ProiectName>TestPack</ProiectName>
    		<Author>LKuech</Author>
    		<UpdateURL>http://mpi.team-mediaportal.com</UpdateURL>
    		<Version>0.1</Version>
    		<Description />
    		<Group>Automation</Group>
    		<Release>Beta</Release>
    	</Option>
    	<Properties>
    		<MPMaxVersion />
    		<MPMinVersion>16000</MPMinVersion>
    		<MinExtensionVersion />
    		<MaxExtensionVersion />
    		<ForumURL />
    		<WebURL />
    		<CreationDate>Tuesday, August 28, 2007 12:00:00 AM</CreationDate>
    		<SingleGroupSelect>False</SingleGroupSelect>
    	</Properties>
    </MPinstaler>


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

    Bye
    Lars
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    44
    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.
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    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
     

    lkuech

    Retired Team Member
  • Premium Supporter
  • February 16, 2007
    576
    83
    50
    Hamburg
    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
     

    Users who are viewing this thread

    Top Bottom