/build/static/layout/Breadcrumb_cap_w.png

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 15 years ago
Red Belt
0
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 15 years ago
Fifth Degree Brown Belt
0
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.
 
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