I am able to remove desktop shortcut, but for some reason I cannot remove start menu shortcut. The name as it appears in Start Menu and ARP is Quick Uninstall Tool for Autodesk Inventor 2012. Others used it and it worked for them. I used the following:

GenLogHandler "Deleting Start Menu shortcut for Uninstall tool"
RemSMshortcut="C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Autodesk\"
If objFSO.FileExists (RemSMshortcut & "\Uninstall Tool.lnk") Then
    objFSO.DeleteFile (RemSMshortcut & "\Uninstall Tool.lnk")

AND

GenLogHandler "Deleting Start Menu shortcut for Uninstall tool"
autoDeskSM="C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Autodesk\"
If objFSO.FileExists (autoDeskSM & "\Uninstall Tool.lnk") Then
    objFSO.DeleteFile (autoDeskSM & "\Uninstall Tool.lnk")
End If

Thanks in advance!!!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

Count the number of backslashes you have in the path and file name...

Also, it's better practice to apply a transform to the vendor's MSI and use that to delete the shortcut from the Shortcut table.

Answered 03/04/2016 by: VBScab
Red Belt

Please log in to comment

Answers

0
I second the idea of using an MST.
you normally have to edit the setup.ini to direct it to the MST you have created.
Answered 03/05/2016 by: Badger
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share