Eval Plugin

Interested in developing new plug-ins? Got one to share? Post here!
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Eval Plugin

Postby zchris » Mon Mar 14, 2005 12:12 pm

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.

sinan
Site Admin
Posts: 1020
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Tue Mar 15, 2005 7:38 am

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

zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Postby zchris » Tue Mar 15, 2005 2:16 pm

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


Return to “Plug-In Development”

Who is online

Users browsing this forum: No registered users and 38 guests