Link to home
Start Free TrialLog in
Avatar of abosalh
abosalh

asked on

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 .
Avatar of st_steve
st_steve

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..
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!!
Avatar of abosalh

ASKER

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
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...
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!

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!
Avatar of abosalh

ASKER

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

Avatar of abosalh

ASKER

to : mcrider
I am doing what you tell me but not yet finish.
thank you very much
I think you got the solution already....right/?
I think you got the solution already, right??
Avatar of abosalh

ASKER

yes I got the olution.
thanks
Avatar of abosalh

ASKER

yes I have got the solution.  
thanks a lot
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the points! Glad I could help!


Cheers!
Avatar of abosalh

ASKER

see you in next problem
abosalh