auto run

dear sear:
          please can you help me how can I make my project auto run ,no need to go to start then run ect.. I need it auto run for installation
thank  you .
abosalhAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

st_steveCommented:
you mean autorun when windows starts? if this is what you want, put the name of your application (executable name) in the following registry location

HKEY_LOCAL_MCHINE\SOftware\Microsoft\Windows\CurrentVersion\Run

make a new string entry and name it whatever you want it to appear on Windows Tasklist, and in the value pane, put the path to your application. MS recommends short path names, but I found long path names also work as well..
0
idoreyCommented:
If you mean autorun a CD installation then you can only do this if the host machine already has the VB runtime files on it.

Otherwise you will need an installer for the installer program!!
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

abosalhAuthor Commented:
no I mean autorun a CD installation then
the user no need to go to start and run
elc.. I want if the user put the cd automatacly well go to my application
0
st_steveCommented:
when you say "my application"..is it the application already written in VB or is it a packed application...like when you put your Win98 CD in, you get that screen....the installation screen? if that's what you want...you just need to burn one extra file onto the CD and when you put the cd in, it will run the application you have pointed in the file (provided the CD-ROM has autorun feature enabled).

The name of the file is autorun.inf

if you want the syntax of the file, let me know...
0
mcriderCommented:
Did you read the article I gave you??? You need to write a little "switcher program".  That is what you put in your auto-run file.

When the CD is put in the drive, the auto-run software reads the autorun.ini and runs the "switcher program". It looks to see if your real app has been installed (by looking in the registry or whatever method you want).  If the real app has been installed, it launches the app... If not, then SETUP.EXE is run...


Cheers!

0
mcriderCommented:
By the way, use this autorun.ini to start your program on all platforms... Replace all of the "readme.exe" with the name of your program:

[AutoRun]
open=readme.exe
Shell\OpenCD\ = Start Master Setup
Shell\OpenCD\Command = readme.exe
icon = readme.exe,1

[AutoRun.PPC]
open=readme.exe
Shell\OpenCD\ = Start Master Setup
Shell\OpenCD\Command = readme.exe
icon = readme.exe,1

[AutoRun.Alpha]
open=readme.exe
Shell\OpenCD\ = Start Master Setup
Shell\OpenCD\Command = readme.exe
icon = readme.exe,1



Cheers!
0
abosalhAuthor Commented:
yes : st_steve
I mean a packed application...like put  Win98 CD in, I get that screen....the installation screen  .
sory becuse I did not explean my problem
in right way .
thanks a lot
abdullh

0
abosalhAuthor Commented:
to : mcrider
I am doing what you tell me but not yet finish.
thank you very much
0
st_steveCommented:
I think you got the solution already....right/?
0
st_steveCommented:
I think you got the solution already, right??
0
abosalhAuthor Commented:
yes I got the olution.
thanks
0
abosalhAuthor Commented:
yes I have got the solution.  
thanks a lot
0
mcriderCommented:
So did what I give you solve your problem?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
abosalhAuthor Commented:
see you in next problem
abosalh
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.