Jump to content

stopping desktop and shortcut Icons?


 Share

Recommended Posts

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

/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 by MHz
Link to comment
Share on other sites

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

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 by WiSp
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...