[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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 .
0
abosalh
Asked:
abosalh
  • 6
  • 5
  • 4
  • +1
1 Solution
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
 
abosalhAuthor Commented:
see you in next problem
abosalh
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 6
  • 5
  • 4
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now