0

I am looking for a way I can pass to my installscript check if I application is uninstalling.

I tried this:

if (REMOVE) then
  MessageBox("uninstalling!", INFORMATION);
  return 0;
endif;

but it triggers even if I am installing :(

Plastkort
  • 957
  • 1
  • 26
  • 40

1 Answers1

1

This won't do what you want because REMOVE is a constant so the condition is always true. Try using REMOVEALLMODE instead, or look at OnMaintUIBefore to override the selection up front.

Michael Urman
  • 15,737
  • 2
  • 28
  • 44