MSI Factory 2.3

MSI.GetUserInfo

MSI.GetUserInfo

This is the first topic This is the last topic  

MSI.GetUserInfo

This is the first topic This is the last topic  

OverviewExamples

table MSI.GetUserInfo (

string ProductCode )

Example 1

-- Get the user info for the product.

tbUserInfo = MSIGetUserInfo("{78B82B0B-9AD9-40C0-B994-F72C21B52723}");

 

-- Check if it was successful.

if (tbUserInfo) then

   if (tbUserInfo.UserInfoState == USERINFOSTATE_PRESENT) then

       strMessage = "The product user info is as follows:\r\n\r\n";

       strMessage = strMessage.."User name: "..tbUserInfo.UserName.."\r\n";

       strMessage = strMessage.."Company name: "..tbUserInfo.CompanyName.."\r\n";

       strMessage = strMessage.."Serial number: "..tbUserInfo.SerialNumber.."\r\n";

       Dialog.Message("Product User Info", strMessage);

   else

       -- Show an error message

       Dialog.Message("Error", "Could not get product user info.");

   end

else

   -- Show an error message

   Dialog.Message("Error", "Could not get product user info.");

end

Gets an installed product's registered user information and shows it in a dialog message. If the information could not be queried or an error occurs, a message is shown notifying the user.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us