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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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]
Answered 04/28/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 04/28/2009 by: mhsl808
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity