2014-08-26, 19:26
I am attempting to create an executable version of XBMC on Windows 7 for the sake of having my own version of XBMC with all my settings, skins, etc. I know that I can simply copy/paste "C:\Users\Username\AppData\Roaming\XBMC" contents over a fresh install of XBMC to accomplish the same thing, but that just isn't fun (and I want to have a file I can just give to my less tech savvy friends). I am attempting two ways of going about accomplishing this goal:
1. Edit the latest XBMC setup executable with a program like Resource Hacker. The problem here, is I'm not familiar with this program and don't really know how to use it properly or in the way I want (replacing the /Roaming/XBMC folder with my own).
2. Create an executable package containing both XBMC and a batch script to overwrite the "C:\Users\Username\AppData\Roaming\XBMC" with my own pre-configured folder. The problem I'm running into here is I'm not sure how I would write the script to overwrite the contents of "C:\Users\Username\AppData\Roaming\XBMC" with the pre-configured XBMC folder if I don't know what the original location of the pre-configured XBMC folder will be? Right now (as a test) I have a batch file with this:
xcopy /-y /E "C:\Users\Username\AppData\Roaming\XBMC" "C:\Users\Username\Documents\New Location"
pause
The batch script works in this test setup, but now I want the destination to be "C:\Users\Username\AppData\Roaming\XBMC" (no problem here, just change the destination) and the original directory to be... I don't know! If I package this all together into one installer (planning on using "iexpress" for this), what directory/location would the pre-configured XBMC folder be in?
Any help is greatly appreciated, I'm quite new to batch files and creating/editing executables. Also if you think I'm going about this in completely the wrong way, let me know.
Cheers,
thebro
1. Edit the latest XBMC setup executable with a program like Resource Hacker. The problem here, is I'm not familiar with this program and don't really know how to use it properly or in the way I want (replacing the /Roaming/XBMC folder with my own).
2. Create an executable package containing both XBMC and a batch script to overwrite the "C:\Users\Username\AppData\Roaming\XBMC" with my own pre-configured folder. The problem I'm running into here is I'm not sure how I would write the script to overwrite the contents of "C:\Users\Username\AppData\Roaming\XBMC" with the pre-configured XBMC folder if I don't know what the original location of the pre-configured XBMC folder will be? Right now (as a test) I have a batch file with this:
xcopy /-y /E "C:\Users\Username\AppData\Roaming\XBMC" "C:\Users\Username\Documents\New Location"
pause
The batch script works in this test setup, but now I want the destination to be "C:\Users\Username\AppData\Roaming\XBMC" (no problem here, just change the destination) and the original directory to be... I don't know! If I package this all together into one installer (planning on using "iexpress" for this), what directory/location would the pre-configured XBMC folder be in?
Any help is greatly appreciated, I'm quite new to batch files and creating/editing executables. Also if you think I'm going about this in completely the wrong way, let me know.
Cheers,
thebro