MSFN Forum: delete shortcuts without success - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

delete shortcuts without success Rate Topic: -----

#1 User is offline   Major 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 303
  • Joined: 30-January 05

Posted 03 February 2005 - 06:46 PM

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" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winzip.exe /S" /f
REG ADD %KEY%\002 /V 2 /D "REGEDIT /S %systemdrive%\install\winzip.reg" /f
REG ADD %KEY%\002 /V 3 /D "\"%PROGRAMFILES%\WinZip\winzip32.exe\" /noqp /notip /autoinstall" /f
DEL /f /q "%ALLUSERSPROFILE%\Menu inicio\WinZip.lnk"

REG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.6.0.5" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /f
REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Nero6605ESP.exe /silent /noreboot" /f
DEL /f /q "%ALLUSERSPROFILE%\Escritorio\Nero StartSmart.lnk"
DEL /f /q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"

Any suggestions, Thanks.


#2 User is offline   rendrag 

  • grrrrrr
  • PipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 28-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 February 2005 - 06:52 PM

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

#3 User is offline   asbsamsf 

  • Junior
  • Pip
  • Group: Members
  • Posts: 75
  • Joined: 02-December 04

Posted 03 February 2005 - 07:13 PM

rendrag is in the right, but if you insist on runonceex.cmd it should by as:

Quote

REG ADD %KEY%\002 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winzip.exe /S" /f
REG ADD %KEY%\002 /V 2 /D "REGEDIT /S %systemdrive%\install\winzip.reg" /f
REG ADD %KEY%\002 /V 3 /D "\"%PROGRAMFILES%\WinZip\winzip32.exe\" /noqp /notip /autoinstall" /f

REG 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" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /f
REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Nero6605ESP.exe /silent /noreboot" /f

REG 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"""


#4 User is offline   Major 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 303
  • Joined: 30-January 05

Posted 03 February 2005 - 07:45 PM

Hello and thans men, I have followed your advice and I have created file aside with the name: cleanup.cmd

my runonce.cmd:
cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing application" /f

REG ADD %KEY%\005 /VE /D "Nero Burning Rom 6.6.0.5" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Nero6605.exe /silent /noreboot /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /Write_SN" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\NBR6605ESP.exe /silent /noreboot" /f
REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Cleanup.cmd" /f

and my cleanup.cmd:
cmdow @ /HID
@echo off

DEL /f /q "%ALLUSERSPROFILE%\Escritorio\Nero StartSmart.lnk"
DEL /f /q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"

exit

Thanks again men and it works perfectly

#5 User is offline   muiz 

  • SPECIAL
  • PipPipPipPipPipPip
  • Group: Banned
  • Posts: 1,055
  • Joined: 03-August 03
  • OS:none specified
  • Country: Country Flag

Posted 04 February 2005 - 04:26 AM

and how for the NON runonce users?

#6 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 04 February 2005 - 05:14 AM

Quote

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"

//Standard Crap
RD /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-Aware
DEL "%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 7
DEL "%AllUsersProfile%\Desktop\Adobe Reader 7.0.lnk"

//Adobe Gamma Loader
DEL "%AllUsersProfile%\Start Menu\Programs\Startup\Adobe Gamma Loader.lnk"


//AdAware Se Professional
DEL "%UserProfile%\Desktop\Ad-*.lnk"


//FlashGet
DEL "%UserProfile%\Desktop\FlashGet.lnk"


//Nero
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"
DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"


//Winamp
DEL "%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 Drivers

RD /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 6

del "%ProgramFiles%\CyberLink\PowerDVD\OLRSubmission\OLRSubmission.exe"
del "%ALLUSERSPROFILE%\Start Menu\Programs\CyberLink PowerDVD\On-Line Registration.lnk"


//TimeOut
reg delete HKCU\Software\Microsoft\InternetExplorer\Styles /F
reg delete HKCU\Software\Microsoft\Internet Explorer\Styles /F

//Shortcuts
DEL "%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 Rename
rmdir /s /q "%ALLUSERSPROFILE%\Start Menu\Programs\Batch Rename .EXE\Internet"

//UltraISO
DEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso online order.lnk
DEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso Revision History.lnk
DEL "%ALLUSERSPROFILE%\Start Menu\Programs\UltraISO\ultraiso Web Site.lnk

//Adobe Setup Files
rmdir /s /q "%PROGRAMFILES%\Adobe\Acrobat 7.0\Setup Files\RdrBig"

rmdir /s /q "C:\WPI"


EXIT


#7 User is offline   tkmadison 

  • Junior
  • Pip
  • Group: Members
  • Posts: 75
  • Joined: 28-August 05

Posted 14 December 2005 - 11:54 AM

View Postasbsamsf, on Feb 3 2005, 07:13 PM, said:

rendrag is in the right, but if you insist on runonceex.cmd it should by as:

Quote

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.

This post has been edited by tkmadison: 14 December 2005 - 11:58 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy