View Full Version : deleting files

05-13-2004, 08:36 PM
I am using Developer 7 sp4 - basic MSI project.

I created a minor upgrade, and when doing an uninstall, not all the files are removed, so I am trying to create some custom code to remove some files I don't want hanging around.

I created a Custom Action with condition REMOVE="ALL" so it executes during uninstall. The custom action calls a script that uses DeleteFile(). However, the file is not getting deleted. The file is not read only...

I believe the component in which the file is in is marked as "never overwrite". Would this lock up the file and prevent it from being deleted?

Can someone give me an example of how to properly populate the RemoveFile table? I want to give that a shot.

Any other ideas are welcome. Thanks

Neeshant Desai
Software Engineer

05-14-2004, 05:33 AM
example RemoveFile Table...


RemoveFile1 - Can be anything
PerMachine - Component that gets removed on uninstall
FileName - Name of file to remove
Utilities - Directory where file resides (foreign key to directory table)
2- Indicates file removal on uninstall

If necessary, create a new component, create a "CreateFolder" object and use this.