/build/static/layout/Breadcrumb_cap_w.png

VBS Example for Removing of Files After install

Guys,

I have a MSI created realy dirty :-) it' s an installshield that runs setup -r from the Commandline and the Install is in the MSI.

As i am New to VBS i wanted to ask you guys for an example Script that runs after install.
This Script has to remove 2 Shortcuts that are placed by the native install.

Thanks in advance!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: WiseUser 18 years ago
Fourth Degree Brown Belt
0
Here's a basic example:

Const sSHORTCUTPATH = "C:\Documents and Settings\All Users\Start Menu\Programs\Windows Journal Viewer.lnk"

Set oFso = CreateObject("Scripting.FileSystemObject")

oFso.DeleteFile sSHORTCUTPATH, True

Set oFso = Nothing
Posted by: The Packeteer 18 years ago
Senior Yellow Belt
0
Thanks WiseUser.

Ive implemented the Script and im happy with the result!

Regards,
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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