V12 Installation issues

Discussion of getting WMC to work on Windows 10 (unsupported)
offgridqld

Posts: 16
Joined: Tue May 17, 2016 12:28 am
Location:

HTPC Specs: Show details

#21

Post by offgridqld » Sun May 22, 2016 1:51 am

I changed logon account to local administrator on ehSched service.
Ok I just did the above and it fixed it on my win 10 Pro with v12 WMC. :D

PC sleeps , wakes, Records scheduled programed and sleeps again...perfect!

Kurt

User avatar
Crash2009

Posts: 4357
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details

#22

Post by Crash2009 » Sun May 22, 2016 10:25 am

Whatever works.....

The strange thing is.....

edechamps was referring to a problem with v11 December 31, 2015

http://forums.mydigitallife.info/thread ... ost1192012

The developer, Abbodi, says the problem is fixed in v12 January 29, 2016

http://forums.mydigitallife.info/thread ... ost1200602

EDIT: After reviewing both our comments I see we were referring to different errors.

v11 would not start a scheduled recording when it was awake

you explained something different and I misunderstood

v12 would not wakeup to start a scheduled recording

offgridqld

Posts: 16
Joined: Tue May 17, 2016 12:28 am
Location:

HTPC Specs: Show details

#23

Post by offgridqld » Tue May 24, 2016 1:50 am

I just downloaded MCL so I can have station logo's.

I will have a go at installing it on my HTPC this weekend. Am I correct in thinking I would run this program in comparability mode for windows 8 or will it just work as is?

Kurt

offgridqld

Posts: 16
Joined: Tue May 17, 2016 12:28 am
Location:

HTPC Specs: Show details

#24

Post by offgridqld » Tue May 24, 2016 4:41 am

sorry that was supposed to read (compatibility) mode for W8.

Kurt

User avatar
Crash2009

Posts: 4357
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details

#25

Post by Crash2009 » Tue May 24, 2016 2:59 pm

I don't remember having to do anything special.

Here is the link to the developer..... http://www.thegreenbutton.tv/forums/vie ... f=9&t=5210

offgridqld

Posts: 16
Joined: Tue May 17, 2016 12:28 am
Location:

HTPC Specs: Show details

#26

Post by offgridqld » Thu May 26, 2016 7:43 am

Looks like I still have a issue with my PC not waking from sleep and recording scheduled programs. It starts fine and records them if it's running but not from sleep mode.

I have tried about 5 different fixes. I thought I had it fixed over the weekend but I have the feeling the scheduled program wasn't into the future enough and the PC didn't actually have time to go to sleep.

I have a scheduled show starting in 10min if it dost wake I'm out of ideas.

Kurt

User avatar
Crash2009

Posts: 4357
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details

#27

Post by Crash2009 » Thu May 26, 2016 9:41 am

These instructions are for Win7... You might have to take what you learn from here, and ask in a Win10 O/S specific thread

Use the advanced search and type "wakeup record sleep"

Richard1980 has written a few different scripts.... Here is one of them...

Code: Select all

WakeEarlyMinutes=10   'change this to how many minutes earlier you want the computer to wake
ScheduledTask="WakeTA"   'change this change the name of the task that wakes the computer

function readFromRegistry (strRegistryKey)
   Dim WSHShell, value
   On Error Resume Next
   Set WSHShell=CreateObject("WScript.Shell")
   value=WSHShell.RegRead(strRegistryKey)
   readFromRegistry=value
   set WSHShell=nothing
end function

Function ConvertToLocalDate(sTime)
   Dim od, ad, oShell, atb, offsetMin
   Dim sHour, sMinute, sMonth, sDay
   Dim ResultDate
   od = CDate(Mid(sTime,9,2) & "-" & Mid(STime,6,2) & "-" & Mid(STime,1,4) & " " & Mid(STime,12,8))
   Set oShell = CreateObject("WScript.Shell")
   atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias"
   offsetMin = oShell.RegRead(atb)
   offsetMin = -(offsetMin+WakeEarlyMinutes)
   ad = dateadd("n", offsetMin, od)
   sMonth = Month(CDate(ad))
   If Len(sMonth) = 1 Then
      sMonth = "0" & sMonth
   End If
   sDay = Day(CDate(ad))
   If Len(sDay) = 1 Then
      sDay = "0" & sDay
   End If
   sHour = Hour(CDate(ad))
   If Len(sHour) = 1 Then
      sHour = "0" & sHour
   End If
   sMinute = Minute(CDate(ad))
   If Len(sMinute) = 1 Then
      sMinute = "0" & sMinute
   End If
   ConvertToLocalDate=(sMonth & "/" & sDay & "/" & Year(CDate(ad)))
End Function

