/build/static/layout/Breadcrumb_cap_w.png

VBS to delete a shortcut folder under “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\" and add new one

Hi,

 

1. I need to delete application shortcut "WRQ Reflection" under “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\" in my MST.

2. In the same script I need to add a shortcut folder "Reflection" under “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\"


Can any provide me a single script for the above 2 functions and how it is added in Custom Action?



0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: anonymous_9363 10 years ago
Red Belt
3

You don't need script! Do it properly. Use the RemoveFile and Shortcut tables.

Posted by: Scorp18 10 years ago
Orange Senior Belt
0

It's MST! I forgot that! I manually deleted old shortcuts from shortcut table and added new ones :)

Thanks for the response.

 
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