Call DLL fucntion

For all your non-technical questions.
Jeff.guo
Posts: 5
Joined: Tue Nov 06, 2007 5:19 am

Call DLL fucntion

Postby Jeff.guo » Wed Nov 07, 2007 6:00 am

I'm using IA7 trial version. during my evaluation, I meet some question:

1. during installing I need get some device name (USB device usbXX, eth device name ethXX, wirelessXX...)from one dll, and show them in list, then let user select some device, and show information of selected device .
My question is How can I dislay the device names and device information on dialog.

2. another dll, I want use one progress bar to show the DLL function progress, does any one has some idea?

3. can I set label's font size to 8.5pt by some way?

:?:

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Nov 07, 2007 3:24 pm

1. Use MSIcode variables to store data, use the Call DLL Function command to communicate with your DLL, and use the dialog designer to display results you get from the DLL in your user interface through the variables.

2. Use the PROGRESS and PROGRESSTEXT pre-defined MSIcode variables.

3. Use the dialog designer.

Take a look at the built-in example projects for examples of custom dialogs, and dialog/MSIcode interaction.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Jeff.guo
Posts: 5
Joined: Tue Nov 06, 2007 5:19 am

unknow device number

Postby Jeff.guo » Wed Nov 07, 2007 6:05 pm

thanks for your reply,

but,
1 I don't know how many device the dll will get, and Dialog how to get string returned from DLL function?(In IA only can return bool,int,double...)? and how set the devcie names to current listbox(or some labels) in dialog?

2. I can't set PROCESS to some value, during DLL function running, does I miss some thing?

3. Font size in dialog designer does not accept 8.5!


:idea: 1,2: I want exchange data between dialog and my DLL dynamicly during dialog showing and DLL function running. Is there some way? :?
Last edited by Jeff.guo on Wed Nov 07, 2007 6:32 pm, edited 1 time in total.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Nov 07, 2007 6:27 pm

You can build a plug-in if you want to supply live progress updates from the DLL. Otherwise, the progress updates will occur between each line of the setup script, so when you call the Call DLL Function command and your DLL is running, only one update can occur.

There is an example project which illustrates how to pass/receive string values from Win32 API calls. Please take a look at the example projects.

In the dialog editor, you can directly type in the font size value.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Jeff.guo
Posts: 5
Joined: Tue Nov 06, 2007 5:19 am

so quick reply

Postby Jeff.guo » Wed Nov 07, 2007 7:56 pm

thanks so quick reply!!

still need your help,

1. I need dynamic add item to listbox in dialog according devices number and device names returned from DLL fucntion.
(but listbox can only recieve data from component list.)
2. Call DLL function return data can not be pointer to string,(see attached image), where is the example, local in C:\\Program Files\\InstallAware\\InstallAware 7\\Samples?

3. I'm sorry ,I canot input fraction to font size? I'm right?(see attached image).

File Attached:

fontsizefraction.JPG

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Nov 07, 2007 9:35 pm

Please contact our technical support group for further technical assistance with your product. This forum is for pre-sales questions only.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 82 guests