|
SageTV Downloads & Instructions This forum is for discussions containing Downloads and Instructions related to the Open Source version of SageTV. Please do not post questions in this forum. |
|
Thread Tools | Search this Thread | Display Modes |
#301
|
|||
|
|||
Quote:
In my opinion, having the x64 installer put stuff in x86\SageTV seems problematic. In many ways. And it's easy to imagine a user manually removing it because he "knew" it didn't belong there. Or having Windows try to automatically repair a damaged Shortcut, only to end up pointing to the x86 executables. Or attempting to manually edit the sage.properties file there, and getting frustrated that his edits don't affect operation. Etc, etc. I'm also not in favor of installing anything to C:\SageTV. Applications have no business living in the root of C:. Experience has shown that this usually turns out badly, one way or another.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#302
|
|||
|
|||
Quote:
|
#303
|
|||
|
|||
Quote:
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#304
|
|||
|
|||
Quote:
Not sure how to work around it. The 64 bit installer might be able to install the service twice so the old name exists...or at least the registry key exists. I assume then that if you later installed the 32 bit version it would just overwrite the fake one. k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#305
|
|||
|
|||
Quote:
Alternatives are uglier, like putting a 2nd registry entry that just points to the same place. I’m not sure what Windows’ service control setup would even think of that. Thoughts on this? |
#306
|
|||
|
|||
Quote:
k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#307
|
|||
|
|||
Quote:
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#308
|
|||
|
|||
Quote:
I also cannot play certain 720p .mkv rips of Blu Rays on the HD300 without the entire system locking up with the spinning wheel of death, but the exact same rip plays fine on the x64 Client, x64 PlaceShifter, and the Mi Box. If anyone wants to look at logs just ask. I have hesitated reporting this because Narflex said it was a very seldom but know bug and has been there for a very long time. Just trying to make the product better. Gary |
#309
|
|||
|
|||
Quote:
My "uglier" suggestion was like what you're suggesting which is to install both keys but point them to the same .exe if the 32-bit version isn't installed. The cleaner solution is a one line code change: https://github.com/google/sagetv/blo...trol.java#L260 Since both cannot be running at the same time anyway, having them share a common key simply means you need to "disable" one and "enable" the other rather than just "stop" and "start". Easy enough if you ask me. This assumes you can 'CreateService' over top of one that's already there. Worst case means we modify the native to remove the existing service before installing one. |
#310
|
|||
|
|||
Quote:
No guarantee I'll get right on it as I have plans for the next several days. |
#311
|
|||
|
|||
Quote:
What's the mechanism to select between 32 and 64-bit? I suppose the x64 version of SageServiceControl **sorta** could handle that. But I envision compatibility issues with an existing 32-bit installation of Sage7 or Sage9 (if user attempts to start the Sage32 service via existing 32-bit shortcuts). Expecting users to always start/stop/change the service type via SageServiceControl is something they might not be used to. It's a bit inconsistent with the way many other apps document their start/stop services (via the Mgmt console). Clearly showing both 32 and 64-bit services in the Mgmt console and Task Manager makes the situation more transparent. OTOH, your proposal does offer the ability to prevent the user from accidentally running BOTH 32 and 64-bit services at the same time, but only if they upgrade their existing Sage-32 to 9.2.0. I'm really expecting quite a few existing users wanting to migrate to x64 will welcome the safety blanket of having both 32 and 64-bit installed side by side. Makes it oh-so-easy to simply copy wiz.bin (and maybe properties) back and forth between the two if there's a meltdown. That's exactly what I'm doing now. Too bad that HDHR forces us to choose our ugliness.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#312
|
|||
|
|||
Quote:
You can test this by manually modifying the "SageTV" service registry key to point to the 64-bit .exe, then use the Windows services control panel to start it up (since the 64-bit service control app currently doesn't modify the "SageTV" service). After testing that it works normally, stop it and run the 32-bit SageTV service control app. Choose "enable" and the "start" to see if it replaces the 64-bit one in the registry and runs ok. If that all works, we can change the code to retire the "SageTV64" service name and use "SageTV" for both. This will mean either version of service control app will be able to "enable" over the currently active one. Since changing back and forth requires copying wiz.bin and correcting properties wizard/next_uid, running the service control app is a minor and easy thing to add to the "switchover" list. EDIT: I renamed the ImagePath .exe entry and then used 'enable'. It didn't update the .exe. Apparently 'CreateService' doesn't do anything useful if it thinks there's already one there. I'll keep looking into this. EDIT2: Looks like even the ulgy solution will cause issues for installing 32-bit after 64-bit. According to the 'CreateService' documentation (https://docs.microsoft.com/en-us/win...createservicea), it will return an error if there's already one in there by the same name (likely even a fake one). Code:
ERROR_DUPLICATE_SERVICE_NAME The display name already exists in the service control manager database either as a service name or as another display name. Last edited by wnjj; 01-17-2019 at 11:28 PM. |
#313
|
|||
|
|||
Quote:
Testing shows that currently the 32-bit ...services\SageTV key is only created by the 32-bit installer, not by SageServiceControl.exe. We could fix the above by changing the source so that the new 32 and 64-bit SageServiceControl.exe's also set the key value to point to the corresponding SageService.exe executable. The new 32-bit installer would install SageServiceControl-32, as expected. The new 64-bit installer would install it's own SageServiceControl-64, along with the "new improved" SageServiceControl-32 that overwrites any legacy 32-bit version. Each service control would need to stop the counterpart's running service before starting the new one. The possible ugly part: what happens if installing/repairing a legacy version of Sage32 **after** a new 32 or 64-bit installation? Repair, using the existing 9.2.0 installer, results in an old SageServiceControl-32 that doesn't set the key value.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. Last edited by JustFred; 01-19-2019 at 12:09 PM. Reason: not thinking clearly when half asleep |
#314
|
||||
|
||||
Has anyone reached out to SiliconDust? They may be willing to work with us and modify their code to look for a different registry key. They do make fairly frequent updates to their software.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#315
|
|||
|
|||
One downside to installing any newer version of HDHR software: it forces a firmware update to the HDHRPrime device (CableLabs requirement). That's been the source of some problems. It's the reason I've had to stick to using one particular old version of their software.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#316
|
|||
|
|||
The simplest option is to make the new code”s “enable” button delete the existing service and install its own and make the “disable” button delete the service. If all versions use “SageTV” as the service name, any version could work with any other, including legacy ones.
If new SageTV is installed over old, it will delete and replace the service. If the new service is shut down (deleted) before installing or repairing older V9, it will install fine. One more thing you can test: Install old V9, delete the service registry keys, then run its control app and choose “enable.” I think it will recreate the entries based upon the ‘CreateService’ documentation. Is it possible the installer only added them because Ken “diff’ed” the registry to see what keys were needed. If the test works then even switching back to and old version alongside a new one will work if the new one deletes itself. |
#317
|
|||
|
|||
SageTVServiceControl doesn't make any changes to the registry. It fails with "The system cannot find the file specified" if the ...services\SageTV key is missing or the ImagePath value doesn't point to an executable.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#318
|
|||
|
|||
Quote:
|
#319
|
|||
|
|||
The installer actually creates the service...not just the registry entries. It also sets permissions and firewall entries for the service.
We can change that but that's what it does now. k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#320
|
|||
|
|||
Quote:
Gary |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windows Installer | jusjoken | SageTV Downloads & Instructions | 606 | 02-25-2022 02:33 PM |
Windows Installer Update? | JrClocker | SageTV Github Development | 2 | 07-02-2016 08:48 PM |
Does Windows Installer work on WHS | emotionnotion | SageTV Github Development | 7 | 05-20-2016 07:55 AM |
problems with windows installer | Galaxysurfer | SageTV Github Development | 2 | 04-15-2016 05:41 AM |
Any news on the Windows installer? | Damstas | SageTV Github Development | 2 | 09-03-2015 10:09 AM |