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 MSI from Downloaded Installations


3 replies to this topic

RosarioAgro

RosarioAgro
  • Members
  • 4 posts

Posted 11 October 2004 - 10:25

Hi, I have a problems...

I have to cache my Installation in [WindowsFolder]Downloaded Installations
folder. There is notice in InstallShield help:

----------
Cache installation on local machine
...
Files cached on the target system using this option will not be automatically
removed when the user uninstalls your product.

----------

I do not understand why they cannot be removed afterwards... but anyway
it seems that I have to do it manually sad.gif

I have created the CustomAction 'RemoveCachedFiles'
it has the following properties:
- Type = Run InstallScript code
- Return processing = Synchronous (Ignore exit code)
- In-Script Execution = Deferred Execution
- Install Exec Sequence = AfterOnGeneratedMSIScript

Actually I do not know if this is correct way or not, but it works smile.gif
if user installs the product and then removes it MSI file is also removed from
[WindowsFolder]Downloaded Installations folder.

BUT I have problem if user Cancels the installation... in this case cached files
are NOT removed and this is a problem... what should I do to remove it ??

Thanks.

Edited by RosarioAgro, 11 October 2004 - 11:11.


RosarioAgro

RosarioAgro
  • Members
  • 4 posts

Posted 12 October 2004 - 07:05

Nobody knows ?
Probably I'm alone with such problem unsure.gif

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 12 October 2004 - 07:31

If the installation is cancelled before the script execution starts (InstallFinalize) there is no rollback, and therefore I don't see a way to delete the downloaded file. BTW not deleting it gives the user the chance to run your setup again, otherwise they would have to re-download it.

RosarioAgro

RosarioAgro
  • Members
  • 4 posts

Posted 12 October 2004 - 08:22

Thank you Mr. Krueger,

It seems that I will have to leave it there wink.gif