Page 1 of 1

Eval Plugin

Posted: Mon Mar 14, 2005 12:12 pm
by zchris
I've created a plugin to do simple boolean evaluations because the built in if command only let's me make one comparision at a time.

E.g. I can now write:

Code: Select all

Eval DoUninstall = $NEEDSUPGRADE$="TRUE" or $FoundOldMsi$<>""


instead of:

Code: Select all

Set Variable DoUninstall to FALSE
If Variable NEEDSUPGRADE Equals TRUE
  Set Variable DoUninstall to TRUE
end
If Variable FoundOldMsi not Equals
  Set Variable DoUninstall to TRUE
end


I've put this plugin together with the EditFile plugin into a new setup which you can download here:

The plugins are small and don't have any runtime dependencies.
disclaimer: you are free to use this plugin for any purpose at your own risk.

Sinan: you may of course host this one on your site too.

Posted: Tue Mar 15, 2005 7:38 am
by sinan
Thanks - this is wonderful :D

File mirrored at http://www.installaware.com/Camelot-Ins ... lugins.exe

If you installed the previous version - no need to manually remove it, the new installer automatically removes it for you - great job :D

Posted: Tue Mar 15, 2005 2:16 pm
by zchris
Actually InstallAware makes it so easy to create plugins that I just couldn't resist. The hardest part (as you can see from one of my previous posts) was finding the docs :D