Here's the whole of the function:

UINT __stdcall VerifyUserInformation(
     __in MSIHANDLE hInstall
     )
{

         LPWSTR userName = NULL;
         LPWSTR email = NULL;
         HRESULT hr = S_OK;
         UINT er = ERROR_SUCCESS;

         hr = WcaInitialize(hInstall, "VerifyUserInformation");
         ExitOnFailure(hr, "Failed to Initialize");

         hr = WcaSetProperty(L"UserInfoError", L"");
         ExitOnFailure(hr, "Failed to initialize UserInfoError");

         if (WcaIsPropertySet("UNAME"))
         {
                 hr = WcaGetProperty(L"UNAME", userName);
                 ExitOnFailure(hr, "Failed to get UNAME.");
                 WcaLog(LOGMSG_VERBOSE, "UNAME is %ls.", userName);
         }

         if (WcaIsPropertySet("EMAIL"))
         {
                 hr = WcaGetProperty(L"EMAIL", email);
                 ExitOnFailure(hr, "Failed to get EMAIL.");
                 WcaLog(LOGMSG_VERBOSE, "EMAIL is %ls.", email);
         }

         if(wcslen(userName) == 0)
         {
                 hr = WcaSetProperty(L"UserInfoError", L"Please enter 
your name.");
                 WcaLog(LOGMSG_VERBOSE, "Please enter your name.");
         }
         else if(wcslen(email) == 0)
         {
                 hr = WcaSetProperty(L"UserInfoError", L"Please enter 
your email address.");
                 WcaLog(LOGMSG_VERBOSE, "Please enter your email address.");
         }

LExit:
     if (FAILED(hr))
     {
         er = ERROR_INSTALL_FAILURE;
     }
     return WcaFinalize(er);
}

If I build this, I get an error "cannot convert parameter 2 from 
'LPWSTR' to LPWSTR *' on the line:

hr = WcaGetProperty(L"UNAME", userName);

So, I turned userName into LPWSTR*, and then I get the error I mentioned 
in the above post.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to