Access to IA File Browse Dialog?

Interested in developing new plug-ins? Got one to share? Post here!
Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Access to IA File Browse Dialog?

Postby Edhy » Wed Aug 18, 2010 12:35 pm

Hi, I am writting a Plug-In and need to call the IA File Browse dialog to allow the user to browse to the $TARGETDIR$ and select a file. I need to have the whole file path as in IA like $TARGETDIR$\MyFileName.exe Is this possible?

I then want to put that command in the RTM file.

I am using IA 9 R2 (Build Moya sp3 070910)
Edhy Rijo
Thom Child and Family Services

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Access to IA File Browse Dialog?

Postby mills » Wed Aug 18, 2010 11:05 pm

Yes, this should be possible.

You can pass a variable to your plugin ($TARGETDIR$).

Then, from your plugin, you can call OpenFileDialog with the "$TARGETDIR$" as the default location (and you can force that to be the only acceptable path as well), then return the full file path as a result.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.


Return to “Plug-In Development”

Who is online

Users browsing this forum: No registered users and 23 guests