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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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..

Answered 11/04/2008 by: AssmbLLYCoder
Senior Yellow Belt

Please log in to comment