Function ConvertToLocalTime(sTime)
   Dim od, ad, oShell, atb, offsetMin
   Dim sHour, sMinute, sMonth, sDay
   Dim ResultDate
   od = CDate(Mid(sTime,9,2) & "-" & Mid(STime,6,2) & "-" & Mid(STime,1,4) & " " & Mid(STime,12,8))
   Set oShell = CreateObject("WScript.Shell")
   atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias"
   offsetMin = oShell.RegRead(atb)
   offsetMin = -(offsetMin+WakeEarlyMinutes)
   ad = dateadd("n", offsetMin, od)
   sMonth = Month(CDate(ad))
   If Len(sMonth) = 1 Then
      sMonth = "0" & sMonth
   End If
   sDay = Day(CDate(ad))
   If Len(sDay) = 1 Then
      sDay = "0" & sDay
   End If
   sHour = Hour(CDate(ad))
   If Len(sHour) = 1 Then
      sHour = "0" & sHour
   End If
   sMinute = Minute(CDate(ad))
   If Len(sMinute) = 1 Then
      sMinute = "0" & sMinute
   End If
   ConvertToLocalTime=(sHour & ":" & sMinute)
End Function

NextRecordingAt=readfromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Recording\NextRecordingAt")
NextRecordingDate=ConvertToLocalDate(NextRecordingAt)
NextRecordingTime=ConvertToLocalTime(NextRecordingAt)
Set Wshell = WScript.CreateObject("WScript.Shell")
Task=("SCHTASKS /CREATE /F /SC ONCE /TN """ & ScheduledTask& """ /TR ""START"" /SD " & NextRecordingDate & " /ST " & NextRecordingTime)
Wshell.run Task,0,true
Const TASK_UPDATE = &H4
Const TASK_DONT_ADD_PRINCIPAL_ACE = &H10
Dim TaskName, EnableWakeToRun, objTaskService, objRootFolder, objTask, objDefinition
TaskName = ScheduledTask
Set objTaskService = CreateObject("Schedule.Service")
objTaskService.Connect
Set objRootFolder = objTaskService.GetFolder("\")
Set objTask = objRootFolder.GetTask ("\" & TaskName)
Set objDefinition = objTask.Definition
objDefinition.Settings.WakeToRun = true
objRootFolder.RegisterTaskDefinition objTask.Name, objDefinition, TASK_UPDATE or  TASK_DONT_ADD_PRINCIPAL_ACE, , , objDefinition.Principal.LogonType
Set objTaskService = CreateObject("Schedule.Service")
objTaskService.Connect
Set objRootFolder = objTaskService.GetFolder("\")
Set objTask = objRootFolder.GetTask (TaskName)


Another example....

Code: Select all

WakeEarlyMinutes=10   'change this to how many minutes earlier you want the computer to wake
ScheduledTask="WakeTA"   'change this change the name of the task that wakes the computer
Dim NextRecordingAt
CreateWakeTask
Monitor

function readFromRegistry (strRegistryKey)
   Set WSHShell=CreateObject("WScript.Shell")
   value=WSHShell.RegRead(strRegistryKey)
   readFromRegistry=value
end function

Function ConvertToLocalDate(sTime)
   od = CDate(Mid(sTime,9,2) & "-" & Mid(STime,6,2) & "-" & Mid(STime,1,4) & " " & Mid(STime,12,8))
   Set oShell = CreateObject("WScript.Shell")
   atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias"
   offsetMin = oShell.RegRead(atb)
   offsetMin = -(offsetMin+WakeEarlyMinutes)
   ad = dateadd("n", offsetMin, od)
   sMonth = Month(CDate(ad))
   If Len(sMonth) = 1 Then
      sMonth = "0" & sMonth
   End If
   sDay = Day(CDate(ad))
   If Len(sDay) = 1 Then
      sDay = "0" & sDay
   End If
   sHour = Hour(CDate(ad))
   If Len(sHour) = 1 Then
      sHour = "0" & sHour
   End If
   sMinute = Minute(CDate(ad))
   If Len(sMinute) = 1 Then
      sMinute = "0" & sMinute
   End If
   ConvertToLocalDate=(sMonth & "/" & sDay & "/" & Year(CDate(ad)))
End Function

Function ConvertToLocalTime(sTime)
   od = CDate(Mid(sTime,9,2) & "-" & Mid(STime,6,2) & "-" & Mid(STime,1,4) & " " & Mid(STime,12,8))
   Set oShell = CreateObject("WScript.Shell")
   atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias"
   offsetMin = oShell.RegRead(atb)
   offsetMin = -(offsetMin+WakeEarlyMinutes)
   ad = dateadd("n", offsetMin, od)
   sMonth = Month(CDate(ad))
   If Len(sMonth) = 1 Then
      sMonth = "0" & sMonth
   End If
   sDay = Day(CDate(ad))
   If Len(sDay) = 1 Then
      sDay = "0" & sDay
   End If
   sHour = Hour(CDate(ad))
   If Len(sHour) = 1 Then
      sHour = "0" & sHour
   End If
   sMinute = Minute(CDate(ad))
   If Len(sMinute) = 1 Then
      sMinute = "0" & sMinute
   End If
   ConvertToLocalTime=(sHour & ":" & sMinute)
End Function

sub CreateWakeTask()
   NextRecordingAt=readfromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Recording\NextRecordingAt")
   NextRecordingDate=ConvertToLocalDate(NextRecordingAt)
   NextRecordingTime=ConvertToLocalTime(NextRecordingAt)
   Set Wshell = WScript.CreateObject("WScript.Shell")
   Task=("SCHTASKS /CREATE /F /SC ONCE /TN """ & ScheduledTask & """ /TR ""START"" /SD " & NextRecordingDate & " /ST " & NextRecordingTime)
   Wshell.run Task,0,true
   Const TASK_UPDATE = &H4
   Const TASK_DONT_ADD_PRINCIPAL_ACE = &H10
   TaskName = ScheduledTask
   Set objTaskService = CreateObject("Schedule.Service")
   objTaskService.Connect
   Set objRootFolder = objTaskService.GetFolder("\")
   Set objTask = objRootFolder.GetTask ("\" & TaskName)
   Set objDefinition = objTask.Definition
   objDefinition.Settings.WakeToRun = true
   objRootFolder.RegisterTaskDefinition objTask.Name, objDefinition, TASK_UPDATE or  TASK_DONT_ADD_PRINCIPAL_ACE, , , objDefinition.Principal.LogonType
   Set objTaskService = CreateObject("Schedule.Service")
   objTaskService.Connect
   Set objRootFolder = objTaskService.GetFolder("\")
   Set objTask = objRootFolder.GetTask (TaskName)
end sub

sub monitor()
   while(1)
      Wscript.sleep(1000)
      NextRecordingAtNew=readfromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Recording\NextRecordingAt")
      if NextRecordingAtNew <> NextRecordingAt Then
         CreateWakeTask
      end if
   wend
end sub
Full instructions and a couple alternatives here....

http://www.thegreenbutton.tv/forums/vie ... 423#p14423

User avatar
Crash2009

Posts: 4357
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details

#28

Post by Crash2009 » Thu May 26, 2016 10:18 am

Here is something a little more recent, and closer to Win10.

Code: Select all


I finally found the fix. Here are the steps:


1. Open the Start Menu, click on run, then type taskschd.msc in the run box and press Enter


2. In the left pane of Task Scheduler, double click on (to expand) Task Scheduler Library, then click Microsoft, then click Windows, then click on Media Center.


3. On the top menu bar, click on View and then click on Show Preview Pane and Show Hidden Tasks (to enable these features).


4. In the top half of the middle pane of Task Scheduler, use the middle pane scroll bar and scroll down to the phrase: StartRecording and click on it. This command is located at the 2nd to last choice at the bottom in the "Name" column, insure the "Name" column is wide enough to read all titles by dragging the column bar right .


5. On the bottom half of the middle pane that appears after clicking on  StartRecording, click on the General tab.


6. Lastly at the bottom of that tab, click on the Configure for: pull down menu and select Windows 8.1.


My machine still listed Windows 7 in that data field even though I'm using Windows 8.1 from an upgrade off the Microsoft Store.  The upgrade software doesn't change this setting, but it is needed for proper functioning of Windows Media Center when awakening the PC during sleep mode.


I tested the above and it fixed the problem on a scheduled recording for the first time since installing windows 8.1.



Thanks after 4 years i finally got my MCE machine to sleep and resume, thanks!

I assume one of my pr-release upgrades from Windows 7 didn't correctly set this.

andy_d

Posts: 82
Joined: Sat Jan 05, 2013 9:33 pm
Location:

HTPC Specs: Show details

#29

Post by andy_d » Thu Jun 09, 2016 12:22 pm

Hey guys. Since you have been messing around with this already, is it possible to list out what you will lose by making this move to Windows 10?

It sounds like waking the PC from sleep to record should be resolved if the instructions are followed

What about DRM channels? Can you watch and record?

User avatar
Crash2009

Posts: 4357
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details

#30

Post by Crash2009 » Thu Jun 09, 2016 1:46 pm

andy_d wrote:Hey guys. Since you have been messing around with this already, is it possible to list out what you will lose by making this move to Windows 10?

It sounds like waking the PC from sleep to record should be resolved if the instructions are followed

What about DRM channels? Can you watch and record?
Xbox360 is working with some additional steps. Presently, Ceton Echo is not working for me, all though there has been some progress. Haven't heard much from the guy working on Linksys DMA. Microsoft has removed a few WMC features in the version of WMC that is used (WMC for Win 8.1 version 6.3.9600.16384) for Win10...such as Always On Top (workaround available).

Somebody just tested wakeup from sleep to record in WMC version (v12). Working without any additional steps. (for reasons unknown kurt had some trouble...perhaps previous versions were not cleaned up completely)

DRM has been working since (v11) without any additional steps

Here is a link to v12 There are installation instructions included in the WMC installation folder...Readme.txt Workarounds.txt Read the first 30-40 pages of the link below for others experiences with various combinations of hardware/software/signal/location.

The Preparation section of the Readme is very important. Create a couple folders first C:\WMC\WMCv12 and extract the zip to WMCv12 (this also sets up a good folder structure for previous/future versions)

http://forums.mydigitallife.info/thread ... ost1200602 If using the Mega link UNCHECK use download manager

Post Reply