coucou Posted July 11, 2005 Share Posted July 11, 2005 (edited) Hello,I am trying to install CopyToDVD 3.0.56.The silent command " /VERYSILENT /SP- /NORESTART" works, but WPI moves onto the next command (taskkill) before it is done, which is a problem. So, I need to add a sleep time with the CopyToDVD setup.exe command.I have the sleep.exe file in a directory on my DVD and can call the command, but I'm not sure for the correct syntax (here bellow) to make it wait for say 30 seconds.prog[pn]=[CopyToDVD 3.0.56']cmd1[pn]=['%cdrom%\\Software\\VSO\\copytodvd3_setup.exe /VERYSILENT /SP- /NORESTART']cmd2[pn]=[''%cdrom%\\Software\\VSO\\sleep.exe 30']cmd3[pn]=['taskkill /F /IM vsostart.exe']rega[pn]=['%cdrom%\\Software\\VSO\\VSO.reg']dflt[pn]=['yes']cat[pn]=['CD/DVD Burners']ordr[pn]=[400]pn++Does anyone could check and confirm???Regardscoucou Edited July 11, 2005 by coucou Link to comment Share on other sites More sharing options...
Sonic Posted July 11, 2005 Share Posted July 11, 2005 (edited) I use System Sleep (v2.5 1/12/92) Copyright © OzWoz 1988-92 (thanks copy&paste func). I have joint the program, I use it for PowerDVD 5 language patch bug ...usage : Í─────────────────────────────────────────────────────────À ║ System Sleep (v2.5 1/12/92) Copyright © OzWoz 1988-92 ║ Ë─────────────────────────────────────────────────────────¢ Usage: sleep hh:mm[:ss:hd] [/!PK]Sleeps for the time specified then exits. If sleeping terminates normallythen an exit code of 0 is returned else 1. Switches are interpreted as:/! - Display general program and OzWoz information./P - No message display/K - No abort by keypress allowedsleep.exe Edited July 11, 2005 by sonic Link to comment Share on other sites More sharing options...
blinkdt Posted July 12, 2005 Share Posted July 12, 2005 @ coucou Have you ever messed with AutoIt? You can create a simple script and compile it, adjusting the sleep timing to your heart's content. A simple script might take this form:AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(0)Sleep("35000")The script will run for 35 seconds and do nothing while your program finishes up. Link to comment Share on other sites More sharing options...
glent Posted July 12, 2005 Share Posted July 12, 2005 Im having the same problem as coucou, gonna try this out Link to comment Share on other sites More sharing options...
coucou Posted July 12, 2005 Author Share Posted July 12, 2005 TX all,@blinkdt: Usually, i write scripts with AutoIt and solve that problem with sleep(xxxx). The problem is, AutoIt Window Info report for each CopyToDVD "active window screen" except the las one. NO "Window Title", "Status Bar Text", "Visible Window Text".Then, i opted to install CopyToDVD silently with the switches above, call sleep.exe 30 and then call Taskkil.exe to get ride of the last screen.Does my syntax above is correct???Regardscoucou Link to comment Share on other sites More sharing options...
Sonic Posted July 12, 2005 Share Posted July 12, 2005 coucou, you use incorrect syntax, re-read my post ...For 30s you must use sleep 00:00:30Goodbye. Link to comment Share on other sites More sharing options...
coucou Posted July 13, 2005 Author Share Posted July 13, 2005 @sonic: TNX, but i'm using this sleep.exe file. I checked the syntax, its correct. sleep 30 Anyway, this problem answer not works. Because CopyToDVD last screen is hanging out and the "sleep.exe" not called until clicking on the [Exit] .If someone have any idea here the Trial DownloadRegardscoucou Link to comment Share on other sites More sharing options...
Sonic Posted July 14, 2005 Share Posted July 14, 2005 (edited) Lucky day for you Download this compiled AutoIt script ... You must create a batch which launch the AutoIt script with start (without /wait) and after the silent install of CopyToDVD .... Just tested on my system.Goodbye.Source:Opt("TrayIconHide", 1)ProcessWait("VsoStart.exe")ProcessClose("VsoStart.exe")edit: directly in WPI doesn't work .KillVsoStart.exe Edited July 14, 2005 by sonic Link to comment Share on other sites More sharing options...
coucou Posted July 14, 2005 Author Share Posted July 14, 2005 (edited) Salut Sonic,Bien vu! well thought! Merci.In fact i improved it this wayRun("copytodvd3_setup.exe /VERYSILENT /SP- /NORESTART")Opt("TrayIconHide", 1)ProcessWait("VsoStart.exe")ProcessClose("VsoStart.exe")Tested on my system, working.BTW, may you explain Opt("TrayIconHide", 1)Cordialementcoucou Edited July 14, 2005 by coucou Link to comment Share on other sites More sharing options...
Sonic Posted July 14, 2005 Share Posted July 14, 2005 Opt("TrayIconHide", 1) hide the tray icon , just more clean ...You have test in WPI interface ? Because AutoIt script doesn't search in the same directory, si ? Link to comment Share on other sites More sharing options...
coucou Posted July 14, 2005 Author Share Posted July 14, 2005 I didn't test in WPI interface yet.Usually, i put the AutoIt file in the same directory with the called program.What precautions do i have to take to run with WPI??? Regardscoucou Link to comment Share on other sites More sharing options...
Sonic Posted July 14, 2005 Share Posted July 14, 2005 Try in WPI , this doesn't work because the working directory isn't set and is dynamic (%cdrom%) .... sorry for very fast posting ... try & see ...++ Link to comment Share on other sites More sharing options...
coucou Posted July 15, 2005 Author Share Posted July 15, 2005 Then, maybe it will be clleaver to copy the copytodvd archive to %temp% directory and run the autoit installation from there???coucou Link to comment Share on other sites More sharing options...
Sonic Posted July 15, 2005 Share Posted July 15, 2005 hum, yes you can copy copytodvd into %Windir%\TEMP and in AutoIt script set the Run path to %Windir%\TEMP ... play and try it !Goodluck. ++ Link to comment Share on other sites More sharing options...
coucou Posted July 19, 2005 Author Share Posted July 19, 2005 Winrar do it very easySFX the 2 files copytodvd3_setup.exe and the CopyToDVD3.exe (AutoIt installer)here the archive rar comment;The comment below contains SFX script commandsSetup=CopyToDVD3.exeTempModeSilent=1Overwrite=1coucou 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