mgoemmel
Posts: 3
Joined: Thu Sep 22, 2005 1:01 pm

Two newby questions...

Hello,

I'm new to "Advanced Installer", but I'm very impressed so far. There are two questions I didn't find an answer in the online help:

* Is it possible to fill the files list for installation with some kind of *.wav of a certain directory, so during creating all wav-files of this folder are included in the archive?

* I need to call a dll function after installation is complete. I found the dialog for doing this, and selecting the dll file shows me the function which I want to call. But I didn't find any place to give parameters to this function, in my case a C-function like SetupHook(1, "c:\\test").

Thanks for helping

Markus
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Markus,

1. If you want to add a certain type of files to the project in the "Add Files..." dialog edit the "File name" field to the extension of the files you want to add.

For example if you want to add WAV files edit the field to *.wav.

In the dialog will be displayed only the files with that extension.

This is how you it can be done manually.

Advanced Installer also offers the possibility to add the files automatically using the synchronized folders feature.

More information on this topic at:
http://www.advancedinstaller.com/user-g ... lders.html

Also, in the next release it will available a feature that will allow you to select what type of files will added from the synchronized folder.

2. In order to call a function form a DLL, you could use a custom action, but I'm afraid that you cannot pass it any parameters.

For more details on custom action please visit:
http://www.advancedinstaller.com/user-g ... -page.html

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
mgoemmel
Posts: 3
Joined: Thu Sep 22, 2005 1:01 pm

Thanks for that quick reply...

I'm a bit surprised, cause a DLL function call without the possibility to give some parameters is rather useless (and I guess not only for me)... cause I would need to pass a directory name to the function, which I guess is really common for addon functions inside an installer flow...

Hm, shit...

But thanks anyway!

Markus
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

I'm afraid that this is the way Windows Installer works.

When a DLL is launched as a custom action, it is passed a single argument that is the handle to the current install session. Through that handle you have access to properties both standard and user defined.

For more information about DLL custom action please visit:
http://msdn.microsoft.com/library/defau ... type_1.asp
http://msdn.microsoft.com/library/defau ... ype_17.asp

So you could create some properties that will contain the parameters you need to pass to the DLL functions and then modify them so they don't need parameters.

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
mgoemmel
Posts: 3
Joined: Thu Sep 22, 2005 1:01 pm

Ah, thanks to that info. That makes things a lot clearer

Regards

Markus

Return to “Common Problems”