Categories
Blog Other IT Stuff Software Packaging

Kill the shortcuts

I’m a big fan of the RuckZuck tool  http://ruckzuck.tools/default.aspx which makes it very easy to download, install or update software.

How does it work

RuckZuck knows the links to the latest versions of Software and the parameters how the software can be installed silently. So if you update or install a software, the tool does download the file(s) from the vendor’s web-site, verifies that the file is valid (based on Hash values) and just triggers a silent install.

ruckzuck.tools (08.09.2018)

My problem

Because the installation is only silent a shortcut will be created. What is something I don’t need for sure. Especially when I set up a computer or I update a long list of applications.

How I fix that

The following code can remove these shortcuts. Just add in the array the name of the shortcut (You don’t have to write the full name but write enough to prevent deleting the wrong shortcut).

$programs =  @("360 Total Sec", "Lenovo", "SHAREit", "PDF24","VLC","Google C","CCleaner") 

foreach($shortcut in $programs){

    $shortcut = "$env:public\Desktop\$shortcut*.lnk" 

     if(Test-Path $shortcut){ 
        rm $shortcut
    } 
}

I run the code after I update my computer. This saves me time because I don’t have to check which links I still need and which I want to delete. I know it sounds super lazy but because of this laziness I learned programing very quickly ;-).