/build/static/layout/Breadcrumb_cap_w.png

Need A Script to remove a special Shortcut file

Hello All,



I am working with PrimoPDF Setup.exe Application, am using VB script to install and uninstall, both scripts are working fine but the problem is

1. I want to remove Uninstall.exe Shortcut from Startmenu\Program which is getting created during installation. The Uninstall.exe file has a link to uninstallPDF4.XML file to unistall. am not finding a way out to remove such doubly linked short cut. Please help me out if any one has a solution.

One can observe that the shortcut has two destination Files one in C:\Windows and One in C:\Program Files as below is the Original Path.

C:\WINDOWS\PrimoPDF\uninstall.exe /U:C:\ProgramFiles\activePDF\PrimoPDF\Uninstall\uninstallPrimoPDF4.xml"

Thanks & Regards

0 Comments   [ + ] Show comments

Answers (1)

Posted by: AssmbLLYCoder 15 years ago
Senior Yellow Belt
0
I hope the following code should help you achieve what you want:

Set Shell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")

Path = Shell.SpecialFolders("AllUsersPrograms") & chr (92) & "Primo PDF" & chr(92)

'wscript.echo Path & "Uninstall.lnk"

FSO.DeleteFile Path & "Uninstall.lnk"

Here I have assumed that the application shortcut is installed to All Users Start Menu and the name of the shortcut is Uninstall.

It would have been easier if you had posted your script. I hope it helps..

Regards,
AssmbLLYCoder
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