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 msi after install


5 replies to this topic

MarcusAK81

MarcusAK81
  • Full Members
  • 24 posts

Posted 27 November 2006 - 10:24

Hi,

it is possible to delete the msi installer after installation?


Regards Marcus

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 November 2006 - 10:54

What exactly do you wish to delete? Which file, in which location?

MarcusAK81

MarcusAK81
  • Full Members
  • 24 posts

Posted 27 November 2006 - 11:00

I make an example. I download a msi package to my desktop, i install it and after i want that this msi is deleted automatically.


Regards Marcus

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 November 2006 - 11:26

I don't think the msi package can delete itself. However you could add a remove entry to the "pending rename operations" registry entry (or call the MoveFileEx windows API) to delete the file on the next reboot.

MarcusAK81

MarcusAK81
  • Full Members
  • 24 posts

Posted 27 November 2006 - 11:32

Hmm thats not good. I saw this feature by an self-extracting exe and so i thought it is also possible by an msi.


Reagrds Marcus

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 27 November 2006 - 13:00

If you use a custom setup.exe launcher, it should be possible to delete the MSI file after install, yes. the problem is that you would probably have to write such a launcher yourself, or use some sort of tool to create it.
Regards
-Stein Åsmul