vampus8 Posted August 2, 2006 Share Posted August 2, 2006 (edited) I'm working on an unattended WinXP Pro DVD with WPI 5.1 followup. For a number of program installations, I run a small batch file after the main installation command to clean up that program's start menu entries. Often, though the programs install correctly, the followup batch files don't run at all or don't finish. When I run them manually from the CD they function just fine. Also, I've checked the execution directories in my config.js and they're ok too. Does anyone have any ideas?Appologies for the noobishness. Any help would be greatly appreciated.Here's my Config.js file and one of the sample batches. Again, sometimes all of the commands in a batch file execute properly, sometimes none of them, sometimes only the first few.firefox_start.bat:cmdow @ /HID@ECHO OFFcopy "%ALLUSERSPROFILE%\start menu\programs\Mozilla Firefox\Mozilla Firefox.lnk" "%ALLUSERSPROFILE%\start menu\programs\"rmdir /S /Q "%ALLUSERSPROFILE%\start menu\programs\Mozilla Firefox\" Edited August 2, 2006 by vampus8 Link to comment Share on other sites More sharing options...
sadicq Posted August 2, 2006 Share Posted August 2, 2006 (edited) I don't think your problem is the batch file, but the installer.I know I once tried to install a plugin for Firefox right after it installed.You should adjust your batches so they wait for that link to be created then delete it. Edited August 2, 2006 by sadicq Link to comment Share on other sites More sharing options...
vampus8 Posted August 2, 2006 Author Share Posted August 2, 2006 thanks for the advice sadicq. so there's something specific about mozilla's installers? should i just add a sleep command at the start of the batch file?it seems to be happening with other programs too, though. the batch file to copy windirstat also doesn't seem to consistely work, unless i run it directly.cmdow @ /HID@echo offmkdir "c:\program files\WinDirStat\"copy "%CDROM%\Software\Extras\WinDirStat\windirstat.exe" "c:\program files\WinDirStat\"copy "%CDROM%\Software\Extras\WinDirStat\windirstat.lnk" "%AllUsersProfile%\Start Menu\Programs"yesterday this created a windirstat directory in program files and didn't copy anything.thanks in advance for the help.kevin Link to comment Share on other sites More sharing options...
sadicq Posted August 2, 2006 Share Posted August 2, 2006 Ok ... that was not supposed to happen. About firefox I can say it behaves a little different from the others, but the one ... it is strange. I'll look into this when I have some time. Unfortunaly, I'm really busy these days, but you should also wait for the 5.3 version. I heard they are trying to fix a problem regarding batches, so stay tuned and read the other threads in this forum too. Link to comment Share on other sites More sharing options...
vampus8 Posted August 2, 2006 Author Share Posted August 2, 2006 is there any chance that converting the batch files to .cmds would make a functional difference? what about double executing them? Link to comment Share on other sites More sharing options...
sadicq Posted August 2, 2006 Share Posted August 2, 2006 (edited) 1. I really doubt it would 2. No. That's a really bad idea! What happens if one gets executed twice? You'll get some ugly errors. Edited August 2, 2006 by sadicq Link to comment Share on other sites More sharing options...
vampus8 Posted August 2, 2006 Author Share Posted August 2, 2006 (edited) 1) ok2) would you though? they're just mkdir/copy/paste/delete commands for the most part. if it tries to copy something that isn't there, it won't hurt anything. if it repastes something that's already there, it'll just overwrite, if it mkdirs a directory that's already there, it won't change anythign, if it tries to delete somethign that's not there it'll just not do it. so it might increase my chances of actually getting it done, no? might give some interesting error codes in the wpi log but, the real test is only whether the start menu turns out right.it's a dirty job fix, but might work?thanks,kevin Edited August 2, 2006 by vampus8 Link to comment Share on other sites More sharing options...
sadicq Posted August 2, 2006 Share Posted August 2, 2006 Way too dirty in my opinion.I just can't test a fix for this ... but anyone who uses cmds should show us some support...Read this and look for the cmd errors Pliek is talking about. Link to comment Share on other sites More sharing options...
Pliek Posted August 3, 2006 Share Posted August 3, 2006 (edited) When looking in topic for bugs reports 5.2, there are 4 fixes to be made.Make these fixes and your batches wil be done right, atleast for me it worked.I use .cmd files for my start menu folder also, and that works fine.Example of my .cmd that also starts WPI.@ECHO OFFREM Hide this command window.%systemroot%\system32\cmdow.exe @ /hidREM Example, how to look for CDROM-drive. Must have win51ip.SP2 at the root of the CD.for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\win51ip.SP2 set CDROM=%%i:echo Found CD-Rom as drive %CDROM%set wpipath=%cdrom%\WPIstart /wait %cdrom%\WPI\WPI.htaDEL "%systemdrive%\Documents and Settings\Administrator\Onlangs geopend\*.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\QuickPar.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\Uninstall.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\Website.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\Programma's\TuneUp Utilities 2006.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Menu Start\PowerArchiver.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\ICQ 5.1.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\WinRAR.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\WinZip.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\XstreamRadio 3.02.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Windows-catalogus.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\IncrediMail.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programmatoegang en -instellingen.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Windows Movie Maker.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Adobe Reader 7.0.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\BearShare.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Adobe ImageReady CS.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Adobe Photoshop CS.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Microsoft Office PowerPoint Viewer 2003.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Orca.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\PerfectDisk 7.0.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero BackItUp [Engelse Help].lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero Burning ROM [Engelse Help].lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero Cover Designer [Engelse Help].lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero Express [Engelse Help].lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero SoundTrax [Engelse Help].lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Nero\Handleiding voor Gebruikers\Nero Wave Editor [Engelse Help].lnk"DEL "%AllUsersProfile%\Bureaublad\*.lnk"DEL /s/q "%userprofile%\Bureaublad\*.lnk"DEL "%systemdrive%\Program Files\XstreamRadio 3.02\Flags\ireland.bmp"DEL "%systemdrive%\Program Files\Registry Mechanic\ref\Deutsch.ini"DEL "%systemdrive%\Program Files\Registry Mechanic\ref\Espanol.ini"DEL "%systemdrive%\*.log"DEL "%systemdrive%\Documents and Settings\Administrator\Cookies\*.txt"DEL "%systemdrive%\Documents and Settings\Administrator\Cookies\*.tmp"RD /S /Q %systemdrive%\"Program Files\Common Files\Microsoft Shared\DAO\ssdata\"RD /S /Q %systemdrive%\"Documents and Settings\Administrator\Local Settings\Temporary Internet Files\"RD /S /Q %systemdrive%\"Documents and Settings\Administrator\Local Settings\Geschiedenis\"RD /S /Q %systemdrive%\"Macromedia Dreamweaver.v8 .0"\RD /S /Q %systemdrive%\D\RD /S /Q %systemdrive%\Install\RD /S /Q %systemdrive%\RECYCLER\RD /S /Q %systemroot%\"Temp\"net user aspnet /deleteSET PP=%systemroot%\system32\WPI\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Resetten van het Beveiligingscentrum" /fREG ADD %KEY%\001 /VE /D "Reset Windows Security Center" /fREG ADD %KEY%\001 /V 1 /D "%PP%WinMgmt.cmd" /fREM Herstarten van de PC binnen 30 seconden...shutdown.exe -r -f -t 30 -c "Windows zal over 30 seconden worden herstart."EXIT Edited August 3, 2006 by Pliek Link to comment Share on other sites More sharing options...
vampus8 Posted August 3, 2006 Author Share Posted August 3, 2006 are those fixes applicable to wpi5.1 as well? i haven't taken the trouble to migrate to 5.2, especially with kels saying 5.3 is on the way so soon.thanks for the input everyone kevin Link to comment Share on other sites More sharing options...
Pliek Posted August 3, 2006 Share Posted August 3, 2006 No I don't think so, these are specific for 5.2. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now