Setup v2.0 Runs At Each Startup

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
Oblias
New User
Posts: 5
Joined: Wed Apr 27, 2011 6:01 pm

Setup v2.0 Runs At Each Startup

Post by Oblias »

Hello all. I've used XMBC for about a year with no issues. I then upgraded to v2.0, on Win7 Ultimate X64.


Now, each time I start the computer, the Xmouse Setup v2.0 window opens on the desktop. I have already checked the settings for the only layer I use, and saved them, however, the setup window opens every time windows starts.

Is there an command line way that I can start the prorgam without setup running each time? Many thanks for a GREAT program, and for any help.

I run a Kensington Expert Mouse, if that makes a difference.....

OB
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

Are you saying the SETUP program runs? or the configuration (setup) window opens?

Have you got a shortcut to XMBC in your start-up group (one that the installer did not put them there).
XMBC gets run on startup by the service launcher. If you have any other shortcut/scheduled task to start XMBC then that will cause the setup window to open (just like if you manually run XMBC for a second time). This is intentional, but its not expected that XMBC will be run more than once at startup.

You can use something like MSConfig.exe so list your startup programs (it goes in to all the registry locations and start menu locations). The XMBC log file might give some idea too!


Edit the commandline arguments are fairly extensive,
XMouseButtonControl.exe /? should list them for you.

Thanks.
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

Here is the commandline.
cmdline.png
There is a hidden option to /svclaunch which should prevent the setup window opening (The intention is this is called by the service, but there is nothing to stop you doing it manually - although if you are doing it manually, that is probably why its opening setup - cos XMBC is already running from the service).

Thanks,
Phil
You do not have the required permissions to view the files attached to this post.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Oblias
New User
Posts: 5
Joined: Wed Apr 27, 2011 6:01 pm

Re: Setup v2.0 Runs At Each Startup

Post by Oblias »

phil wrote:Are you saying the SETUP program runs? or the configuration (setup) window opens?

Have you got a shortcut to XMBC in your start-up group (one that the installer did not put them there).
XMBC gets run on startup by the service launcher. If you have any other shortcut/scheduled task to start XMBC then that will cause the setup window to open (just like if you manually run XMBC for a second time). This is intentional, but its not expected that XMBC will be run more than once at startup.

You can use something like MSConfig.exe so list your startup programs (it goes in to all the registry locations and start menu locations). The XMBC log file might give some idea too!


Edit the commandline arguments are fairly extensive,
XMouseButtonControl.exe /? should list them for you.

Thanks.
Phil
Hello Phil, and thanks for the FAST reply. I'm not sure if I'm following board protocol by replying after your reply quote, so if I'm doing this wrong, just let me know.

Anyways, there is no icon in the Windows Startup Folder. As you say, XMBC gets started as a service. I've used Chameleon Startup Manager Pro to see what was going on at windows startup. As far as I can see, XMBC starts as a service, just as you intended it to do. I've used Chameleon to even make it delay as much as 20 secs after windows is finished starting, but the same thing always happens.

A window opens that has as it's title as X-Mouse Button Control - Setup v2.0. This window lists applications on the left, and the different layers on the right. At the bottom of this window are the buttons for Settings, About, Apply, and finally on the extreme right, Close.

You are also correct in that it is the same window that opens if I remove the service command to start, and I just start it manually after windows startup. So, the same happens whether started as a service, or if I manually start it.

If I knew how to post a photo, I would, but I think you know what I'm speaking of already.

I would like to leave it as a service, if possible, without that durn window opening each time, and then I have to click on the Close button.

What do you suggest at this point? Again, thank you for your time and efforts on this!

OB
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

OK well firstly, you dont need to quote the message in the reply but I don t really mind if you want to do that :)

When XMBC is launched from the service, it gives it the commandline /svclaunch which should stop it from opening the setup window - therefore it sounds like something else is running it for a second time. Maybe the chamelion thing you mention (Im not familiar with that).

Can you send me the log file (by email to phil at highrez.co.uk or by PM here) or paste a snippet of the last couple of runs here, because that should list all the launch attempts and command lines used. Thats the sure fire way to see how many times it is being run. You can open the log file by right clicking the XMBC icon in the system tray.

Short of a problem there, the serivce launcher also logs to the windows event log, so it might be worth having a look in the windows event log (application or system) for any events from XMBC and see if there are warnings or errors there.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Oblias
New User
Posts: 5
Joined: Wed Apr 27, 2011 6:01 pm

Re: Setup v2.0 Runs At Each Startup

Post by Oblias »

Here is the log file info from this morning. I first started windows normally, without disabling the service for XMBC . I then removed the command for the service to start, using Chameleon Startup Manager. I Shutdown windows, then started windows again. I then started XMBC manually by clicking a shortcut I put on the desktop, and the same window appeared. Anyways, here is what the log file has:




26-04-2011 11:23:05> X-Mouse Button Control v2.0 (x64) Startup. Commandline '/notportable /svclaunch'
26-04-2011 11:23:05> Running on Microsoft Windows 7 Ultimate Edition (build 7600), 64-bit, Hook Timeout: 5000 ms
26-04-2011 11:23:05> Hooking the mouse...
26-04-2011 11:23:06> Unable to create system tray icon (error 0).
26-04-2011 11:23:10> OnTaskBarCreated: Recreating systray icon
26-04-2011 11:23:11> Unable to remove system tray icon (error 1460).
26-04-2011 11:23:12> Display resolution changed (1920, 1200)

********************************************************************************
26-04-2011 11:23:23> X-Mouse Button Control v2.0 (x64) Startup. Commandline ''
26-04-2011 11:23:23> Startup. Sending commandline to existing instance of X-Mouse Button Control
26-04-2011 11:23:23> Finished communicating with first X-Mouse Button Control instance. Exiting.
26-04-2011 11:23:23> Received message with data 0x80000005 from another instance of X-Mouse Button Control.
26-04-2011 11:23:23> Showing the taskbar icon.
26-04-2011 11:23:23> CMyMessageWnd::OnSetup - Clear hotkeys...
26-04-2011 11:23:24> CMyMessageWnd::OnSetup - Opening setup dialog.

26-04-2011 11:30:21> CMyMessageWnd::OnSetup - Setup dialog closed.

********************************************************************************
27-04-2011 11:36:11> X-Mouse Button Control v2.0 (x64) Startup. Commandline '/notportable /svclaunch'
27-04-2011 11:36:11> Running on Microsoft Windows 7 Ultimate Edition (build 7600), 64-bit, Hook Timeout: 5000 ms
27-04-2011 11:36:11> Hooking the mouse...
27-04-2011 11:36:16> Display resolution changed (1920, 1200)

********************************************************************************
27-04-2011 11:36:29> X-Mouse Button Control v2.0 (x64) Startup. Commandline ''
27-04-2011 11:36:29> Startup. Sending commandline to existing instance of X-Mouse Button Control
27-04-2011 11:36:29> Received message with data 0x80000005 from another instance of X-Mouse Button Control.
27-04-2011 11:36:29> Finished communicating with first X-Mouse Button Control instance. Exiting.
27-04-2011 11:36:29> Showing the taskbar icon.
27-04-2011 11:36:29> CMyMessageWnd::OnSetup - Clear hotkeys...
27-04-2011 11:36:30> CMyMessageWnd::OnSetup - Opening setup dialog.

27-04-2011 11:41:07> CMyMessageWnd::OnSetup - Setup dialog closed.
27-04-2011 11:41:12> Exit requested by the user.


********************************************************************************
27-04-2011 11:46:10> X-Mouse Button Control v2.0 (x64) Startup. Commandline '/notportable /svclaunch'
27-04-2011 11:46:10> Running on Microsoft Windows 7 Ultimate Edition (build 7600), 64-bit, Hook Timeout: 5000 ms
27-04-2011 11:46:10> Hooking the mouse...
27-04-2011 11:46:10> Unable to create system tray icon (error 0).
27-04-2011 11:46:14> OnTaskBarCreated: Recreating systray icon
27-04-2011 11:46:14> Unable to remove system tray icon (error 1460).
27-04-2011 11:46:15> Display resolution changed (1920, 1200)

********************************************************************************
27-04-2011 11:50:10> X-Mouse Button Control v2.0 (x64) Startup. Commandline ''
27-04-2011 11:50:10> Startup. Sending commandline to existing instance of X-Mouse Button Control
27-04-2011 11:50:10> Finished communicating with first X-Mouse Button Control instance. Exiting.
27-04-2011 11:50:10> Received message with data 0x80000005 from another instance of X-Mouse Button Control.
27-04-2011 11:50:10> Showing the taskbar icon.
27-04-2011 11:50:10> CMyMessageWnd::OnSetup - Clear hotkeys...
27-04-2011 11:50:10> CMyMessageWnd::OnSetup - Opening setup dialog.

