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.
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)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
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]
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

so that the conversation will remain readable.