I use MsiGetProperty to get the value of a string parameter from the installer. And after that I call the managed dll and I pass this value:
nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize);
when I pass the value of sDbHost, this happens when I get it from managed code: srvdata-02NULNULNULNULNULNUL ...... however, in the interface I wrote only "srvdata-02".
With the same code, it was fine with Installshield 2010, now I am updating it to installshield 2012. Do you have any solution with this?
string winapi windows-installer installshield installscript
Cheb bilel
source share