Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Finding the path for autostart

Author
Message
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 1st Mar 2005 12:00
Hi all.
I want to make my program start after logging on to a PC.
I know you can do it by putting a shurtvut into "C:\Documents and Settings\All Users\Menu Start\Programs\Autostart\" folder.
However, with different languages come different paths.
Ex. I have the Polish version of WinXP and my path is
C:\Documents and Settings\All Users\Menu Start\Programy\Autostart\

How can I find the path? Would I have to use the registry or just ask a user to point me to the path. The second option would be easier but kindof akward.
fasdfsdaf
20
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 1st Mar 2005 12:06
What you could do is just check when you install it which path exists (you could have a bug-report thingy so you can find out the paths) and then you just set that as a piece of data or whatever in the registry.

www.war3forums.net
Random 69
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 1st Mar 2005 12:07
I would just use registry entries. THough this method is potentily very dangerous changing a registry entry to a invalid path or something can crash a entire computer pemanantly.

HKEY_LOCAL_MACHINE\Software\Microsoft\windows\currentversion\run
HKEY_LOCAL_USER\Software\Microsoft\windows\currentversion\run
HKEY_LOCAL_MACHINE\Software\Microsoft\windows\currentversion\runservices

Use carefully one will run for all one will run for user one will run in services

[ 21.27GB / 74.52GB ] [ 235MB / 511MB ] [ RADEON 9500 PRO / 9700 @ 1280x934 ] A++ 10% Done [ Windows XP ][ Intel Pentium 4 CPU 2.00GHz @ 1993MHz ]
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 1st Mar 2005 12:21
Thanx Random 69
I knew you could do smth like that i just didn't know where in the registry. There is just one problem however, how would you delete it from registry later. (I had a thread like that open once)

I would probably make a dummy program during uninstallation and tell the user that not evrything was removed.

Anybody have any other ideas?

Login to post a reply

Server time is: 2025-05-31 00:06:59
Your offset time is: 2025-05-31 00:06:59