Plastkort
Plastkort

Reputation: 967

installshield script check if we are uninstalling

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

Upvotes: 0

Views: 2034

Answers (1)

Michael Urman
Michael Urman

Reputation: 15905

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.

Upvotes: 1

Related Questions