Page 1 of 1

Call DLL fucntion

Posted: Wed Nov 07, 2007 6:00 am
by Jeff.guo
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?

:?:

Posted: Wed Nov 07, 2007 3:24 pm
by CandiceJones
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.

unknow device number

Posted: Wed Nov 07, 2007 6:05 pm
by Jeff.guo
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? :?

Posted: Wed Nov 07, 2007 6:27 pm
by CandiceJones
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.

so quick reply

Posted: Wed Nov 07, 2007 7:56 pm
by Jeff.guo
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

Posted: Wed Nov 07, 2007 9:35 pm
by CandiceJones
Please contact our technical support group for further technical assistance with your product. This forum is for pre-sales questions only.