compiling mediaportal postbuild.bat (1 Viewer)

shewless

Portal Pro
October 2, 2006
71
0
Home Country
Canada Canada
I'm trying to compile mediaportal with vs # express.. all goes well but PostBuild.bat exits with code 1.

Looking at the postbuild batch file I see:

Code:
rem Check for Microsoft Antispyware .BAT bug
if exist .\kernel32.dll exit 1

Can somebody please please tell me what this means and what I need to do to fix this problem?

Thank you.
 

scoop

Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    are you sure the ERRORLEVEL 1 is coming from that part? That part only makes sure the CWD isn't %windir%\system32 (because that's where kernel32.dll resides) and ifso exits because it is executed from the wrong directory.

    As the remark already describes, there is / used to be a bug in MS Antispyware where executed batch files will have their current working directory changed to %windir%\system32\. If the batchfile would continue in that case, you'd have a nice copy of a new build in %windir%\system32\ ;-)

    You could try to look @ the output generated from the build (View -> Output or CTRL-W,O) and see where the batchfile gives the error.

    Kind regards,
    Michel
     

    shewless

    Portal Pro
    October 2, 2006
    71
    0
    Home Country
    Canada Canada
    Hmm.. I don't really see any errors from output...

    Code:
    Compile complete -- 0 errors, 0 warnings
    MediaPortal -> C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release\MediaPortal.exe
    "C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release\PostBuild.bat"
    C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
    ..\..\..\TTPremiumBoot\Sc_main.mc
            1 file(s) copied.
    ..\..\..\TTPremiumBoot\21\Boot_up.axf
    ..\..\..\TTPremiumBoot\21\Dpram
    ..\..\..\TTPremiumBoot\21\Root
            3 file(s) copied.
    ..\..\..\TTPremiumBoot\24\Boot_up.axf
    ..\..\..\TTPremiumBoot\24\Dpram
    ..\..\..\TTPremiumBoot\24\Root
            3 file(s) copied.
    ..\..\..\TTPremiumBoot\24Data\Boot_up.axf
    ..\..\..\TTPremiumBoot\24Data\Dpram
    ..\..\..\TTPremiumBoot\24Data\Root
            3 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
    ..\..\..\Microsoft.ApplicationBlocks.ApplicationUpdater.dll
    ..\..\..\Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.dll
    ..\..\..\Microsoft.ApplicationBlocks.ExceptionManagement.dll
    ..\..\..\Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll
            4 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
    ..\..\..\X10Unified.dll
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
    ..\..\..\Configuration\Wizards\DVD.xml
    ..\..\..\Configuration\Wizards\FirstTimeSetup.xml
    ..\..\..\Configuration\Wizards\Movies.xml
    ..\..\..\Configuration\Wizards\Music.xml
    ..\..\..\Configuration\Wizards\Pictures.xml
    ..\..\..\Configuration\Wizards\Television.xml
    ..\..\..\Configuration\Wizards\wizard_done.png
    ..\..\..\Configuration\Wizards\wizard_dvd.png
    ..\..\..\Configuration\Wizards\wizard_fts.png
    ..\..\..\Configuration\Wizards\wizard_movie.png
    ..\..\..\Configuration\Wizards\wizard_music.png
    ..\..\..\Configuration\Wizards\wizard_picture.png
    ..\..\..\Configuration\Wizards\wizard_television.png
           13 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
            1 file(s) copied.
    ========== Rebuild All: 25 succeeded, 1 failed, 0 skipped ==========
     

    shewless

    Portal Pro
    October 2, 2006
    71
    0
    Home Country
    Canada Canada
    Anyone have any idea why postbuild.bat exits with code 1? it looks like it works correctly, unless there was a file it couldn't copy or something...
     

    Users who are viewing this thread

    Top Bottom