NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
1 2 3 4 5 … 37 Next »
ShareHelper utility

 
  • 0 Vote(s) - 0 Average
ShareHelper utility
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#1
2009-08-08, 03:57 AM (This post was last modified: 2015-07-05, 11:24 PM by mvallevand.)
Because of the regular problems some user have had configuring GB-PVR to connect to remote shares I have written a small Windows service ShareHelper which is designed load the shares in the Local System account. It is based on the idea of the utility UseShare which I found it a little confusing to install, hopefully this will be simpler by being more integrated with GB-PVR and NPVR.

The configuration is done in a file ShareHelper.xml in the GB-PVR Programs folder or the NPVR Data Folder (with config.xml). The connection can be made using an optional drive letter, and it accepts either hostname or IP notation depending on what you prefer. I have found if you use a drive letter that "letter" is available to other sessions as well, but they cannot be deleted. I think the XML is self-explanatory but if you have questions ask.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add drive="z:" share="\\myNAS\Videos" username="username" password="myPwd"/>
        <add drive="y:" share="\\myNAS\Public" username="" password=""/>
        <add share="\\SMP8634-\share" username="A110\nmt" password="1234"/>                
        <add share="\\192.168.10\share" username="nmt" password="1234"/>                        
       </appSettings>
</configuration>

Do not use a letter to map the NMT, mvpmcx2 will automatically detect that a file is local and play it without streaming if the IP or hostname match.

1. Usage (as an Administrator)


1. Download and extract
a. Sharehelper1.exe file to your GB-PVR Program folder
b. Sharehelper2.exe file to your N-PVR Program folder
2. Edit ShareHelper.xml to match your requirements
3. Install the program by typing
ShareHelper1 /i or ShareHelper2 /i
4. Update config.xml with your settings for your shares
5. Start the services from services.msc or with net start ShareHelper, the service is set to automatically start when you start your PC.

Troubleshooting

- check the syntax of your xml.
- ShareHelper.log files are stored in the GBPVR or NPVR log folder
- This is my first C# program and my first Windows Service so provide as much information as you can.
- This may be installed in a future version of NMTInstall.
- If you don't use the Local System Account for the GB-PVR or NPVR Recording service, use the same account with UseShare. You might use this to logon to an NMT share.

Uninstall

- to uninstall, stop the service and run

ShareHelper1 /u or ShareHelper2 /u

Download from the wiki

http://www.nextpvr.com/nwiki/pmwiki.php?...Helper2.7z

Martin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2009-08-08, 04:57 AM
seriously, your first C# program? Big Grin wow...
yea, i was surprised they never fixed/updated the useshare program to correct the obvious install issues..so this definitely fills a need...

i use a username to log in gbpvr rec service so don't seem to have any issues anymore, but it took me quite a while to figure it all out...
[which doesn't work if you use certain ir blasters,have to use 'interact w/desktop' w/local service logon] but i got around that too..Smile [net2hipsend]

every little bit helps when it comes to the install tho..so many variables, this should help several users and make things generally easier,as i know that's one of the most asked questions..[client share access]

nice work! Wink
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#3
2009-08-08, 05:48 AM
Thanks, I'll consider it a success, if it takes less to support then the Recording Service. Here's hoping.

I'm old school CICS, COBOL, PL/1, APL, Assembler ADA, Prolog (not Borland), C, C++, and some dabbling in VB and Foxpro/Clipper. Young guys get all the fun.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2009-08-29, 03:21 PM
FYI.....I have updated the EWA Wiki to point here for NAS setup with instructions to post any issues in this thread.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
solariv
Offline

Junior Member

Posts: 25
Threads: 0
Joined: Nov 2005
#5
2009-10-03, 12:46 AM
Hi,

I'm trying to install the service but it does not work on windows 7.

Here is the install log:

Installation de l'assembly 'C:\Program Files\devnz\GBPVR\ShareHelper1.exe'.
Les paramètres affectés sont :
logtoconsole =
assemblypath = C:\Program Files\devnz\GBPVR\ShareHelper1.exe
logfile = C:\Program Files\devnz\GBPVR\ShareHelper1.InstallLog
Installation du service ShareHelper en cours...
Le service ShareHelper a été installé avec succès.
Création d'une source EventLog ShareHelper dans le journal Application...
Restauration de l'assembly 'C:\Program Files\devnz\GBPVR\ShareHelper1.exe'.
Les paramètres affectés sont :
logtoconsole =
assemblypath = C:\Program Files\devnz\GBPVR\ShareHelper1.exe
logfile = C:\Program Files\devnz\GBPVR\ShareHelper1.InstallLog
Restauration de l'état précédent du journal des événements pour la source ShareHelper.
Le service ShareHelper est en cours de suppression du système...
Le service ShareHelper a été retiré avec succès du système.

It worked on my Vista but not on Windows 7.

Do you have an idea ?

thanks

Eric
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#6
2009-10-03, 01:02 AM (This post was last modified: 2009-10-03, 03:56 AM by mvallevand.)
Are your trying Win 7 64 bit peut-être If so I am guessing there might be a problem because I didn't account for (x86) nnaming.

Edit: I don't have 64bit Windows but I made one change for Wow6432 that was a problem (I didn't know enough c# when I wrote this originally) If you are running 64 bit let me know if the attached file helps.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#7
2009-10-03, 03:17 PM
mvallevand Wrote:Are your trying Win 7 64 bit peut-être If so I am guessing there might be a problem because I didn't account for (x86) nnaming.

Edit: I don't have 64bit Windows but I made one change for Wow6432 that was a problem (I didn't know enough c# when I wrote this originally) If you are running 64 bit let me know if the attached file helps.

Martin

Just setup a Windows 7 x64 VM under VMWare Server 2.0 (free)and tried ShareHelper.....not sure if it working correctly....

From the install log:
Code:
Installing assembly 'C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe'.
Affected parameters are:
   assemblypath = C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe
   logfile = C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.InstallLog
   logtoconsole =
Installing service ShareHelper...
Service ShareHelper has been successfully installed.
Creating EventLog source ShareHelper in log Application...
Committing assembly 'C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe'.
Affected parameters are:
   assemblypath = C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe
   logfile = C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.InstallLog
   logtoconsole =

From installutil log:
Code:
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe assembly's progress.
The file is located at C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.exe assembly's progress.
The file is located at C:\Program Files (x86)\devnz\GBPVR\ShareHelper1.InstallLog.

The Commit phase completed successfully.

The transacted install has completed.

I am seeing nothing in the Application Event logs.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#8
2009-10-03, 03:34 PM
Thanks UJB am I using the proper registry key?

HKLM\SOFTWARE\Wow6432Node\devnz\

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#9
2009-10-03, 03:35 PM
mvallevand Wrote:Thanks UJB am I using the proper registry key?

HKLM\SOFTWARE\Wow6432Node\devnz\

Martin

Ohhh....I have not yet installed GBPVR......do I need to do that first? :confused:

I just created the directory c:\program files (x86)\devnz\GBPVR and put sharehelper and the config in that directory
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#10
2009-10-03, 03:40 PM (This post was last modified: 2009-10-03, 03:47 PM by mvallevand.)
Sort of. The ShareHelper service locates the XML file and creates logs relative to the GBPVR InstallDir key which I think is the problem I corrected, although I don't even know if solariv's problems is even related to 64bit.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): 1 2 3 4 5 … 8 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode