Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

autorun cd using bat file for multi exe


  • Please log in to reply

#1
wizcow

wizcow

    New Member

  • Member
  • Pip
  • 4 posts
Hello

I hope I am in the right forum.
I am trying to make an autorun cd.
I have successfully made an inf file that launches a batch file.

I want the bat file to launch installer #1, finish then launch installer #2.
This is what I have so far, but it doesn't work.

@echo loading cd
@start/wait "formulator software\formulator Setup.exe"
@start formulator.exe
@cls
@exit

A cmd window opens which says loading cd.
Then another cmd window (named formulator software\formulator Setup.exe) opens displaying the drive letter. D:\>
And I also get an error message saying the Installation is corrupted.
If I clear off all the windows then formulator.exe launches.

I think my syntax pointing to the exe that is in the folder is the problem.
Thanks
Tom
  • 0

Advertisements


#2
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 32,901 posts
Hi wizcow,

The first parameter is the title of the cmd window and is required

Can you try this?

@start /wait "loading cd" "formulator software\formulator Setup.exe"
@start formulator.exe
@cls
@exit

  • 0

#3
wizcow

wizcow

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts
Thank you for the reply Pieter.
This works much better!

There were no messages in the cmd window.
Is it possible to hide the cmd window?

Thanks
Tom
  • 0

#4
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 32,901 posts
Hi wizcow,

How exactly are you starting it from the inf ?
Because it is easiest to arrange the minimized state from were the batch gets started.
  • 0

#5
wizcow

wizcow

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts
Its to be loaded on a cd.
Autorun.inf file that launches the bat file that launches the exe files.

The inf file looks like this

[AutoRun]
open=autorun.bat
icon=formulator.ico,0
label=formulator Installer
  • 0

#6
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 32,901 posts
Never tried this, so I am not sure if it will work.

WindowMode=Minimized

[AutoRun]
open=autorun.bat
WindowMode=Minimized
icon=formulator.ico,0
label=formulator Installer

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP