MHz Posted August 30, 2004 Author Share Posted August 30, 2004 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. Link to comment Share on other sites More sharing options...
mazin Posted September 1, 2004 Share Posted September 1, 2004 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! Link to comment Share on other sites More sharing options...
Gerrit.B Posted September 1, 2004 Share Posted September 1, 2004 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... Link to comment Share on other sites More sharing options...
mazin Posted September 1, 2004 Share Posted September 1, 2004 C:\Documents and Settings\All Users = %AllUsersProfile%C:\Documents and Settings\Administrator = %UserProfile%You can replace those with these. Link to comment Share on other sites More sharing options...
GreenMachine Posted September 2, 2004 Share Posted September 2, 2004 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 Link to comment Share on other sites More sharing options...
MHz Posted September 2, 2004 Author Share Posted September 2, 2004 @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. 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