27-04-2011 11:50:44> CMyMessageWnd::OnSetup - Setup dialog closed.
27-04-2011 11:50:57> CMyMessageWnd::OnSetup - Clear hotkeys...
27-04-2011 11:50:57> CMyMessageWnd::OnSetup - Opening setup dialog.
27-04-2011 11:51:39> CMyMessageWnd::OnSetup - Setup dialog closed.
27-04-2011 13:19:25> CMyMessageWnd::OnSetup - Clear hotkeys...
27-04-2011 13:19:25> CMyMessageWnd::OnSetup - Opening setup dialog.
27-04-2011 13:22:08> CMyMessageWnd::OnSetup - Setup dialog closed.



Hope this helps!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

Well from that I can see that XMBC is already running and then something on your system is trying to run it again, with no command line... Look for "Startup. Sending commandline to existing instance of X-Mouse Button Control" that means its already running and the new one is communicating with the existing one. In this case, if the command line of the NEW one is empty, (as in that case) it opens the setup dialog.

So you need to figure out what is running it more than once. I cant help much with that because it only happens on your computer (at least, no one else has ever reported this problem).

If the command line includes "/notportable /svclaunch" then that would suggest its running from the XMBC launcher service. Anything else - must be something on your machine starting it. Let me know if you can find whats doing it - but my suspicions right now fall to this chamelion thing? (again I dont use it so Im not familiar with it)

If you find whats running it a second time, either stick /svclaunch into the commandline OR get rid of this second launch completely and just let the XMouse service launcher do its work as it was designed to do?!

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Oblias
New User
Posts: 5
Joined: Wed Apr 27, 2011 6:01 pm

Re: Setup v2.0 Runs At Each Startup

Post by Oblias »

Right then. I'll have a look around to see why it's being run twice. BTW, Chameleon Startup Manager Pro is just a fancy GUI for MSCONFIG , basically. But I'll run MSCONFIG and see if I see something that Chameleon is not showing. If all else fails, it might be better to uninstall XMBC, then reinstall. If I choose to do that, is there a way to save the settings for all my programs that took me a while to get set up right??

Thanks!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

Reinstalling xmbc will not loose your settings unless you tell the installer to reset them (which is not default).
Because your settings are in an xml file which does not get removed (although some may consider that a bug lol).

You can also export/import settings for programs by right clicking the list in the setup window and selecting export. It does not export the default profile though (I think). Or you can manually backup the XML settings file which is in the same folder as the log file.

But uninstalling/reinstalling it prob wont make any difference. The installer only ever installs the launcher service, so its not that that created this second run problem.

If you need to send screenshots of msconfig/chamelion then do so by email or you can attach files to the messages here, but I think you may need a minimum number of posts (5? you must be close) before you can upload/attach files (I had lots of problems with spam bots).

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

PS. Did you have a look in the windows event log to see if there were any errors from XMBC service launcher?
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Oblias
New User
Posts: 5
Joined: Wed Apr 27, 2011 6:01 pm

Re: Setup v2.0 Runs At Each Startup

Post by Oblias »

I would firstly like to thank you, Phil, for your fast, and concise replies and help! I would be hard pressed to find a program that does what this does, at any price!!

I found what was causing the problem. I still do not know why it was causing the problem, but in any event, problem solved, and no more Setup window on startup. You were absolutely correct when you said that the problem might be within Chameleon Startup Manager Pro.

I started by renaming the XMouseButtonControl.exe file listed to another name. Not the actual file itself, but just the entry in Chameleon. Rebooted, and no more setup window! I then removed the entry for SMBC altogether and rebooted, and same thing, no setup window!! Nice, and problem solved.

However, it's still a mystery why this happened. I've had Chameleon installed since the installation of Win7, and never had this problem with any of your previous versions of XMBC. It's only when I updated to v2.0 that this started happening.

Perhaps this thread will be of help to someone in the future who also runs Chameleon, and will solve the issue for them also.

Again, many thanks for the program, and the help!! :-)

OB
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Setup v2.0 Runs At Each Startup

Post by phil »

The reason it started doing this in v2.0 is that in v2.0 I made it open the setup window when you ran a second instance of XMBC with no arguments. Previously it just quit and ignored the second one.

I did this because many people did not realise it was running and did not know how to configure XMBC. So I made the setup window open when you run XMBC the second time (ie. from the start menu).

Of course, how it got into Chameleon to run twice, I cant answer but Im glad you not only found but also fixed the problem :)

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply