Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: temp1 was unexpected at this time.

  1. #1
    Join Date
    Sep 2013
    Location
    Pakistan
    Posts
    17

    Unhappy temp1 was unexpected at this time.

    Since my analog device doesn't show, I followed the instructions of installing Hauppauge SoftPVR as per http://www.nextpvr.com/nwiki/pmwiki....uppaugeSoftPVR but I get the following error:

    Attachment 37114

    Any help appreciated because I have followed all instructions by the book, including the patches but it just doesn't work

  2. #2
    Join Date
    Mar 2007
    Location
    Gjovik, Norway - PAL
    Posts
    6,513
    Try running from C:\, it seems the script does not use drive letter and assumes you are on C:

    "I'd rather have a bottle in front of me than a frontal lobotomy"

  3. #3
    Join Date
    Sep 2013
    Location
    Pakistan
    Posts
    2
    same error here!!...

  4. #4
    Join Date
    Sep 2008
    Location
    California
    Posts
    7,230
    probably need some double-quotes around a path/file name in the script
    NPVR Tech Support Sticky - - http://forums.nextpvr.com/showthread...931#post480931
    ---------------------------
    my server: NPVR 4.2.2/Win10Pro 32-bit/AMD A6-7400K/hvr-2250 & hvr-1250 with Winegard Flatwave antenna/Schedules Direct
    playback client: Google Nexus Player running Android 8/Kodi 16.1 (last version with good 1080i MPEG-2 playback) & X-NEWA 2.5.1

  5. #5
    Join Date
    Sep 2013
    Location
    Pakistan
    Posts
    17
    Quote Originally Posted by Reddwarf View Post
    Try running from C:\, it seems the script does not use drive letter and assumes you are on C:
    Tried in C root as well as C:\Program Files (x86)\NPVR\SoftPVR\ but the same exact error. I think the original batch file has some problems. Any help appreciated

  6. #6
    Join Date
    Sep 2013
    Location
    Pakistan
    Posts
    17
    Quote Originally Posted by johnsonx42 View Post
    probably need some double-quotes around a path/file name in the script
    This is the original batch file:

    @ECHO OFF
    @rem Modified by: PBS
    @echo.
    @ECHO ************************************************** ******
    @ECHO SoftPVR installer for Analog devices. (32 OR 64 bit OS)
    @ECHO ************************************************** ******
    @echo.

    @rem Check for admin rights and echo msg and exit if none.....
    net session >nul 2>&1
    if %errorLevel% == 0 (
    @echo Success: Administrative permissions confirmed.
    ) else (
    @echo Failure: Current permissions inadequate. This script needs to be run with Admin priviledges..
    pause
    exit
    )
    cd /d "%~dp0"
    @echo.


    @rem This line detects 32bit or 64bit..
    @IF DEFINED ProgramFiles(x86) (
    set sysdir=Syswow64
    set softnode=SOFTWARE\Wow6432Node
    ) else (
    set sysdir=System32
    set softnode=SOFTWARE
    )
    @echo This machine's system dir is "%systemroot%\%sysdir%"
    @echo And it's software registry section is HKLM\%softnode%\NPVR
    @echo.

    @rem This line detects actual NPVR dir from registry and puts it in variable %npvrdir%, no matter where it's installed..
    @for /f "skip=2 tokens=1,2,* delims= " %%A in ('reg query "HKLM\%softnode%\NPVR" /v InstallDirectory') do set npvrdir=%%C
    @echo NPVR directory is "%npvrdir%"
    @ECHO.

    @ECHO Creating Temp folders
    @MD "%npvrdir%\SoftPVR\temp1"
    @MD "%npvrdir%\SoftPVR\temp2"
    @ECHO.

    @ECHO Extracting WinTV installer

    @rem This line lists dir for files starting with wintv7_cd_ by date and executes only newest one [regardless of filename ending] with params....
    for /f %%f in ('dir /b /o:-d "wintv7_cd_*.exe"') do (
    "%%~f" /x %npvrdir%\SoftPVR\temp1
    goto :next
    )

    @rem Missing wintv7_*.exe file error message...
    @if errorlevel 1 (@echo.
    @echo NO WINTV7_cd_*.exe file found!!!
    @echo Download file first and place in %npvrdir%\softpvr\
    @echo [create dir if needed]
    @echo.
    pause
    exit)
    :next

    @rem Executing extracted wintv7setup.exe
    "%npvrdir%\SoftPVR\temp1\WinTV7Setup.exe" /x %npvrdir%\SoftPVR\temp2

    @ECHO.
    @ECHO Copying required files
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcl2ae.ax" "%npvrdir%\SoftPVR\"
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcm2ve.ax" "%npvrdir%\SoftPVR\"
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcmpeg2mux.ax" "%npvrdir%\SoftPVR\"
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcmpgaout.dll" "%npvrdir%\SoftPVR\"
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcmpgvout.004" "%npvrdir%\SoftPVR\"
    COPY "%npvrdir%\SoftPVR\temp2\hcw_mcmpgvout.dll" "%npvrdir%\SoftPVR\"
    @ECHO.

    @rem These lines register filters, showing and pausing only if error occurs..
    @ECHO Registering files

    %SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcl2ae.ax"
    @if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcl2ae.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)

    %SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcm2ve.ax"
    @if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcm2ve.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)

    %SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcmpeg2mux.ax"
    @if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcmpeg2mux.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)
    @ECHO.

    @ECHO Deleting Temp Folders
    RD "%npvrdir%\SoftPVR\temp1\" /s /q
    RD "%npvrdir%\SoftPVR\temp2\" /s /q
    @ECHO.
    @ECHO Successful!!
    @ECHO.

    pause

  7. #7
    Join Date
    Sep 2008
    Location
    California
    Posts
    7,230
    I dunno, it used to work. Hauppauge may have changed something in the installer that prevents extraction in this way. They or MainConcept may have gotten wind that people were stealing their encoders this way.
    NPVR Tech Support Sticky - - http://forums.nextpvr.com/showthread...931#post480931
    ---------------------------
    my server: NPVR 4.2.2/Win10Pro 32-bit/AMD A6-7400K/hvr-2250 & hvr-1250 with Winegard Flatwave antenna/Schedules Direct
    playback client: Google Nexus Player running Android 8/Kodi 16.1 (last version with good 1080i MPEG-2 playback) & X-NEWA 2.5.1

  8. #8
    Join Date
    Nov 2006
    Location
    Louisville, KY, USA
    Posts
    7,870
    missing quotes:

    Code:
    @ECHO Extracting WinTV installer
    
    @rem This line lists dir for files starting with wintv7_cd_ by date and executes only newest one [regardless of filename ending] with params....
     for /f %%f in ('dir /b /o:-d "wintv7_cd_*.exe"') do (
     "%%~f" /x "%npvrdir%\SoftPVR\temp1"
     goto :next
     )
    
    ...
    
    @rem Executing extracted wintv7setup.exe 
     "%npvrdir%\SoftPVR\temp1\WinTV7Setup.exe" /x "%npvrdir%\SoftPVR\temp2"

  9. #9
    Join Date
    Sep 2008
    Location
    California
    Posts
    7,230
    ah, I was right the first time. just didn't see where. %npvrdir% has spaces and parens in it, must have quotes. good catch whurlston.
    NPVR Tech Support Sticky - - http://forums.nextpvr.com/showthread...931#post480931
    ---------------------------
    my server: NPVR 4.2.2/Win10Pro 32-bit/AMD A6-7400K/hvr-2250 & hvr-1250 with Winegard Flatwave antenna/Schedules Direct
    playback client: Google Nexus Player running Android 8/Kodi 16.1 (last version with good 1080i MPEG-2 playback) & X-NEWA 2.5.1

  10. #10
    Join Date
    Sep 2013
    Location
    Pakistan
    Posts
    17
    Quote Originally Posted by whurlston View Post
    missing quotes:

    Code:
    @ECHO Extracting WinTV installer
    
    @rem This line lists dir for files starting with wintv7_cd_ by date and executes only newest one [regardless of filename ending] with params....
     for /f %%f in ('dir /b /o:-d "wintv7_cd_*.exe"') do (
     "%%~f" /x "%npvrdir%\SoftPVR\temp1"
     goto :next
     )
    
    ...
    
    @rem Executing extracted wintv7setup.exe 
     "%npvrdir%\SoftPVR\temp1\WinTV7Setup.exe" /x "%npvrdir%\SoftPVR\temp2"
    Thanks. It definitely progressed ahead but now gives another error. I do have space in my HD but I think it's something to do with the quotes:

    Attachment 37122

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •