HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

6
From XBMC If you are going to use XBMC for Windows as your primary media center, you probably want your HTPC to boot directly to XBMC with as little distraction as possible. The more your XBMC Media Center functions like an "appliance", the more seamless your home theater experience will be. One of the most effective ways to accomplish this is to replace the default Windows "shell", which is "explorer.exe", with a program that will directly launch XBMC in full-screen. A problem with this approach is that the program that launches the shell doesn't allow you to pass parameters (such as the -fs parameter to make XBMC full-screen). In addition, many people need to load other special software, such as audio mixers, remote control software, or EventGhost. This guide will help overcome these problems. Note that XBMC Live may be a better solution for creating a home theater "appliance" and can be tested without modifying your computer. 1 Using EventGhost Method 1.1 Setting up EventGhost 1.2 Preparing your Desktop Background (optional) 1.3 Set Windows to AutoLogin 1.4 Set your "Shell" to EventGhost 1.5 Notes on EventGhost Method 2 Using SilentLaunch Method 2.1 Troubleshooting SilentLaunch 2.2 SilentLaunch Source Code 3 For Windows 7 and optional EventGhost : Using Windows 7 Group Policy Object Editor 4 See Also The program "EventGhost" is a very powerful way to manage remote controls, auto-starting of programs, and other macros. It supports many common remotes out of the box, such as the Microsoft MCE remote, several X10 remotes, the Sony PS3 Bluetooth remote, the ATI Remote Wonder II, USB-UIRT, and the original Xbox DVD remote. You can use EventGhost to load the plugin for your favorite remote, load the XBMC EventClient plugin, then load XBMC itself. HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir... 1 of 6 2/18/2012 12:32 AM

Transcript of HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

Page 1: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

From XBMC

If you are going to use XBMC for Windows as your primary media center, you probably want your HTPC toboot directly to XBMC with as little distraction as possible. The more your XBMC Media Center functions likean "appliance", the more seamless your home theater experience will be. One of the most effective ways toaccomplish this is to replace the default Windows "shell", which is "explorer.exe", with a program that willdirectly launch XBMC in full-screen. A problem with this approach is that the program that launches the shelldoesn't allow you to pass parameters (such as the -fs parameter to make XBMC full-screen). In addition, manypeople need to load other special software, such as audio mixers, remote control software, or EventGhost.

This guide will help overcome these problems.

Note that XBMC Live may be a better solution for creating a home theater "appliance" and can be testedwithout modifying your computer.

1 Using EventGhost Method1.1 Setting up EventGhost1.2 Preparing your Desktop Background (optional)1.3 Set Windows to AutoLogin1.4 Set your "Shell" to EventGhost1.5 Notes on EventGhost Method

2 Using SilentLaunch Method2.1 Troubleshooting SilentLaunch2.2 SilentLaunch Source Code

3 For Windows 7 and optional EventGhost : Using Windows 7 Group Policy Object Editor4 See Also

The program "EventGhost" is a very powerful way to manage remote controls, auto-starting of programs, andother macros.

It supports many common remotes out of the box, such as the Microsoft MCE remote, several X10 remotes, theSony PS3 Bluetooth remote, the ATI Remote Wonder II, USB-UIRT, and the original Xbox DVD remote.

You can use EventGhost to load the plugin for your favorite remote, load the XBMC EventClient plugin, thenload XBMC itself.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

1 of 6 2/18/2012 12:32 AM

Page 2: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

Setting up EventGhost

INSTALLING EVENTGHOST

Download and install the latest EventGhost Beta. (http://www.eventghost.org/downloads/)1.Right-click and disable any plugins in the right-hand pane that you aren't using (Winamp, etc.)2.Install the plugin for the remote receiver you wish to use

(click "add plugin" and select your Remote from the list of "Remote Receivers")3.

Install the XBMC EventClient plugin(click "add plugin" and select "XBMC" from the "Program Control" section.

4.

CONFIGURE YOUR REMOTE IN EVENTGHOST

Press a key on your remote that you would like to cause an action in XBMC.1.Drag the event that shows up in the left-hand pane of EventGhost to the XBMC action that you want inthe right-hand pane.

2.

Repeat for each button that you want to use with XBMC3.

SET XBMC TO AUTOSTART IN EVENTGHOST

Under "AutoStart" click "Add Action"1.Under "System", click "Start Application"

Filepath to executable should be: C:\Program Files\XBMC\XBMC.exe (unless you've changed it)

Command line options are: -fs -p (for full-screen, portable-mode)

Working Directory is: C:\Program Files\XBMC

2.

Add any other programs you want to start automatically in the same way.

Preparing your Desktop Background (optional)

You may safely ignore this section if you don't care what color your screen is when Windows boots up.

CHANGE YOUR DESKTOP BACKGROUND TO BLACK

right-click on your desktop, and click properties.1.click the "desktop" tab, and set background to "none"2.click the "appearance" tab, click "advanced", select the item "desktop" and set the color to black.3.

CHANGE YOUR LOGOFF SCREEN BACKGROUND TO BLACK

click "Start -> Run" and type "regedit"1.Navigate to the following key:

HKEY_USERS\.DEFAULT\ControlPanel\Colors

2.

In the right pane, double-click "Background"3.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

2 of 6 2/18/2012 12:32 AM

Page 3: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

In the Edit String dialog box, type "0 0 0" without the quotes ("0 0 0" is RGB for "Black")4.Click OK5.Close Regedit6.

Set Windows to AutoLogin

Click Start -> Run, and type:control userpasswords2

1.

Uncheck the "Users must enter a username and password to use this computer" check box.2.Click Apply.3.Enter the user name and password you want to be automatically logged-on, and then click OK.4.Click OK again and you're all done.5.

Note: This works in Windows XP/Vista/7

Set your "Shell" to EventGhost

click "Start -> Run" and type "regedit"1.Navigate to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

right-click on "Shell" and rename to "FakeShell" or something similar (so you can restore it later ifyou wish to)

1.

right-click in the right-hand pane and select New -> String Value2.name it "Shell"3.double-click Shell and paste the following value (with quotation marks):

"C:\Program Files\EventGhost\EventGhost.exe"4.

close regedit5.

2.

A shortcut to this step is to use InstantSheller (http://www.gameex.net/download/instantsheller.zip) and setthe "Application to shell" to "C:\Program Files\EventGhost\EventGhost.exe"

Notes on EventGhost Method

You can now restart your computer; it should appear to immediately run XBMC and nothing else.

If you need to run other programs, close or minimize XBMC and press <ctrl-shift-esc> to run the task manager.Go to File -> New Task (Run...) and type the name of what you want to run.

ie. cmd for the command promptregedit to undo the changes we made earlierfirefox to run firefoxexplorer to explore your computer (this won't bring up the start menu and taskbar)etc..

Download SilentLaunch (http://lars.werner.no/wp-content/uploads/2008/09/silentlaunch.zip) and extract1.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

3 of 6 2/18/2012 12:32 AM

Page 4: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

to C:\Create a text-file on C:\ named SilentLaunch.cfg2.Check the properties of your XBMC link and add the target information. For instance, the default is:

"C:\program files\XBMC\XBMC.exe"-fs -p

3.

Add any other programs that you want to autostart to the SilentLaunch.cfg file4.Start the SilentLaunch.exe and check if XBMC get started. (If not goto the end of the post)5.Download InstantSheller (http://www.gameex.net/download/instantsheller.zip) and set the "Application toshell" as C:\SilentLaunch.exe

6.

Troubleshooting SilentLaunch

If nothing happens or an error occurred

Start a command prompt: Start -> Run, entercmd.exe-> OK

1.

Typecd \

2.

TypeC:\SilentLaunch.exe -v

3.

...this will enable verbose output to the screen. Typical error: error 2 is file-not-found, check your path.

It is important to enclose the xbmc-path in quotation marks (") if it contains spaces. The verbose will tell youmore on what went wrong.

SilentLaunch Source Code

The source code & more information about the program can be found here http://lars.werner.no/?p=117

This method only works under the following versions of Windows 7:

EnterpriseProfessionalUltimate

This is because they contain the Group Policy Object Editor and all the other versions don't.It works under all versions of Windows Server 2008

1. Setting up your user account to log in automatically

Log in as administrator.1.Open the start menu, and type in the search box: netplwiz <ENTER>.2.Uncheck Users must enter a user name and password to use this computer and hit Apply.3.A window will pop up asking for the user name and password of the user account which should log in4.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

4 of 6 2/18/2012 12:32 AM

Page 5: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

automatically. Supply all the information and hit OK.

Next time you restart, the account selected in step 1 will log on automatically. Now you can setup this accountto use XBMC as shell instead of Explorer:If you want to use EventGhost then skip step 2.

2. Set XBMC as shell for a specific user account

Log in as administrator.1.Open the start menu, and type in the search box: mmc <ENTER>.2.Choose File -> Add/Remove Snap-in....3.Select Group Policy Object Editor and hit Add.4.In the wizard that pops up, hit Browse..., go to tab Users, select your user account (the one that you set upto log on automatically in step 1) and hit OK.

5.

Make sure that the checkbox in the wizard is Unchecked, and hit Finish.6.Hit OK in the Add/Remove Snap-ins window.7.In the User Configuration -> Administrative Templates -> System folder, open Custom User Interface.8.Select Enabled and enter the full path (including XBMC.exe and any switches that you may use) in theInterface file name textbox.

9.

Hit OK and reboot your system. It should now log in and start XBMC automatically without showing thestart menu and icons first

10.

3.Set EventGhost as shell for all users.First add XBMC in EventGhost as autostart :

Open EventGhost1.Under "AutoStart" click "Add Action"2.Under "System", click "Start Application"

Filepath to executable should be:C:\Program Files\XBMC\XBMC.exe(unless you've changed it)

Command line options are:-fs -p(for full-screen, portable-mode)

Working Directory is:C:\ProgramFiles\XBMC

3.

Add any other programs you want to start automatically in the same way.

Now set EventGhost as shell for all users.

Log in as administrator.1.Press Windows + R.2.Enter the following text and then press OK.

gpedit.msc3.

In the Window that pops-up go to : User Configuration -> Administrative Templates -> System .4.Now open Custom User Interface.5.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

5 of 6 2/18/2012 12:32 AM

Page 6: HOW-To_Make Windows Boot Directly to XBMC (as a Shell) - XBMC

Select Enabled and enter the full path to EventGhost in the Interface file name textbox.C:\Program Files\EventGhost\EventGhost.exe

6.

Hit OK and reboot your system. It should now log in and start XBMC automatically without showing thestart menu and icons first

7.

Community Forum discussion threads on the topic:

http://forum.xbmc.org/showthread.php?t=37492http://forum.xbmc.org/showthread.php?t=34325http://forum.xbmc.org/showthread.php?t=34966http://forum.xbmc.org/showthread.php?t=74125Run XBMC as a user and other Windows tips

Retrieved from "http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_directly_to_XBMC_(as_a_shell)"Categories: How-to | Windows

This page was last modified on 2 February 2012, at 20:13.This page has been accessed 145,970 times.Content is available under Attribution-Share Alike 3.0 Unported.

HOW-TO:Make Windows boot directly to XBMC (as a shell) - XBMC http://wiki.xbmc.org/index.php?title=HOW-TO:Make_Windows_boot_dir...

6 of 6 2/18/2012 12:32 AM