PDA

View Full Version : Delete Files on Install



Chas_Gregory
01-13-2005, 03:47 AM
Hi,

I'm after a way of getting a Basic MSI package to delete a couple of files in the ALLUSERS profile when my package installs.

The files are a couple of .vbs scripts which were deployed (not using an installer) to work around some problem we had.

The original problem is fixed by the software in this MSI - so if the files are present I want to get rid of them on install of the MSI.

Is the best way going to be a Custom Action which uses Installscript to delete the files - or is there a better way?

Thanks
Chas

Oysteinl
01-13-2005, 07:07 AM
Dependig on where you stored these files under ALLUSERS, you could perhaps use the 'RemoveFile Table' in the Direct Editor with a standard og custom path to the AllUsers folder.

See = "Windows Installer Property Reference"