Page 1 of 1

MSI property values

Posted: Tue Sep 19, 2006 4:15 pm
by pmessina
Our previous product installer was being built via MAKEMSI and relied on a specific DLL we wrote for specific product configuration tasks.

Various DLL functions rely on MSI property values at runtime and vice versa - (i.e. the DLL also sets specific property values used by the installer).

Is there any way in InstallAware (we are using 5.0) to replicate this functionality of persisting and accessing specfic MSI property values at runtime?

Our other option is to devise a different persistence model and modify the DLL code. We just don't want to do that if we don't have to.

Thanks in advance.

Posted: Tue Sep 19, 2006 6:29 pm
by MichaelNesmith
InstallAware MSIcode uses variables. You can pass these variables to your DLL, and your DLL can even update the values of these variables. There is no need to use properties - variables are a lot more flexible. So whenever you want to pass information from your MSIcode script to your DLL, in the Call DLL Function command, you use variables, which can also receive information back from the DLL.

Posted: Wed Sep 20, 2006 9:25 am
by pmessina
Thanks for the reply.

I knew that we could we could pass values back and forth to the DLL possibly even as references.

We just didn't want to have to do through that DLL code and modify it if we didn't need to.


Thanks again.