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

how to remove file on maintenance install


2 replies to this topic

tktk

tktk
  • Full Members
  • 24 posts

Posted 13 March 2007 - 06:04

Hi all,

I want to remove a file that is not included in installer (application generate it), at installation, uninstallation and during maintenance install.

I think this can be achieved using custom action, but it is better if this will be achieved on general standard msi sequence.

Adding an entry to RmoveFile table with InstallMode=3 works fine on installation and uninstallation but on maintenance install the file reamains.

Any ideas ?
Thanks in advance.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 March 2007 - 22:05

I belioeve the RemoveFile table only removes a file if there is a state change in the associated component (install or uninstall, but nor repair). So you will need a custom action (why doesn#t your application clean up this temp file in the first place?).

tktk

tktk
  • Full Members
  • 24 posts

Posted 15 March 2007 - 02:51

Hi Stefan, thank you for reply.

OK, I will do that by custom action.
QUOTE
why doesn#t your application clean up this temp file in the first place?

Because the file is kind of a cache file.
Thank you again.