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.

how to prevent runapplication from being uninstall

1 reply to this topic


  • Members
  • 7 posts

Posted 11 January 2006 - 18:04

Hi all,
I just want to prevent the uninstallation process if the application is running.
I've tried deinstallsetreference but not supported in is6. Firther i've tried..

is(FILE_LOCKED,svpath) then
MessageBox("Can not Uninstall running appln", SEVERE);

The code I've put in ProcessBeforeDataMove(), after deinstallstart() and regestry functions. But still it uninstalls the running appln when tried(except running exe).only some message appears regarding manual uninstallation of .exe.
How to proceed? any reference code?
Thanks smile.gif

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 12 January 2006 - 01:07

It seems like that code should work, but it's in the wrong place. It should go in the OnMaintUIBefore event instead.

However, for an alternative implementation though, check out this sample code.
user posted image