I wrote a batch program to silently install some chipset software for users
during logon. But it's working properly. Here is part of the code.

:IntelAMT
Echo Install Intel AMT Chipset Software
Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log


Echo Installing Utility Driver.
c:
CD \Drivers\Dell\GX755\Chipset\Chipset1
start /wait setup.exe -s -sms
Echo Utility Driver Installed, rc=%ERRORLEVEL% >>%systemroot%\setuplog1.log;


Echo Installing Intel AMT SOL/ LMS Driver
c:
CD \Drivers\Dell\GX755\Chipset\Chipset2
start /wait setup.exe -s -sms
Echo Intel AMT SOL/ LMS Driver installed, rc=%ERRORLEVEL%
>>%systemroot%\setuplog1.log

Echo Installing Intel AMT HECI Driver
c:
CD \Drivers\Dell\GX755\Chipset\Chipset3
start /wait setup.exe -s -sms
Echo Intel AMT HECI Driver installed, rc=%ERRORLEVEL%
>>%systemroot%\setuplog1.log

I can see the echo message during installation and the echo message in the
log. But only the first one got installed properly. What I found is that
the other two need to answer the license agreement.

What's the switch to accept the license agreement automatically?

thanks.

RE: silent install issue with batch program by Chris

Chris
Thu Feb 28 12:59:02 CST 2008

will silent install accept license agreement automatically? maybe my problem
is something else. I realized that the first one took 10-15 sec to complete.
But rest two took only a couple seconds. I don't think it actually started
the installation.

"Chris" wrote:

> I wrote a batch program to silently install some chipset software for users
> during logon. But it's working properly. Here is part of the code.
>
> :IntelAMT
> Echo Install Intel AMT Chipset Software
> Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log
>
>
> Echo Installing Utility Driver.
> c:
> CD \Drivers\Dell\GX755\Chipset\Chipset1
> start /wait setup.exe -s -sms
> Echo Utility Driver Installed, rc=%ERRORLEVEL% >>%systemroot%\setuplog1.log;
>
>
> Echo Installing Intel AMT SOL/ LMS Driver
> c:
> CD \Drivers\Dell\GX755\Chipset\Chipset2
> start /wait setup.exe -s -sms
> Echo Intel AMT SOL/ LMS Driver installed, rc=%ERRORLEVEL%
> >>%systemroot%\setuplog1.log
>
> Echo Installing Intel AMT HECI Driver
> c:
> CD \Drivers\Dell\GX755\Chipset\Chipset3
> start /wait setup.exe -s -sms
> Echo Intel AMT HECI Driver installed, rc=%ERRORLEVEL%
> >>%systemroot%\setuplog1.log
>
> I can see the echo message during installation and the echo message in the
> log. But only the first one got installed properly. What I found is that
> the other two need to answer the license agreement.
>
> What's the switch to accept the license agreement automatically?
>
> thanks.
>

Re: silent install issue with batch program by Corey

Corey
Thu Feb 28 16:53:48 CST 2008

Was the setup built by InstallShield? If so, there is a switch that
you can pass to the setup. Then you go through the setup, telling it
which options you want. When it finishes, it creates an iss file that
you can use for silent installs.

It really depends on who wrote the setup.


-Corey Thomas
MCSE/MCSA/MCDBA


On Feb 28, 1:59=A0pm, Chris <Ch...@discussions.microsoft.com> wrote:
> will silent install accept license agreement automatically? =A0maybe my pr=
oblem
> is something else. =A0I realized that the first one took 10-15 sec to comp=
lete.
> =A0But rest two took only a couple seconds. =A0I don't think it actually s=
tarted
> the installation.
>
>
>
> "Chris" wrote:
> > I wrote a batch program to silently install some chipset software for us=
ers
> > during logon. =A0But it's working properly. =A0Here is part of the code.=

>
> > :IntelAMT
> > Echo Install Intel AMT Chipset Software
> > Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log
>
> > Echo Installing Utility Driver.
> > c:
> > CD \Drivers\Dell\GX755\Chipset\Chipset1
> > start /wait setup.exe -s -sms
> > Echo Utility Driver Installed, rc=3D%ERRORLEVEL% >>%systemroot%\setuplog=
1.log;
>
> > Echo Installing Intel AMT SOL/ LMS Driver
> > c:
> > CD \Drivers\Dell\GX755\Chipset\Chipset2
> > start /wait setup.exe -s -sms
> > Echo Intel AMT SOL/ LMS Driver installed, rc=3D%ERRORLEVEL%
> > >>%systemroot%\setuplog1.log
>
> > Echo Installing Intel AMT HECI Driver
> > c:
> > CD \Drivers\Dell\GX755\Chipset\Chipset3
> > start /wait setup.exe -s -sms
> > Echo Intel AMT HECI Driver installed, rc=3D%ERRORLEVEL%
> > >>%systemroot%\setuplog1.log
>
> > I can see the echo message during installation and the echo message in t=
he
> > log. =A0But only the first one got installed properly. =A0What I found i=
s that
> > the other two need to answer the license agreement.
>
> > What's the switch to accept the license agreement automatically?
>
> > thanks.- Hide quoted text -
>
> - Show quoted text -


Re: silent install issue with batch program by Chris

Chris
Thu Feb 28 18:14:00 CST 2008

I don't know. When I double-click on setup.exe it lauched installation with
InstallShield. Does that mean it was created by InstallShield? I also tried
to run setup.exe -r or /r to generate an answer file (iss) but got error with
switch "-r" or "/r" not recognized.

"Corey Thomas" wrote:

> Was the setup built by InstallShield? If so, there is a switch that
> you can pass to the setup. Then you go through the setup, telling it
> which options you want. When it finishes, it creates an iss file that
> you can use for silent installs.
>
> It really depends on who wrote the setup.
>
>
> -Corey Thomas
> MCSE/MCSA/MCDBA
>
>
> On Feb 28, 1:59 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > will silent install accept license agreement automatically? maybe my problem
> > is something else. I realized that the first one took 10-15 sec to complete.
> > But rest two took only a couple seconds. I don't think it actually started
> > the installation.
> >
> >
> >
> > "Chris" wrote:
> > > I wrote a batch program to silently install some chipset software for users
> > > during logon. But it's working properly. Here is part of the code.
> >
> > > :IntelAMT
> > > Echo Install Intel AMT Chipset Software
> > > Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log
> >
> > > Echo Installing Utility Driver.
> > > c:
> > > CD \Drivers\Dell\GX755\Chipset\Chipset1
> > > start /wait setup.exe -s -sms
> > > Echo Utility Driver Installed, rc=%ERRORLEVEL% >>%systemroot%\setuplog1.log;
> >
> > > Echo Installing Intel AMT SOL/ LMS Driver
> > > c:
> > > CD \Drivers\Dell\GX755\Chipset\Chipset2
> > > start /wait setup.exe -s -sms
> > > Echo Intel AMT SOL/ LMS Driver installed, rc=%ERRORLEVEL%
> > > >>%systemroot%\setuplog1.log
> >
> > > Echo Installing Intel AMT HECI Driver
> > > c:
> > > CD \Drivers\Dell\GX755\Chipset\Chipset3
> > > start /wait setup.exe -s -sms
> > > Echo Intel AMT HECI Driver installed, rc=%ERRORLEVEL%
> > > >>%systemroot%\setuplog1.log
> >
> > > I can see the echo message during installation and the echo message in the
> > > log. But only the first one got installed properly. What I found is that
> > > the other two need to answer the license agreement.
> >
> > > What's the switch to accept the license agreement automatically?
> >
> > > thanks.- Hide quoted text -
> >
> > - Show quoted text -
>
>

Re: silent install issue with batch program by Corey

Corey
Thu Feb 28 22:13:20 CST 2008

Hmm. Does the exe contain an MSI? (Check the temp directories). If
so, you can definitely install those silently.

If not, you have two options:

1. Repackage the install. This would take some knowledge of
packaging as well as some tools to capture the install.
2. Pass the keys needed. There are several ways to do that.
Sendkeys (vbscript) may work.

On Feb 28, 7:14=A0pm, Chris <Ch...@discussions.microsoft.com> wrote:
> I don't know. =A0When I double-click on setup.exe it lauched installation =
with
> InstallShield. =A0Does that mean it was created by InstallShield? =A0I als=
o tried
> to run setup.exe -r or /r to generate an answer file (iss) but got error w=
ith
> switch "-r" or "/r" not recognized.
>
>
>
> "Corey Thomas" wrote:
> > Was the setup built by InstallShield? =A0If so, there is a switch that
> > you can pass to the setup. =A0Then you go through the setup, telling it
> > which options you want. =A0When it finishes, it creates an iss file that=

> > you can use for silent installs.
>
> > It really depends on who wrote the setup.
>
> > -Corey Thomas
> > MCSE/MCSA/MCDBA
>
> > On Feb 28, 1:59 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > > will silent install accept license agreement automatically? =A0maybe m=
y problem
> > > is something else. =A0I realized that the first one took 10-15 sec to =
complete.
> > > =A0But rest two took only a couple seconds. =A0I don't think it actual=
ly started
> > > the installation.
>
> > > "Chris" wrote:
> > > > I wrote a batch program to silently install some chipset software fo=
r users
> > > > during logon. =A0But it's working properly. =A0Here is part of the c=
ode.
>
> > > > :IntelAMT
> > > > Echo Install Intel AMT Chipset Software
> > > > Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log=

>
> > > > Echo Installing Utility Driver.
> > > > c:
> > > > CD \Drivers\Dell\GX755\Chipset\Chipset1
> > > > start /wait setup.exe -s -sms
> > > > Echo Utility Driver Installed, rc=3D%ERRORLEVEL% >>%systemroot%\setu=
plog1.log;
>
> > > > Echo Installing Intel AMT SOL/ LMS Driver
> > > > c:
> > > > CD \Drivers\Dell\GX755\Chipset\Chipset2
> > > > start /wait setup.exe -s -sms
> > > > Echo Intel AMT SOL/ LMS Driver installed, rc=3D%ERRORLEVEL%
> > > > >>%systemroot%\setuplog1.log
>
> > > > Echo Installing Intel AMT HECI Driver
> > > > c:
> > > > CD \Drivers\Dell\GX755\Chipset\Chipset3
> > > > start /wait setup.exe -s -sms
> > > > Echo Intel AMT HECI Driver installed, rc=3D%ERRORLEVEL%
> > > > >>%systemroot%\setuplog1.log
>
> > > > I can see the echo message during installation and the echo message =
in the
> > > > log. =A0But only the first one got installed properly. =A0What I fou=
nd is that
> > > > the other two need to answer the license agreement.
>
> > > > What's the switch to accept the license agreement automatically?
>
> > > > thanks.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


Re: silent install issue with batch program by Chris

Chris
Fri Feb 29 10:14:01 CST 2008

I think my problem is due to start /wait command. for some reason it doesn't
work. I made a new batch program and set to setup.exe -s and it seems to
work. I'm testing it with my login script. Is start /wait or -sms
necessary for InstallShield?

"Corey Thomas" wrote:

> Hmm. Does the exe contain an MSI? (Check the temp directories). If
> so, you can definitely install those silently.
>
> If not, you have two options:
>
> 1. Repackage the install. This would take some knowledge of
> packaging as well as some tools to capture the install.
> 2. Pass the keys needed. There are several ways to do that.
> Sendkeys (vbscript) may work.
>
> On Feb 28, 7:14 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > I don't know. When I double-click on setup.exe it lauched installation with
> > InstallShield. Does that mean it was created by InstallShield? I also tried
> > to run setup.exe -r or /r to generate an answer file (iss) but got error with
> > switch "-r" or "/r" not recognized.
> >
> >
> >
> > "Corey Thomas" wrote:
> > > Was the setup built by InstallShield? If so, there is a switch that
> > > you can pass to the setup. Then you go through the setup, telling it
> > > which options you want. When it finishes, it creates an iss file that
> > > you can use for silent installs.
> >
> > > It really depends on who wrote the setup.
> >
> > > -Corey Thomas
> > > MCSE/MCSA/MCDBA
> >
> > > On Feb 28, 1:59 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > > > will silent install accept license agreement automatically? maybe my problem
> > > > is something else. I realized that the first one took 10-15 sec to complete.
> > > > But rest two took only a couple seconds. I don't think it actually started
> > > > the installation.
> >
> > > > "Chris" wrote:
> > > > > I wrote a batch program to silently install some chipset software for users
> > > > > during logon. But it's working properly. Here is part of the code.
> >
> > > > > :IntelAMT
> > > > > Echo Install Intel AMT Chipset Software
> > > > > Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log
> >
> > > > > Echo Installing Utility Driver.
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset1
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Utility Driver Installed, rc=%ERRORLEVEL% >>%systemroot%\setuplog1.log;
> >
> > > > > Echo Installing Intel AMT SOL/ LMS Driver
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset2
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Intel AMT SOL/ LMS Driver installed, rc=%ERRORLEVEL%
> > > > > >>%systemroot%\setuplog1.log
> >
> > > > > Echo Installing Intel AMT HECI Driver
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset3
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Intel AMT HECI Driver installed, rc=%ERRORLEVEL%
> > > > > >>%systemroot%\setuplog1.log
> >
> > > > > I can see the echo message during installation and the echo message in the
> > > > > log. But only the first one got installed properly. What I found is that
> > > > > the other two need to answer the license agreement.
> >
> > > > > What's the switch to accept the license agreement automatically?
> >
> > > > > thanks.- Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
>
>

