/build/static/layout/Breadcrumb_cap_w.png

start /wait is not working for VS .NET 2003

Hi All,
I have to write a bat file which will install VS .NET 2003 and after that it will delete the setup files from the machine.

so i have written a bat file like
start /wait D:/VS2003/setup/setup.exe /unattendfile //path//unattended.ini
rmdir /S /Q D:/VS2003

so ist command will install the visual studio .NET 2003
and 2nd command will delete after installation done...

but here i got the problem,,
start /wait is not working here...its not waiting for installation to complete....
and it is executing 2nd command "rmdir /S /Q D:/VS2003" ,which will delete binary before installation got finished...
so installation got interrupted....
i dont know why start /wait is not working....
is anybody know what is the issue,???

is there anything to wait for one command to finish execution??

Thanks in advance for any input....

0 Comments   [ + ] Show comments

Answers (12)

Posted by: dunnpy 14 years ago
Red Belt
0
Is the setup.exe still running whilst the installation is in progress, or does setup.exe close after it has launched other executables, or an .msi file?

Looking at the package knowledgebase entry for VS .NET 7.x it appears that other installers are launched - the KB also details how to separate the files down to be installed individually.

If you have to use a batch file for your purpose then you'll have to put a pause in somehow - maybe a long ping request that will allow time to install before the deletion occurs. Or use sleep.exe from the Windows 2003 Resource Kit.

Thanks,

Dunnpy
Posted by: krishanu@hp 14 years ago
Orange Belt
0
Hi,
Thank you for your answer...

how to use pause or sleep.exe command...??/
Assume I need to execute two command
1> start /wait D:/setup/setup.exe /unattendfile //path/unattend.ini (Here it is not waiting , so it will execute 2nd command before this command got finished)
2>rmdir /S /Q D:/setup

so please tell me how to use pause command or sleep.exe for this two command to execute properly...

Thanks in advance
Posted by: dunnpy 14 years ago
Red Belt
0
There's a new website that might be able to help you - here
Posted by: ekniranjan 14 years ago
Purple Belt
0
Krishna,
Just try to do like this
1> start /wait D:/setup/setup.exe /unattendfile //path/unattend.ini (Here it is not waiting , so it will execute 2nd command before this command got finished)
Pause
cls
2>rmdir /S /Q D:/setup

just a trial..................

How to use Pause :

Pauses the running of a batch file and displays the message "Press any key to continue ..." on the screen. If the optional message is included, it will be displayed first. Use pause to optionally terminate the batch file with <Ctrl-Break> at a safe place. The optional message is not displayed when echo is OFF, so the message must be echoed on the preceding line.

pause [message]
examples pause {Displays "Press any key to continue ...".}

pause < nul {Waits with no comment.}

pause Do you want to continue? {Displays "Do you want to continue?" with "Press any key to continue ..." on the next line.}
Posted by: krishanu@hp 14 years ago
Orange Belt
0
Hi,
Thank u for ur reply,,,
I want complete silent installation and remove the binary,.
start /wait D:/setup/setup.exe /unattendfile //path/unattend.ini ,,, for this command i have to wait 1 hour to complete....
if i use
pause
cls
it will ask user to hit any key....
But user should not do anything....
so i have to wait for 1 hour and then execute "rmdir /S /Q D:\setup"
Posted by: dunnpy 14 years ago
Red Belt
0
It looks as though you need to use something like sleep.exe then.

I've already told you where you can get it from and even provided a link where the first result takes you to the download page.

There's even a help file included when you install the download I suggested that details what sleep.exe does and how to use it.

Dunnpy
Posted by: ekniranjan 14 years ago
Purple Belt
0
Try to run some other program .exe by which you will get output soon, so you can apply that one same to your program.
Posted by: anonymous_9363 14 years ago
Red Belt
0
The top-level stub is just a loader for the "proper" set-up stub. That's why the START /WAIT appears not to work: the stub simply loads and executes the other EXE, then exits. As for as START is concerned, the process has completed.

Either a) find out which process is ACTUALLY doing the work; b) re-package it, if it's not already MSI-driven (which, from MS, is very hard to believe.) or c) if it is MSI-driven, do an admin install and use the resulting MSI.
Posted by: dunnpy 14 years ago
Red Belt
0
Ian,

you can lead a horse to water..... but you can't make them use the information that they've already been pointed at - or drink.

Dunnpy
Posted by: anonymous_9363 14 years ago
Red Belt
0
Sorry, Paul. I guess when speed-reading, I need less speed and more reading.
Posted by: dunnpy 14 years ago
Red Belt
0
Maybe if we both point him in the right direction he'll take the hint [:D]
Posted by: anonymous_9363 14 years ago
Red Belt
0
It's a shame that HP (who, given the OP's nickname, I imagine are his employer) have let standards slip so far. Anyone who's spent even a tiny amount of time in what one might call the support area could have worked out what the problem was. It seems these days you can call yourself a packager if you know how to fire up WPS/AS.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