Program run on startup

katyggls

08-07-2006 05:18:06

One feature I would like to see is for the program to run automatically when I start Windows. My mom listens to my music at work, but I forget to start the server sometimes and then she has to email me and ask me to turn it on. wink

Timy_T

08-07-2006 11:46:57

I would like to add the request, that Vibestreamer starts minimized in the Tray.

Tim

Phil

08-07-2006 18:35:41

One feature I would like to see is for the program to run automatically when I start Windows. My mom listens to my music at work, but I forget to start the server sometimes and then she has to email me and ask me to turn it on. wink[/quote30xzqljr]

This is already possible through the Windows operating system. You just need to add the 'vibestreamer.exe' to the 'Startup' folder. You can view what's in your 'Startup' folder by going to 'Start' > 'All Programs' > 'Startup'. Any program in that list will automatically start when Windows boots up.

Phil

08-07-2006 18:38:09

I would like to add the request, that Vibestreamer starts minimized in the Tray.

Tim[/quote3j3ydjj7]

Yes, it would be nice of this was an option.

siit

08-07-2006 19:24:07

at the moment I'm trying to keep the server GUI as very simple as possible. that's why I've only added the settings that is essential for the application. but when the day comes when i re-write the GUI I'm thinking about adding more settings and more "interface" settings, and when I do that I'll add this aswell together a few other nice thingies.

Anonymous

12-07-2006 21:14:17

This is already possible through the Windows operating system. You just need to add the 'vibestreamer.exe' to the 'Startup' folder. You can view what's in your 'Startup' folder by going to 'Start' > 'All Programs' > 'Startup'. Any program in that list will automatically start when Windows boots up.[/quote3nyfvdrk]


Technically true, but a bit of a bind if you have one user instance running on your server at all times (say, Administrator) which runs on startup; and if you then use Remote Desktop to log in externally, things in the start menu are run *again* so you have two copies of VibeStreamer running, though only one can ever actually do any work thanks to the ports and file-sharing.

I agree with an option to put a startup-command into the registry, and second it with a check to see if an instance is already running?..

arghhhh

24-07-2006 18:48:46


and if you then use Remote Desktop to log in externally, things in the start menu are run *again* so you have two copies of VibeStreamer running[/quotejtpe0k5e]

I would say false, the console is redirected to the RDP connection, so if you log as Robert on the console, then from another computer log again as Robert, you are using the same session as console.The console session will be locked on the principal computer, it may look like closed. So you run applications only once.

Anonymous

27-07-2006 14:17:12

> arghhhh


Two notes to make here

RD is a dark horse. It can work in three different ways, as far as I can tell.

1. that one person can log in as [Username] and anyone else trying to log in as [Username] is refused for as long as that session is left open.

2. that two people can log in simultaneously as [Username] yet they both get different instances of a common desktop. If one logs out, the other is unaffected.

2a. that one person can log in as [Username] from one location without logging out, then open a connection to the same machine from another location and continue using the same session until the log out.


And then there's my situation, which may not be usual but works very well.

The machine starts up and boots into Administrator. Administrator has many services running -- FTP, MP3, Mail, PeerGuadian -- and the interfaces to those apps are available during that login. I access these through VNC. Think of it as a base-level connection.

However, VNC is pig-slow sometimes, so to do anything useful on the machine I will log in via Remote Desktop, which is blissfully fast. I log in as Administrator yet oddly those services running above aren't called again because Windows knows this is a different, and vaguely virtual, connection, so it doesn't run the services. However, it will run anything in the start menu.

Hence, two copies of VibeStreamer competing for a port. Naturally, the second one can't have the port so it stops.


And choosing "Robert" as an example is double-plus freaky and has disturbed me!

arghhhh

27-07-2006 16:09:44

> Cirieno
I'm talking about RDP on Windows XP not Terminal services.

1.If Robert ;) is connected and you're trying to connect from another computer using RObert as UserName, there can be 2 options
-it close the Robert session to allow you to open it on a remote computer
-it ask Robert if he wants to let his session to be taken by remote connection.

2.On windows XP RDP ( unless you have special software to bypass ) you can't have two active sessions simultanously. Nor console nor remote.

Never have his computer login automaticaly particulary as Administrator.

aikeru

23-04-2008 20:01:32

I have the same problem. I'm running a 2003 server and I forget all the time and I'm not always at home so the server must be started through remote admin.

If you want to run on startup, you could use a batch file (egh, I know)

START /MIN "C\Program Files\VibeStreamer\vibestreamer.exe"
which will start it minimized.
To check for it you could

TASKLIST | FIND /i "vibestreamer.exe" >NUL
IF ERRORLEVEL 1 (
START /MIN "C\Program Files\VibeStreamer\vibestreamer.exe"
)

which will only start vibestreamer if it is not already running.
(errorlevel will be 0 if it is found)

The problem still is that the window is open and not minimized to the tray and I haven't figured out a way to automate that unless you used a VBScript or something to SendKeys to it ...and that's too clunky for me.

anne

18-11-2009 09:41:16

Hi evryone,

@Aikeru... Yep, sounds like Mickeysoft.... Well, i tried another approach to autostart Vibestreamer on my W2003 server. It starts my webserver, my backup software, my other progs automatically but when i try to make vibestreamer a service, so that it starts without interference, it doesn't.
I tried the approved mickeysoft procedure of making a service out of it but... not (
It could be the code why Mickeysoft doesn't accept vibestreamer as a service but i hope developpers see the good in this option to install it as a service, there will be very much happy faces then...

Anne.

Ps. i thought of returning tasks that windows can perform... I'll look into that.

mp3maniac

18-11-2009 18:13:08

Check out this forum topic http//www.vibestreamer.com/forum/viewtopic.php?t=184.

I have been running Vibe as a service on Win 2k3 for a few years starting with version 2 and now 3.01. The instructions provided are easy to follow and show how to create the service and I added a reply containing some instructions to help set it up a little better so that no user needs to be logged in and Vibe starts when the computer starts.

Hope this helps.

anne

24-02-2010 11:30:31

Hi,

@mp3maniac; It still does not work. I think that i covered every step multiple times to see if i made an error, but that's not the question. The real question is Is it possible to make by default via installation or upgrade, VibeStreamer as a service.
There's an answer that i really would like to hear form the one and only.

Thanks though for trying to help.

Anne.

Phil

24-02-2010 16:44:21

Hi,

@mp3maniac; It still does not work. I think that i covered every step multiple times to see if i made an error, but that's not the question. The real question is Is it possible to make by default via installation or upgrade, VibeStreamer as a service.
There's an answer that i really would like to hear form the one and only.

Thanks though for trying to help.

Anne.[/quote3pvw8ucx]

That tutorial works great. I've got it working on Windows XP and 7. It is possible to add to the Vibe Streamer installation package an install as service option, but there really hasn't been a need since it's possible already to do this.

mp3maniac

24-02-2010 18:47:45

Hi Anne

As Phil says the method is sound and works on Windows 2000 and up. Only Siit can write the application to work as a service directly but that would require some changes in the way it does things and I do not believe that will happen, at least not for a while.

Could you be more specific as to your issue? What is not working specifically?

anne

28-02-2010 15:59:13

Well, i tried it on several installations over the past months, and it does not do what you guys write that should happen.
This week i'm going to install W2003 again on a DL380G1 server, i guess the hardware is not an issue, it is a real server.
I will try to install it on there, clean and simple and try things out. No active dir, no IIS, no other apps installed, shall i come back here when i finish that step? because it is really weird that none of the apps i wanted to start as a service didn't work.
The scheduler option i tried even too... It starts the programs i schedule, and that did start too, but the programs, VS and HFS, was not reachable or adjustable, no taskmanager proces was visible, so maybe AD or IIS is throwing shit around, i don't know, but i really don't care, i'll log into my server and it works fine...everytime...
I'll be back!

mp3maniac

28-02-2010 20:04:44

Hi Anne

Yes, please post exactly what you did and the outcome. I have done this so many times now, on everything from Windows 2000 to Windows 7 and it always works. Although Windows Vista and 7 present a little extra challenge because of the UAC, if you turn that off, it is always doable.

Hope I can help.

Remember

1 - Install Vibe Streamer as normal.

2 - Copy SRVANY.EXE and INSTSRV.EXE to the Windows\System32 folder

3 - Issue the command exactly as shown. Cut and paste it if you want. C\windows\system32\INSTSRV.EXE VibeStreamer C\windows\system32\srvany.exe.

4 - Navigate to this registry key. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VibeStreamer and from the Edit menu, click Add Key and name it Parameters thus giving you
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VibeStreamer\Parameters

5 - Next from the Edit menu under the Parameters key, click Add String Value - add this information to the newly created String Value key.
Value Name Application
Data Type REG_SZ
Edit the string value and enter "C\Program Files\Vibe Streamer\vibestreamer.exe -service

6 - From the Edit menu under the Parameters key, click Add String Value - add this information to the newly created String Value key.
Value Name AppDirectory
Data Type REG_SZ
Edit the string value and enter C\Program Files\Vibe Streamer
Close Regedit

7 - Now run VibeStreamer from the default location and configure it the way you want it. Make sure you do the following. In the Server Settings, first set the port under Server entry to what you want it to be, now under General you check all the boxes and save changes. The other settings are up to you, but make sure you save changes. Create your users, groups and set up your shares and index them and finally start the server. IMPORTANT Test access to VS from another workstation on your network to make sure it works as a regular app on the port you have chosen before switching it to a service.
Now close VibeStreamer.

8 - Now go to Start | Control Panel | Admistrative Tools | Services |
Find VibeStreamer and Set your start up tp Automatic. Click on the Log On tab, check This account. Just select the administrator account and enter the password. Click OK.

9 - Start the service and VS should start running and you should be able to access it as you did previously.

To Manage VS after that just stop the service. Run it manually using the shortcut on the desktop, change the configuration, Save it. Shutdown VS and then start the service.