Page 1 of 1
Removing shortcuts
Published: June 6, 2016 - 09:11
by gaelds
I'm having trouble removing desktop icons after installing certain packages, including Adobe Reader DC and Algobox. Do you have a command that would work for these two programs?
Here are the instructions I had put in my packages so far, which do not delete anything.
Code: Select all
remove_file(makepath(common_desktop(),'Acrobat Reader DC.lnk'))
remove_desktop_shortcut('Algobox')
remove_user_desktop_shortcut('Algobox')
Re: Deleting shortcuts
Published: June 6, 2016 - 10:19
by gaelds
Otherwise, I also have the PhotoFiltre 7 shortcut which won't delete.
Re: Deleting shortcuts
Published: June 6, 2016 - 10:59
by sfonteneau
`remove_desktop_shortcut('Algobox')` Removes the shortcut from the public Desktop folder (available to all users).
`remove_user_desktop_shortcut('Algobox')` Removes the shortcut from the current user's Desktop folder.
Therefore, it must be placed in a session setup.
For example, PhotoFiltre will create the shortcut on the user's Start menu (often the administrator).
Re: Deleting shortcuts
Published: June 6, 2016 - 1:35 PM
by gaelds
Thank you, session_setup works for Algobox and Photofiltre but the Acrobat shortcut is on the public desktop and remove_desktop_shortcut() does not work.
Re: Deleting shortcuts
Published: June 17, 2016 - 1:59 PM
by gaelds
I'm still stuck on removing the icons from the Public desktop because of:
- Adobe reader DC
Paint.NET
Photofiltre 7
Audacity
I tried with
remove_file(makepath(common_desktop(),'SHORTCOURCI.lnk'))
or remove_desktop_shortcut('Shortcut.lnk') is the same thing