mediapla Posted December 8, 2005 Share Posted December 8, 2005 I have a little problem with my unattended setup. I use a EXE to play MP3 Files during GUI Setup, beginning at T32. But if then XP Setup reboots (T0) there is A BSOD, ifi use a configuration with the damned Soundmax-driver. I must switch off and on thecomputer and and the istallation is still running with GUI RunOnce If i cancel the MP3 playing EXE, no error. So i thought : if it is possible to close the program justa little moment before XP reboots, i got no error and i have FULL unattended setup. (Without pressingthe power button) Is it possible to run a AUTOIT Script to close the playing file ?But its only with Soundmax Audio Chips, no problem at Realtek AC97 or HDA Devices.I also tried out Media Player Classic at T12, same Problem BSOD at Reboot. Link to comment Share on other sites More sharing options...
druiddk Posted December 9, 2005 Share Posted December 9, 2005 You can use the killtask.exe (This has been covered in the forums before). Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 9, 2005 Share Posted December 9, 2005 Here is a vbs script that will taskkill the window is hidden.Save As Tkill.VBSRed text is where you place the app nameConst Hidden = 0, Normal = 1, Min = 2 '''' SET THE SIZE OF THE WINDOW Dim Act : Set Act = CreateObject("Wscript.Shell") Act.Run("%comspec% /c TASKKILL /F /T /IM PLACE_APP_NAME_HERE"),Hidden,True Link to comment Share on other sites More sharing options...
Bezalel Posted December 9, 2005 Share Posted December 9, 2005 The question that still needs to be answered is how do you know when to kill the process. My solution would be to start a second process that monitors all windows for the countdown window and kills the player process when it sees the countdown window. (I'm not going to write a code sample for this one but I hope my idea helps you.) Link to comment Share on other sites More sharing options...
druiddk Posted December 9, 2005 Share Posted December 9, 2005 @gunsmokingman:AppName, Is this the WindowTitle your referring to? or the filename.exe? Link to comment Share on other sites More sharing options...
MCT Posted December 9, 2005 Share Posted December 9, 2005 yes the filename exampleit would be explorer.exe Link to comment Share on other sites More sharing options...
druiddk Posted December 9, 2005 Share Posted December 9, 2005 OK! Thanks for clarifying that Link to comment Share on other sites More sharing options...
BoardBabe Posted December 9, 2005 Share Posted December 9, 2005 (edited) I would use xp's tskill.exe cause I don't have no killtask.exe Edited December 9, 2005 by BoardBabe Link to comment Share on other sites More sharing options...
mediapla Posted December 9, 2005 Author Share Posted December 9, 2005 ...but how will I (or the Task-killer Program) know, that the GUI Setup will reboot ? I would make a AutoIt Script like " if WinExists ( "Windows XP Home Edition Setup" , "ungefähr 1 Minute" ) then" (-its a german version), but i dont know, if the title and/or the windows text is the right one. I would use AutoIT to close the self playing MP3. The File i use is a MP3toEXE converted MP3 file, its 15min, starts at T32 and the program loops...so it plays and plays..and install time is various from machine to machine. It should close/kill this program just a moment befor the setup reboots the computer.I hope you can understand my problem.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now