cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
amiros
Level 3

Removing files during installation

Hello there,

I am working with Installshield 2012 Pro.

I created a new basic msi file.

I would like to know how to delete a file during installation?
This file is not part of the msi.

I tried using the RemoveFile Table with no success.

Can you give me an example how to delete c:\Test\test.xls while installing?
Whant is the simple way to do this king of action?

Thank you very much.
Amir
Labels (1)
0 Kudos
(3) Replies
CHANDINATHREDDY
Level 7

hi ,
you can use an coustom action to do that .if it not an part of an msi.
you can use the vbs script the code is as fallows.

Set obj = CreateObject("Scripting.FileSystemObject")
obj.DeleteFile("C:\MyFolder\MyFile.txt")

and sequence it as required.
0 Kudos
amiros
Level 3

Is there any way to do it without writing code?

Some option that is built into Installshield.

Thanks
Amir
0 Kudos
Not applicable

Using RemoveFile table, InstallMode column set to 1.
0 Kudos