Windows 7 - Seamless XBMC startup?
#31
Hi, thanks for a nice guide, everything is working perfectly. I have a question though. When I have just XBMC.exe started up and explorer.exe is not, couldnt there be some problems with programs associated and dependable (idk if this is the right word, I mean programs and processes that can only function with explorer.exe) on explorer.exe, idk, drivers antivirus etc.? Or is this change just cosmetic and everything will work perfectly for example sound, network etc.?
Reply
#32
robbie thanks from ontario canada
Reply
#33
I tried this with Windows 7 Home Premium 32 bit and XBMC 10.1 for Windows and it works (at least on my system):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\Program Files\XBMC\XBMC.exe"

No additional configuration or software was required.

System: IBM Thinkcentre M52 / Microsoft MCE remote.
Reply
#34
yggdrasil Wrote:I tried this with Windows 7 Home Premium 32 bit and XBMC 10.1 for Windows and it works (at least on my system):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\Program Files\XBMC\XBMC.exe"

No additional configuration or software was required.

System: IBM Thinkcentre M52 / Microsoft MCE remote.

Thank !! Work perfectly with Windows 7 Home Premium 64 bit
Reply
#35
yggdrasil Wrote:I tried this with Windows 7 Home Premium 32 bit and XBMC 10.1 for Windows and it works (at least on my system):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\Program Files\XBMC\XBMC.exe"

No additional configuration or software was required.

So this just boots straight to XBMC full screen without seeing desktop? i.e. BIOS -> Starting Windows 7 splash screen -> Logging on splash -> XBMC?
Reply
#36
Hey all, i currently have my laptop running XBMC and everything is running great, using my Iphone 4 as a remote, only problem so far is i have to use another programe to wake the machine, but my main issue is after i return from putting the machine to sleep, i get a black screen?, i have to reboot, or log in with VNC and as soon as i log in the XBMC screen appears, how do i stop this.

Currently just booting with shortcut.
Reply
#37
phez Wrote:So this just boots straight to XBMC full screen without seeing desktop? i.e. BIOS -> Starting Windows 7 splash screen -> Logging on splash -> XBMC?

I'm also curious about this, as well as the ability to launch apps like a browser, and Emulators from XBMC using the Launcher app if I use this method. Any idea if it will work?
XBMCbuntu {Frodo} - Ubuntu 12.04 (Main):
Intel Q6600 [2.4GHz Quad Core], 4GB DDR3, nVidia GT-210, Antec Fusion Case (iMon LCD), PS3 BD Remote

XBMC Live {Frodo} - Ubuntu 10.04 (Bedroom): Intel Atom D510 [1.66GHz Dual Core], ION Graphics, 2GB DDR2, PS3 BD Remote
Reply
#38
solved
Reply
#39
I personally run a .cmd file of .bat file which starts xbmc and then explorer.exe. This way, xbmc starts directly after windows loads and when I exit xbmc I still get my explorer. This is the easiest way without making use of extra software like eventghost.
CoreElec on a tn95 (s905x). Onkyo NR-656. Canton Movie CD-1000. LG 55B6V.

If it ain't broke: break it, fix it, repeat
Reply
#40
For reasons beyond my understand the xbmc -fs method for startup won't work. It does open XBMC fullscreen then disapears to the taskbar below. I'm usin Windows 7 ultimate.

Tried using Silentlaunch but tells me I do not have a .cfg file "ERROR: No config file was found" (created using notepad) but it is there, saved on the root of my C drive.

Any ideas what could be wrong?
Reply
#41
CMitch Wrote:For reasons beyond my understand the xbmc -fs method for startup won't work. It does open XBMC fullscreen then disapears to the taskbar below. I'm usin Windows 7 ultimate.

Tried using Silentlaunch but tells me I do not have a .cfg file "ERROR: No config file was found" (created using notepad) but it is there, saved on the root of my C drive.

Any ideas what could be wrong?

Something else is stealing focus from xbmc that loads after xbmc has started there are a million posts on this

http://forum.xbmc.org/search.php?searchid=9533481
Current HTPC Lian-Li PC-C37 • Gigabyte GA-E7AUM-DS2H • Intel C2D E8400 E0 Stepping • OCZ Vertex SSD • 4GB Corsair TwinX XMS2 DDR2 • Corsair HX650W Modular PSU (Free Upgrade) • LG CH08LS10 Blu-Ray Drive • Scythe Big Shuriken • Acousti DustPROOF 70mm Fan
Reply
#42
CMitch Wrote:For reasons beyond my understand the xbmc -fs method for startup won't work. It does open XBMC fullscreen then disapears to the taskbar below. I'm usin Windows 7 ultimate.

The -fs command line argument was removed a few versions ago. You can force XBMC to start fullscreen by creating an advancedsettings.xml file. See http://wiki.xbmc.org/index.php?title=Adv...lscreen.3E for details.

By default XBMC uses a DirectX mode that is fast but that won't share the display with any other app. If another app gets the focus it forces XBMC to minimise, which sounds like what you're seeing. If you're running XBMC at startup try adding the command line argument -d 10 to delay launching by 10 seconds (you can increase or decrease the number 10 as appropriate). This gives a chance for other apps to finish starting before XBMC opens. The culprit is almost certainly one of the apps showing in the system tray.

JR
Reply
#43
yggdrasil Wrote:I tried this with Windows 7 Home Premium 32 bit and XBMC 10.1 for Windows and it works (at least on my system):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\Program Files\XBMC\XBMC.exe"

No additional configuration or software was required.

System: IBM Thinkcentre M52 / Microsoft MCE remote.

Hi all - a few questions:
1) if you exit XBMC, can you re-gain windows via (w)+R Explorer.exe
2) do any shared drives set up in Windows still work
3) and will I still have remote access to them ? (my XBMC box acts as a NAS for me.
4) Does Suspend and Hibernate still work ?

Thanks !
Reply
#44
Spreyton22 Wrote:Hi all - a few questions:
1) if you exit XBMC, can you re-gain windows via (w)+R Explorer.exe
2) do any shared drives set up in Windows still work
3) and will I still have remote access to them ? (my XBMC box acts as a NAS for me.
4) Does Suspend and Hibernate still work ?

Thanks !

1. No. You'll have to use the taskmanager to start the explorer.
2. Yes
3. Yes
4. Yes

Personally I run this .cmd file located in my xbmc folder as a shell, when I exit xbmc it starts my explorer automatically:

Code:
@ECHO OFF

SET SourceDir=%~dp0

PUSHD "%SourceDir%"

start /max wscript.exe xbmc.vbs

and xbmc.vbs contains:

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
Documents = wshShell.SpecialFolders("MyDocuments")

Return = WshShell.Run(chr(34) & Documents & "\XBMC\XBMC.exe" & chr(34) & " -p -fs", 3 ,true)
Return = WshShell.Run("explorer.exe", 3, true)

I run xbmc in portable mode so I've placed it in my documents because of UAC.
CoreElec on a tn95 (s905x). Onkyo NR-656. Canton Movie CD-1000. LG 55B6V.

If it ain't broke: break it, fix it, repeat
Reply
#45
This is my frist script that I have been tweaking and changing a lot but take it make fun of it or improve it.

Code:
@echo off
TITLE Loading Media Center System

REM - Remove any existing network shares that may conflict with startup process.

start /min /wait cmd /C net use x: /delete:yes
start /min /wait cmd /C net use y: /delete:yes
start /min /wait cmd /C net use z: /delete:yes

SET TV_SERIES="\\LivingRoom-PC\TV Series"
SET MOVIES="\\LivingRoom-PC\Movies"
SET DROPBOX="\\LIVINGROOM-PC\Dropbox"
SET DRIVE_LETTER=""

cls
GOTO BEGIN

:BEGIN
CLS
echo ###########################################################
echo #####          MEDIA CENTER STARTUP PROCESS           #####
echo ###########################################################
echo.
echo.
echo Would you like to override the default startup process and
echo load Windows shell instead? (Waiting 5 Seconds)
echo.
echo      Press "Y" to override and load Windows normally.
echo                             Or
echo Press "N" to continue the normal startup process. (Default)


choice /T 5 /C YN /D N /N

if ERRORLEVEL ==2 goto LoadXBMC
if ERRORLEVEL ==1 goto LoadWINDOWS








:LoadXBMC
ECHO.
ECHO OVERDRIVE: NOT DETECTED.
ECHO Stopping all media center process already running...

REM - Kill any open tasks that may not have closed or are running that shouldn't be.
start /wait taskkill /IM "XBMC.exe"
start /wait taskkill /IM "java.exe"
start /wait taskkill /IM "PS3 BluMote.exe"

REM - Load blutooth remote control software.
ECHO Loading PS3 BluMote
start "" /D "C:\Program Files (x86)\PS3 BluMote\" "C:\Program Files (x86)\PS3 BluMote\PS3 BluMote.exe"

choice /d y /t 3 > nul

REM - Connect to network shares and confirm that they are working and can be written/read from.
echo Connecting to Network Shares...

start /min /wait cmd /C net use x: %DROPBOX%
set DRIVE_LETTER=%DROPBOX%
IF NOT EXIST X:\NUL goto NETWORK_NOT_EXIST
MD X:\MYTEMP
IF NOT EXIST X:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD X:\MYTEMP
echo Connected to Dropbox.


start /min /wait cmd /C net use y: %TV_SERIES%
set DRIVE_LETTER=%TV_SERIES%
IF NOT EXIST Y:\NUL goto NETWORK_NOT_EXIST
MD Y:\MYTEMP
IF NOT EXIST Y:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD Y:\MYTEMP
echo Connected to TV Series.


start /min /wait cmd /C net use Z: %MOVIES%
set DRIVE_LETTER=%MOVIES%
IF NOT EXIST Z:\NUL goto NETWORK_NOT_EXIST
MD Z:\MYTEMP
IF NOT EXIST Z:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD Z:\MYTEMP
echo Connected to Movies.

REM - Start XBMC then wait for it to fully load and run MyLibrary update script.
echo Starting XBMC...
start "Starting XBMC" "C:\Program Files (x86)\XBMC\XBMC.exe"


echo Waiting 25 seconds so XBMC can fully load.
choice /d y /t 25 > nul
echo Done waiting...

GOTO MyLibraryRefresh









:LoadXBMC_RETRY
REM - Error loading XBMC and or a startup process. Quit all previous tasks and reload again.
ECHO.
ECHO Stopping any XBMC Startup Programs...
start /wait taskkill /IM "XBMC.exe"
start /wait taskkill /IM "java.exe"
start /wait taskkill /IM "PS3 BluMote.exe"
ECHO.
ECHO Loading XBMC Media Center...

choice /d y /t 5 > nul

echo Connecting to Network Shares...

start /min /wait cmd /C net use x: %DROPBOX%
set DRIVE_LETTER=%DROPBOX%
IF NOT EXIST X:\NUL goto NETWORK_NOT_EXIST
MD X:\MYTEMP
IF NOT EXIST X:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD X:\MYTEMP
echo Connected to Dropbox.


start /min /wait cmd /C net use y: %TV_SERIES%
set DRIVE_LETTER=%TV_SERIES%
IF NOT EXIST Y:\NUL goto NETWORK_NOT_EXIST
MD Y:\MYTEMP
IF NOT EXIST Y:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD Y:\MYTEMP
echo Connected to TV Series.


start /min /wait cmd /C net use Z: %MOVIES%
set DRIVE_LETTER=%MOVIES%
IF NOT EXIST Z:\NUL goto NETWORK_NOT_EXIST
MD Z:\MYTEMP
IF NOT EXIST Z:\MYTEMP\NUL GOTO NETWORK_NOT_READY
RD Z:\MYTEMP
echo Connected to Movies.


echo Starting XBMC...
start "Starting XBMC" "C:\Program Files (x86)\XBMC\XBMC.exe"


echo Waiting 25 seconds so XBMC can fully load.
choice /d y /t 25 > nul
echo Done waiting...

GOTO MyLibraryRefresh









:MyLibraryRefresh
REM - Run MyLibrary script to check for new online content to download/scrape from.
echo.
echo Starting XBMC MyLibrary Refresh.
start /wait /min "XBMC MyLibrary" "C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar "C:\Users\LivingRoom\AppData\Roaming\XBMC\MyLibrary\dist\XBMC.MyLibrary.jar"
echo MyLibrary update complete.

GOTO END









:LoadWINDOWS
REM - Change default shell from startup script then load explorer.
echo.
ECHO OVERDRIVE: DETECTED.
ECHO Loading Windows...
choice /d y /t 3 > nul
REGEDIT.EXE  /S  "F:\Media Center Setup Files\explorer.REG"
start explorer.exe

GOTO END







:NETWORK_NOT_EXIST
echo.
ECHO ERROR!
ECHO Unable to establish network connection %DRIVE_LETTER%.
echo.
echo.
echo Retrying XBMC startup sequence in 30 seconds...
start /min /wait cmd /C net use x: /delete:yes
start /min /wait cmd /C net use y: /delete:yes
start /min /wait cmd /C net use z: /delete:yes
choice /d y /t 30 > nul
GOTO LoadXBMC_RETRY







:NETWORK_NOT_READY
echo.
ECHO ERROR!
ECHO Unable to write test directory %DRIVE_LETTER%.
echo.
echo.
echo Retrying XBMC startup sequence in 30 seconds...
start /min /wait cmd /C net use x: /delete:yes
start /min /wait cmd /C net use y: /delete:yes
start /min /wait cmd /C net use z: /delete:yes
choice /d y /t 30 > nul
GOTO LoadXBMC_RETRY





:END

This above code is a loader that I use to replace the explorer shell then start XBMC.
Reply

Logout Mark Read Team Forum Stats Members Help
Windows 7 - Seamless XBMC startup?1