/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


VBSript to remove Start Menu for Autodesk

03/03/2016 1399 views

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



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

All 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

 
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