Deleting shortcuts
just a quick question
can I get a script to delete all shortcuts when an msi installs
cheers
can I get a script to delete all shortcuts when an msi installs
cheers
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
cygan
16 years ago
Posted by:
fuz_kitten
16 years ago
Do you need to lanuch the setup.exe, cant you just install the MSI?
If not...
----
Dim FSO, aFile
set FSO=CreateObject("Scripting.FileSystemObject")
set aFile=fso.GetFile("C:\Documents and Settings\All Users\Start Menu\Programs\YourIcon.lnk")
aFile.Delete
----
You might have to add a while loop a so the vbs doesnt try and remove the icon before its been created. I have a Wise script to do that as my VB is pants. Let me know if you want it.
Charlie
If not...
----
Dim FSO, aFile
set FSO=CreateObject("Scripting.FileSystemObject")
set aFile=fso.GetFile("C:\Documents and Settings\All Users\Start Menu\Programs\YourIcon.lnk")
aFile.Delete
----
You might have to add a while loop a so the vbs doesnt try and remove the icon before its been created. I have a Wise script to do that as my VB is pants. Let me know if you want it.
Charlie
Posted by:
nheim
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.