Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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
  • 33,101 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
  • 33,101 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
  • 33,101 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