Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

What I want to do is trying to display some custom message inside the installer. I want to replace the "Please insert Serial Number" message with something else. So I used Orca open the msi file and searched where exactly the message belongs. I found out that a Control named 'SerialBodyText' contains this message. But the problem is it doesn't got a property name. So I name it 'SBT' and saved it. Inside my c++ dll, I have something like this:

 

MsiGetProperty(hInstall, TEXT("SBT"), szMessage, &dwBuffer);

MessageBox(NULL, szMessage, "Setup", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND);

 

I expected the exact same message shows up from the messagebox. Instead, I got an empty string. I have used the same code and tried some other property (which has build-in name) like PIDKEY. It worked just fine.

Did I miss something important? Any help? :confused:

 

Thanks in advance.

  • 3 weeks later...
Posted
I have re-visited the setup program last night. Found out that the [sBT] property is actually there. But it is just an extra text variable, not the display message itself. It won't show inside the message. Basically, it is useless for a TEXT control. I am stilling looking for a way to access this message... :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...