installshield script check if we are uninstalling

1.9k views Asked by At

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 :(

1

There are 1 answers

0
Michael Urman On BEST ANSWER

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.