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.
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
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