Delete 0k file

I have an application that runs via a MSI. It all runs fine but at the end of the installer it leaves a shortcut on the desktop. This shortcut has No file extension and it is a 0k file. I can't delete it using DOS or any other script. It is like the file is not really there and I say that because when you press F5 on the Desktop the file will disappear. But, users run this installer and see the file and complain since pressing F5 is too complex for most of them :-)

How do you delete a 0k file with no extension?

I do not want to open up the MSI either, I would like to know how to do this from a command line if possible.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 13 years ago
Red Belt
In the past, I've overwritten a zero-byte file with some other file and then deleted it. However, attempting to delete the shortcut would be the wrong approach. It'd be much simpler to prevent its installation in the first place.

To do that, use your authoring tool to build a transform file, in which the shortcut is removed. Then deploy the MSI and transform together:

MSIExec /i [whatever.MSI] TRANSFORMS="[whatever.MST] [other command-line arguments]
Posted by: mhsl808 13 years ago
Fifth Degree Brown Belt
Yes, that is what I ended up doing. In my script I copied down a new file with the same name and then deleted that. Not the most elegant solution but it works.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login


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