Major Posted February 4, 2005 Share Posted February 4, 2005 Hi Men, I try to install unattended applications. all seem to be good except it doesnt detele the shortcuts i have specified, my runonceex.cmd:REG ADD %KEY%\002 /VE /D "WinZip 9.0" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winzip.exe /S" /fREG ADD %KEY%\002 /V 2 /D "REGEDIT /S %systemdrive%\install\winzip.reg" /fREG ADD %KEY%\002 /V 3 /D "\"%PROGRAMFILES%\WinZip\winzip32.exe\" /noqp /notip /autoinstall" /fDEL /f /q "%ALLUSERSPROFILE%\Menu inicio\WinZip.lnk"REG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.6.0.5" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /fREG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Nero6605ESP.exe /silent /noreboot" /fDEL /f /q "%ALLUSERSPROFILE%\Escritorio\Nero StartSmart.lnk"DEL /f /q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"Any suggestions, Thanks. Link to comment Share on other sites More sharing options...
rendrag Posted February 4, 2005 Share Posted February 4, 2005 to be honest, i'm not sure runonce can do that, though I'm sure I'll be corrected if that's not the case...I personally would put all those DEL commands into a seperate command file (such as cleanup.cmd) and make another runonce entry to run that command file. Much easier IMHO Link to comment Share on other sites More sharing options...
asbsamsf Posted February 4, 2005 Share Posted February 4, 2005 rendrag is in the right, but if you insist on runonceex.cmd it should by as:REG ADD %KEY%\002 /VE /D "WinZip 9.0" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winzip.exe /S" /fREG ADD %KEY%\002 /V 2 /D "REGEDIT /S %systemdrive%\install\winzip.reg" /fREG ADD %KEY%\002 /V 3 /D "\"%PROGRAMFILES%\WinZip\winzip32.exe\" /noqp /notip /autoinstall" /fREG ADD %KEY%\002 /V 4 /D "cmd.exe /c del /Q /F ""%ALLUSERSPROFILE%\Menu inicio\WinZip.lnk"""REG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.6.0.5" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /fREG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Nero6605ESP.exe /silent /noreboot" /fREG ADD %KEY%\005 /V 4 /D "cmd.exe /c del /Q /F ""%ALLUSERSPROFILE%\Escritorio\Nero StartSmart.lnk"""REG ADD %KEY%\005 /V 5 /D "cmd.exe /c del /Q /F ""%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk""" Link to comment Share on other sites More sharing options...
Major Posted February 4, 2005 Author Share Posted February 4, 2005 Hello and thans men, I have followed your advice and I have created file aside with the name: cleanup.cmdmy runonce.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing application" /fREG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.6.0.5" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /fREG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\NBR6605ESP.exe /silent /noreboot" /fREG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Cleanup.cmd" /fand my cleanup.cmd:cmdow @ /HID@echo offDEL /f /q "%ALLUSERSPROFILE%\Escritorio\Nero StartSmart.lnk"DEL /f /q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"exitThanks again men and it works perfectly Link to comment Share on other sites More sharing options...
muiz Posted February 4, 2005 Share Posted February 4, 2005 and how for the NON runonce users? Link to comment Share on other sites More sharing options...
Astalavista Posted February 4, 2005 Share Posted February 4, 2005 DEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"//Standard CrapRD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"del "%allusersprofile%\desktop\Divx Movies.lnk"//Ad-AwareDEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Ad-Aware SE Personal.lnk"del "%Administratorprofile%\desktop\Ad-Watch*.lnk"DEL "%AppData%\Microsoft\Internet Explorer\Quick Launch\Ad*.lnk"//Adobe Reader 7DEL "%AllUsersProfile%\Desktop\Adobe Reader 7.0.lnk"//Adobe Gamma LoaderDEL "%AllUsersProfile%\Start Menu\Programs\Startup\Adobe Gamma Loader.lnk"//AdAware Se ProfessionalDEL "%UserProfile%\Desktop\Ad-*.lnk"//FlashGetDEL "%UserProfile%\Desktop\FlashGet.lnk"//Nero DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"//WinampDEL "%UserProfile%\Desktop\Winamp.lnk"//Deleting Sample Music, Playlists, and Pictures...RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Music\"RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Playlists\"RD /S /Q "%AllUsersProfile%\Documents\My Pictures\Sample Pictures\"REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f//Remove DriversRD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\RD /S /Q %systemdrive%\install\Cache\RD /S /Q %systemdrive%\DP\RD /S /Q %systemdrive%\WPI\del "%systemdrive%\DP.exe"//PowerDVD 6del "%ProgramFiles%\CyberLink\PowerDVD\OLRSubmission\OLRSubmission.exe"del "%ALLUSERSPROFILE%\Start Menu\Programs\CyberLink PowerDVD\On-Line Registration.lnk"//TimeOutreg delete HKCU\Software\Microsoft\InternetExplorer\Styles /Freg delete HKCU\Software\Microsoft\Internet Explorer\Styles /F//ShortcutsDEL "%ALLUSERSPROFILE%\Start Menu\Super TextTwist.lnk"del "%ALLUSERSPROFILE%\Desktop\stamps.com.lnk"del "%ALLUSERSPROFILE%\Desktop\ThumbsPlus 7.lnk"del "%ALLUSERSPROFILE%\Desktop\Super TextTwist.lnk"del "%ALLUSERSPROFILE%\Desktop\clonecd.lnk"del "%homepath%\Desktop\50*.lnk"RD /S /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Stamps.com"//Batch Renamermdir /s /q "%ALLUSERSPROFILE%\Start Menu\Programs\Batch Rename .EXE\Internet"//UltraISODEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso online order.lnkDEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso Revision History.lnkDEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso Web Site.lnk//Adobe Setup Filesrmdir /s /q "%PROGRAMFILES%\Adobe\Acrobat 7.0\Setup Files\RdrBig"rmdir /s /q "C:\WPI"EXIT Link to comment Share on other sites More sharing options...
tkmadison Posted December 14, 2005 Share Posted December 14, 2005 (edited) rendrag is in the right, but if you insist on runonceex.cmd it should by as:REG ADD %KEY%\002 /V 4 /D "cmd.exe /c del /Q /F ""%ALLUSERSPROFILE%\Menu inicio\WinZip.lnk"""It should be pointed out that you would likely, in the event of using this in RunOnceEx, need to add in those extra backslashes as mentioned in the unattended guide. Edited December 14, 2005 by tkmadison 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