Get text area value from msi basic project into install script
Hello I have created a basic msi project. I have a text area in one of my dialogs and I need to save the value of the text area into a registry key. How do I get the value from a basic msi text box?
Re: Get text area value from msi basic project into install script
1. Set property to your edit box
2. Create InstallScript custom action (make sure MyFunction iss elected) and sequence it as desired
3. Use install script to read the property as below and use installscript registry methods to update the value in the registry.
// To Do: Declare local variables.
textAreaValueBuffer = MAX_PATH;
if(MsiGetProperty(hMSI, "MYTEXTBOX", textAreaValue, textAreaValueBuffer) == ERROR_SUCCESS) then
SprintfBox(INFORMATION,"The value of text area cntrol","The value of MYTEXTAREA is %s", textAreaValue);
// To Do: Write script that will be executed when MyFunction is called.