Jump to content

running an EXE file from the CD right after Windows installation


djavis

Recommended Posts

Hi all,

I've made my own DVD Multi Disc.

It has a Win XP installation with an unattened file.

My question is how can i run an EXE file from the CD itself right after the first logon of the windows (when he finishing to install it on my machine) ???

I wanna imitate the action like opening "my computer", browsing to the cd and double-clicking an EXE file right after the windows finished his installation...

Please help !

Many Thanks !!!

Link to comment
Share on other sites


The simplest way is to use a CD-RW, or DVD+/-RW, and use the autorun.inf(or ini, can't remember which). Have it say:

[AUTORUN]

run=\_FolderHere_\FileHere.whatever

Another way it to do it to the registry under the RunOnce key. Then make a string value. Name it whatever you want. Double-click it and put the path of the file you want to execute within quotes. So it'll look like this "E:\files\setup.exe" or similar. For an example, look right above the RunOnce key at the Run key. It'll have files that are running on bootup.

Link to comment
Share on other sites

hello friend,

Didn't really understand you...

First of all i didn't meant after inserting the CD.

I want after finishing with the installation (from WIN XP CD) - to run an EXE file that located on the same CD (of the installation).

Imagine that you're installing WIN XP with a cd called "1".

After the Windows is installed and the windows is logging in for the first time you'll browse to the CD ("1") and double-click an EXE file that located on the cd with the win. installation.

My CD is doing the installation process automaticly so i want to run the EXE file (from the cd) right fter it finishes to install the windows...

Link to comment
Share on other sites

i do something like that . can be adapted for your needs

but this second part , i can do only with autoIT .

are you familiered with ?

i copy during install with a batch

my. exe from %windir% (it is placed in $$ folder in my uA)

%AllUsersProfile%\Desktop\ , and this is open by a shortcut file placed in

%AllUsersProfile%\Start Menu\Programs\Startup

(copied there also from %windir% via $$ by my batch file)

my exe uis not related with other files .

so the .exe is open at first startup .

for you need to know the letter of CD-drive (only with autoIT i can do it)

and the .exe put on startup can run your exe from cd .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...