Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Troubles timing a script/logoff user

Status
Not open for further replies.

Rudjer

IS-IT--Management
Jul 21, 2001
2
US
Hello all,

At this moment I am busy writing a little script which allows me to distribute Palm software on a large number of pc's. Within my script I am executing a batch file which starts the silent installation of Desktop to Go software. The syntax of this batch file:

c:\palm\dtginstall\setup.exe -S -F1C:\palm\dtginstall\setup.iss

I am happy with the results of this silent install but I do not seem to be able to get the timing right. The problem is that if I insert a sleep after initiating the silent install my silent install also falls to sleep... I hoped this would give the install sufficient time before continuing the script... does anyone have any idea how to prevent this???

Another option would be to stop the script after initiating the silent install. For this I would have to force a logoff. I tried the following syntax mentioned in the SMS Installer book from Rod Trent, page 577 but I do get a error that a certain component does not exist

item: Execute Program
Pathname=%sys32%\rundll32.exe
Command Line=shell32.dll,SHExitWindowseEx 0

Logoff.exe might be a option if I could be sure that it does not happen while my silent install is still running.

Your comments are very much appreciated.

With kind regards,

Rudjer
 
One step further... I inserted a Check if File/Dir Exists... my script is running properly now... but how do I assure that my messages are always on top of messages generated by the "silent" install (which is not that silent after all....) this package will be distributed on CD...

Kind regards,

Rudjer
 
Hi,

What is language are you scripting in?

Joseph L. Poandl
MCSE 2000


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top