/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


VBSript to remove Start Menu for Autodesk

03/03/2016 1345 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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share