/build/static/layout/Breadcrumb_cap_w.png

VBSript to remove Start Menu for Autodesk

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

Answers (2)

Posted by: anonymous_9363 8 years ago
Red Belt
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.

Posted by: Badger 8 years ago
Red Belt
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.
 
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