2009-04-11, 22:42
SickIcarus Wrote:i just replied to your reply - you had a great idea!
to add to it:
i don't know how difficult it would be to implement, but if it could be done maybe it
would be possible to auto-detect the presence of the -p switch?
maybe have the updater check for the presence of one of the subfolders of the
userdata folder in the xbmc installation path.
for instance, when you first launch the updater, you have to point it to your xbmc
installation folder - mine is "X:\Program Files (x86)\XBMC"
if the -p flag is not set, my userdata information resides in "C:\Users\Media
Center\AppData\Roaming\XBMC\userdata"
as such, a userdata folder exists in the main installation path - "X:\Program Files
(x86)\XBMC\userdata" - but since all the information is stored in appdata\roaming,
the userdata folder within the xbmc installation path does not include subfolders
such as cache, scripts, plugins, etc.
so if the updater checks the installation path's userdata folder and does not see
those subfolders, it knows the -p flag is not set. if it does see those fodlers, it
knows -p is set.
This is what i was thinking, xbmcupdate could look through your start menu, desktop and quick launch to see if it can find a shortcut for XBMC and use whatever parameter is being used in that shortcut.
another benefit that this provides is i could use that data to detect the installation path in the first place.