I'm makeing an Basic MSI installation project. During the installation I have to ask the user for the hostname of the server part of my application. For this task I designed a new dialog box and insert it between SetupType and ReadyToInstall. I added the following actions to the Next button:
CODE |
DoAction ResolveHost 1 NewDialog ReadyToInstall (HOST_RESOLVED='TRUE') |
The ResolveHost CA contains the following code:
CODE |
function ResolveHost(hMSI) begin SprintfMsiLog('Log: testing'); rv = MsiSetProperty(hMSI, 'HOST_RESOLVED', 'TRUE'); return ERROR_SUCCESS; end; |
When I press the 'Next' button the installation hangs. I can move the window all around, however all buttons stop responding, nor I can 'normaly' close the installation (I have to use task manager).
Can please anyone give me a hint how to resolve my problem?
BTW: Is it better to code InstallScript scripts in combination with functions from .dll files or is it better to just use VB?
10x and regards,
Dezo