Runtime Checker plug-in example

Interested in developing new plug-ins? Got one to share? Post here!
m.duchesneau
Posts: 21
Joined: Tue May 24, 2011 1:42 pm

Runtime Checker plug-in example

Postby m.duchesneau » Tue May 24, 2011 2:01 pm

Hi folks,

I'm learning how to use InstallAware and so far it looks great.

Our software has a lot of prerequisites, so my first step is to make my installer app make all those checks. I'm glad to see that for the most part, these checkers are already part of InstallAware and that I just need to select them.

Now there's one custom prerequisite that I need to make; it's called CCCP (Combined Community Codec Pack). I have read about how to create new Runtimes, how to create the .RTM file and the .MIA scripts for check and setup.

However, looking at the existing scripts, I see that they are referring to compiled plug-in DLLs in order to make those checks. I have looked everywhere I could think of, and can't find a place where there would be just a simple example of a Checker plug-in - so I can start from that to make my own checker plug-in. I see here in this forum there are many plug-ins available, but not much are checkers AND provide the source. Maybe I'm searching at the wrong places or looking for the wrong things.

Can you please direct me to where I'd be able to find such examples? Or maybe a how-to on checker plug-ins?

Your help is very appreciated,

Mathieu

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Runtime Checker plug-in example

Postby giaviv » Wed May 25, 2011 8:10 am

Dear Mathieu,

I am emailing you a tutorial I wrote about detecting software. It hasn't been reviewed yet which is why I am not posting it here yet, but please read it and share your experience :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

m.duchesneau
Posts: 21
Joined: Tue May 24, 2011 1:42 pm

Re: Runtime Checker plug-in example

Postby m.duchesneau » Wed May 25, 2011 2:12 pm

Aviv,

That is VERY appreciated, thank you. I'm going through it right now and I'll keep you posted about it.

Thanks!
Mathieu

m.duchesneau
Posts: 21
Joined: Tue May 24, 2011 1:42 pm

Re: Runtime Checker plug-in example

Postby m.duchesneau » Thu May 26, 2011 6:01 pm

Aviv,

I was able to check for/initiate install of Combined Community Codec Pack (CCCP) with your advice from this tutorial. Thank you!

It was clear and well-written overall. I haven't tested the other methods of detecting software, but the registry check is what worked for me. It's awesome to know about the other strategies, though.

Actually, I found this little detail I'd like a hint on: The versioning of this software (CCCP) is done with the build date. Hence, the latest release is version "2010-10-10".
http://www.cccp-project.net/

Therefore it seems that the "greater than" comparison in MSICode won't work to compare date formats. Would you have any ideas how to write an equivalent efficiently?
Also, in usual versioning formats, will "greater than" mean "equal or greater", or "exclusively greater"?

Again thanks a lot!

Mathieu

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Runtime Checker plug-in example

Postby giaviv » Thu May 26, 2011 7:27 pm

Hey,

In that case you might want to consider using the Parse string command to break down the string and get the day month and year and compare them separately.

Greater than means, well, greater! 5 is not greater than 5, so its not greater or equals, just greater :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

m.duchesneau
Posts: 21
Joined: Tue May 24, 2011 1:42 pm

Re: Runtime Checker plug-in example

Postby m.duchesneau » Wed Jun 01, 2011 3:45 pm

Thanks for the tip!

(Greater than) Yea that's what I thought, but in your document you were suggesting to use only "greater than" to validate that the current version is equal or greater, which put a doubt in my head. Maybe you could clarify that part in your document?

Thanks again,

Mathieu

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Runtime Checker plug-in example

Postby giaviv » Wed Jun 01, 2011 4:14 pm

Done. Thanks again!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

glenharvy
Posts: 167
Joined: Fri Sep 14, 2007 3:53 am

Re: Runtime Checker plug-in example

Postby glenharvy » Sun Jul 17, 2011 4:17 pm

Hi,

I am in the same situation in that I want to write my own pre-requisite 'checker' and it seems the draft article Aviv has written looks like just the tutorial I'm looking for.

Is there a chance of me either getting a copy please or has it now been officially published?

Thanks.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Runtime Checker plug-in example

Postby giaviv » Sun Jul 17, 2011 10:21 pm

Here it is!
Attachments
detecting_installed_software.doc
(58.5 KiB) Downloaded 1280 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Plug-In Development”

Who is online

Users browsing this forum: No registered users and 45 guests