Found and fixed issue with Postbuild.bat

Discussion in 'General Development (no feature request here!)' started by asagala, July 16, 2009.

  1. asagala

    asagala Portal Pro

    Joined:
    December 13, 2008
    Messages:
    118
    Likes Received:
    20
    Location:
    Montreal
    Ratings:
    +20 / 0
    Home Country:
    Canada Canada
    Hi,

    Think I found an issue with Postbuild.bat in SVN 23143. The script tries to copy language files and skin file to wrong place. Also xcopy command has a typo in it. The result on my system was that the config tool failed to launch since it didnt find lcoalization files

    Here are the two lines causing the issue:
    xcopy %1\MediaPortal.Base\Language\*.* %allusersprofile%\"Team MediaPortal\MediaPortal\Language\" /E /Y /D
    xcopy %1\MediaPortal.Base\Skin\*.* %allusersprofile%\"Team MediaPortal\MediaPortal\Skin\" /E /Y /D

    The lines should be:
    xcopy %1\MediaPortal.Base\Language\*.* "%allusersprofile%\Application Data\Team MediaPortal\MediaPortal\Language\" /E /Y /D
    xcopy %1\MediaPortal.Base\Skin\*.* "%allusersprofile%\Application Data\Team MediaPortal\MediaPortal\Skin\" /E /Y /D



    Notice how the " is at the start of the dir path and how the Application Data dir was missing from the first two commands. I had to change these commands on my windows XP SP3 system running VS 2008


    Hope this helps someone
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. chemelli
    • Premium Supporter

    chemelli Retired Team Member

    Joined:
    September 28, 2006
    Messages:
    6,159
    Likes Received:
    1,126
    Gender:
    Male
    Occupation:
    Activation Manager - Cloud Services
    Location:
    Trento, Italy
    Ratings:
    +1,127 / 0
    Home Country:
    Italy Italy
    asagala,

    we already fixed the postbuild.bat because the dir differs from XP to Vista/7.
    Anyway, thx for sharing your findings.

    Simone
     
    • Like Like x 1
  4. asagala

    asagala Portal Pro

    Joined:
    December 13, 2008
    Messages:
    118
    Likes Received:
    20
    Location:
    Montreal
    Ratings:
    +20 / 0
    Home Country:
    Canada Canada
    what svn?
     
  5. chemelli
    • Premium Supporter

    chemelli Retired Team Member

    Joined:
    September 28, 2006
    Messages:
    6,159
    Likes Received:
    1,126
    Gender:
    Male
    Occupation:
    Activation Manager - Cloud Services
    Location:
    Trento, Italy
    Ratings:
    +1,127 / 0
    Home Country:
    Italy Italy
    23149

    Simone
     
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!