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..
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
Started by
laserwave
, Jan 11 2006 18:04
1 reply to this topic
Posted 11 January 2006 - 18:04
QUOTE |
is(FILE_LOCKED,svpath) then MessageBox("Can not Uninstall running appln", SEVERE); exit; endif; |
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
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.
However, for an alternative implementation though, check out this sample code.