3

My software comes with a HTML Help file (.chm). This file, together with my binaries, are included in my Wix Setup. The problem is that whenever the .chm file is opened a .chw file (HTML Help Index) is generated in the same directory. Then, when I uninstall my software this newly generated .chw file prevents the uninstaller to remove the installation folder.

How do I tell Wix to remove the folder even though this file has been created? I guess it's a bad idea to explicitly remove the folder since you don't know where the user chose to install the software.

What's the best Wix approach when facing auto-generated temporary files like this one?

l33t
  • 18,692
  • 16
  • 103
  • 180
  • possible duplicate of [Removing files when uninstalling Wix](http://stackoverflow.com/questions/195919/removing-files-when-uninstalling-wix) – wimh Dec 02 '11 at 18:54

1 Answers1

2

See Removing files when uninstalling WiX, add this to the folder where the chw file is created:

<RemoveFile Id="RemoveChw" Name="filename.chw" On="uninstall" />

You can also use *.chw to remove all chw files in that folder.

Community
  • 1
  • 1
wimh
  • 15,072
  • 6
  • 47
  • 98