August 30, 200422 yr Author I think it may be a Virtual PC hiccup?If i created xxx.bat. then enter del xxx.bat, then run it in virtual pc. it remains?Do the same in real environment. It self deletes.Wierd. May have to trust that it will work when I use it for real installation.
September 1, 200421 yr One more note to safely have it working in all situations is to define the path to startup.cmd.For example, let the last line in startup.cmd be like the blue one below:cls@ECHO OFF.........del "%UserProfile%\start menu\PowerArchiver.lnk"del "%UserProfile%\start menu\Programs\Internet Explorer.lnk"del "%UserProfile%\start menu\Programs\Windows Media Player.lnk"del "%UserProfile%\start menu\Programs\Remote Assistance.lnk"del "%AllUsersProfile%\start menu\Programs\Windows Movie Maker.lnk"del "%UserProfile%\start menu\Programs\startup\startup.cmd"You can use sleep or not according to your needs. This doesn't affect the deletion of startup.cmd itself, as you know.This MUST work in all circumstances, for sure!
September 1, 200421 yr I was trying to put this part into my start.cmd.ECHO.ECHO Installing Symantec AntiVirus Corporate v9 0ECHO Please wait...start /wait %systemdrive%"\install\Applications\Symantec AntiVirus Corporate v9 0\Symantec AntiVirus.msi" /qnECHO.ECHO Installing Symantec AntiVirus Corporate v9 0 FinishedECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installECHO.ECHO Temp Installation Files DeletedECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\DriversECHO.ECHO Temp Driver Files DeletedECHO.del "C:\Documents and Settings\All Users\Desktop\*.lnk"del "C:\Documents and Settings\Administrator\Desktop\*.lnk"del "C:\Documents and Settings\Administrator\Start Menu\Programs\*.lnk"del "C:\Documents and Settings\All Users\Start Menu\*.lnk"del "C:\Documents and Settings\All Users\Start Menu\Programs\*.lnk"ECHO.ECHO Installing ActiveSync 3.7.1ECHO Please wait..start /wait %systemdrive%"\install\Applications\ActiveSync 3.7.1\is_setup.exe" /?ECHO.ECHO Installing ActiveSync 3.7.1 FinishedThe "del: part is not yet tested on DVD but will be soon, it is only tested as a seperate cmd fileI put the "del" part before some other appz because some shortcuts i want to keep.Hope this works...
September 1, 200421 yr C:\Documents and Settings\All Users = %AllUsersProfile%C:\Documents and Settings\Administrator = %UserProfile%You can replace those with these.
September 2, 200421 yr Alternativly, you could remove the ActiveSetup - StubPath entries during setup to avoid these shortcuts from being created. JSI has a couple articles about it, as well as some of my ancient posts. Keywords: ActiveSetup & StubPath
September 2, 200421 yr Author @Mazin@echo offcmdow @ /hiddel "%userprofile%\start menu\programs\Internet Explorer.lnk"del "%userprofile%\start menu\programs\Outlook Express.lnk"move "%userprofile%\start menu\programs\Remote Assistance.lnk" "%allusersprofile%\start menu\programs\Accessories\Communications\Remote Assistance.lnk"attrib -r "%allusersprofile%\start menu\programs\startup\xxxx.cmd"del "%allusersprofile%\start menu\programs\startup\xxxx.cmd"xxxx.cmd in startup directory.This is I have working now, full address seems neccesary. Like your idea. Thanks. @GreenMachineI'll certainly look into that approach. Stopping shortcuts being created first would be a benefit indeed. Thanks.
Create an account or sign in to comment