roofninja Posted November 21, 2006 Share Posted November 21, 2006 I have a simple program to install spybot 1.4 but the only thing is it installs a desktop and shortcut Icons. Is there a command line command that will stop this? I have tried the /noicons but it that is not what I need. If not, then how do I delete them after they have been created? run ('spybotsd14.exe /nocancel /silent /components="main"') #NoTrayIcon winclose ("spybot_v1_4");closes starting directory RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!! Link to comment Share on other sites More sharing options...
MHz Posted November 21, 2006 Share Posted November 21, 2006 (edited) /NOICONS Instructs Setup to initially check the Don't create a Start Menu folder check box on the Select Start Menu Folder wizard page.So, using the /NOICONS switch will disallow icons in the start menu. (unless the author disabled that wizard page) Use this function for the Desktop icon (change 'shortcutname' to the correct name) ; function call _Desktop('shortcutname.lnk') Func _Desktop($shortcut) ; Delete a Desktop shortcut. If FileExists(@DesktopDir & '\' & $shortcut) Then Return FileDelete(@DesktopDir & '\' & $shortcut) ElseIf FileExists(@DesktopCommonDir & '\' & $shortcut) Then Return FileDelete(@DesktopCommonDir & '\' & $shortcut) EndIf EndFunc Edit: More info on wizard Edited November 21, 2006 by MHz Link to comment Share on other sites More sharing options...
roofninja Posted November 21, 2006 Author Share Posted November 21, 2006 So, using the /NOICONS switch will disallow icons in the start menu. (unless the author disabled that wizard page)I tried that and it had no Icons in the programs menu, but it still left the desktop and shortcut Icons. I would like the opposite to happen.I will add that function to the script. Thanks. RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!! Link to comment Share on other sites More sharing options...
WiSp Posted November 21, 2006 Share Posted November 21, 2006 (edited) I tried that and it had no Icons in the programs menu, but it still left the desktop and shortcut Icons. I would like the opposite to happen.I will add that function to the script. Thanks.Many times these programs will stick icons in the "C:\Documents and Settings\All Users\Desktop\" folder. Just put in your AutoIT script to delete these shortcuts at the end of the program. Edited November 21, 2006 by WiSp 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