Ping christ23...

Got a problem you cannot solve? Try here.
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Ping christ23...

Postby bokkie » Fri Dec 05, 2014 8:11 am

christ23 (or indeed anyone who might be able to advise),

If you see this I'd like some advice about C# plugin development. I don't think what I want to do is possible as the calls into the plugin don't pass the parameter I'm looking for. But here goes...

When you drag a plugin onto the MSIcode window you get the dialog by which you can interact with it. In particular, if you need to return a value back, you have to enter the name of a variable and that means you need to create it with the Set Variable statement before you use the plugin. Okay so far?

Have you ever been able to pass in the list of variables already created? Instead of entering the variable name, let's say you want to select one from a combobox for example which contains all the variable names defined.

I don't believe it's possible for like I say, the plugin method calls don't expose the variable names when you drag the plugin to the MSIcode window or if you select a plugin statement that's already there and you hit return to edit it. As you've cobbled together some plugins yourself did you ever manage to get access to the existing variable names at design time?

As an example, my screenshot shows the message box dialog. Note how it sucks variables X and Y from the MSIcode and makes them available in the combobox. That's what I'd like to do in my plugins.
Attachments
Example.jpg
Example.jpg (80.45 KiB) Viewed 3410 times
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Ping christ23...

Postby FrancescoT » Fri Dec 05, 2014 12:54 pm

Dear Peter,

unfortunately the plugin doesn't include such possibility, because it doesn't expose the script variable names .

The Messagebox is a command (not a plugin) handled by the IA IDE directly.

Hope this helps you.

Regards

NOTE|
This topic will be moved to the more appropriate plug-in section.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Ping christ23...

Postby bokkie » Fri Dec 05, 2014 1:48 pm

Thanks Francesco. That confirms what I observed looking at the parameters passed into the plugin. I just wanted to make sure I hadn't overlooked something obvious.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 95 guests