Re: silent install issue with batch program by Chris

Chris
Fri Feb 29 17:58:00 CST 2008

I got my problem fixed by removing start/wait and using just setup.exe -s. I
thought you need to use start/wait and sometimes -sms when you call an
external program from a batch program. Somehow, it didn't work for me this
time.

"Corey Thomas" wrote:

> Hmm. Does the exe contain an MSI? (Check the temp directories). If
> so, you can definitely install those silently.
>
> If not, you have two options:
>
> 1. Repackage the install. This would take some knowledge of
> packaging as well as some tools to capture the install.
> 2. Pass the keys needed. There are several ways to do that.
> Sendkeys (vbscript) may work.
>
> On Feb 28, 7:14 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > I don't know. When I double-click on setup.exe it lauched installation with
> > InstallShield. Does that mean it was created by InstallShield? I also tried
> > to run setup.exe -r or /r to generate an answer file (iss) but got error with
> > switch "-r" or "/r" not recognized.
> >
> >
> >
> > "Corey Thomas" wrote:
> > > Was the setup built by InstallShield? If so, there is a switch that
> > > you can pass to the setup. Then you go through the setup, telling it
> > > which options you want. When it finishes, it creates an iss file that
> > > you can use for silent installs.
> >
> > > It really depends on who wrote the setup.
> >
> > > -Corey Thomas
> > > MCSE/MCSA/MCDBA
> >
> > > On Feb 28, 1:59 pm, Chris <Ch...@discussions.microsoft.com> wrote:
> > > > will silent install accept license agreement automatically? maybe my problem
> > > > is something else. I realized that the first one took 10-15 sec to complete.
> > > > But rest two took only a couple seconds. I don't think it actually started
> > > > the installation.
> >
> > > > "Chris" wrote:
> > > > > I wrote a batch program to silently install some chipset software for users
> > > > > during logon. But it's working properly. Here is part of the code.
> >
> > > > > :IntelAMT
> > > > > Echo Install Intel AMT Chipset Software
> > > > > Echo Install Intel AMT Chipset Software >>%systemroot%\setuplog1.log
> >
> > > > > Echo Installing Utility Driver.
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset1
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Utility Driver Installed, rc=%ERRORLEVEL% >>%systemroot%\setuplog1.log;
> >
> > > > > Echo Installing Intel AMT SOL/ LMS Driver
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset2
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Intel AMT SOL/ LMS Driver installed, rc=%ERRORLEVEL%
> > > > > >>%systemroot%\setuplog1.log
> >
> > > > > Echo Installing Intel AMT HECI Driver
> > > > > c:
> > > > > CD \Drivers\Dell\GX755\Chipset\Chipset3
> > > > > start /wait setup.exe -s -sms
> > > > > Echo Intel AMT HECI Driver installed, rc=%ERRORLEVEL%
> > > > > >>%systemroot%\setuplog1.log
> >
> > > > > I can see the echo message during installation and the echo message in the
> > > > > log. But only the first one got installed properly. What I found is that
> > > > > the other two need to answer the license agreement.
> >
> > > > > What's the switch to accept the license agreement automatically?
> >
> > > > > thanks.- Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
>
>

Re: silent install issue with batch program by Th

Th
Tue Mar 11 14:44:16 CDT 2008

Chris a écrit :
> I got my problem fixed by removing start/wait and using just setup.exe -s. I
> thought you need to use start/wait and sometimes -sms when you call an
> external program from a batch program. Somehow, it didn't work for me this
> time.

Try this:
start "" /wait "setup.exe" -s -sms

or without -sms