Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Delete file


1 reply to this topic

Arjan

Arjan
  • Members
  • 2 posts

Posted 08 April 2002 - 09:42

Hello,

At Uninstallation I want to delete a file that is not installed
by InstallShield. I probably have to use DeleteFile but the
problem is that I don't know where to call it from in the setup.rul file!

Any help will be appreciated,

Arjan.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 08 April 2002 - 16:43

In OnMainUIBefore.  You probably are using the default implementation, so you need to add it though the toolbars to expose it.

To do, select "Before Move Data" and "Maintenance UI Before" as the toolbar selections.  Then scroll down to the newly added function.  Once there, you'll see something along the lines of the following:

     switch(nType)
       case REMOVEALL: ComponentRemoveAll();

Just add your delete file to the REMOVEALL case.
user posted image