This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- "\n" in error table doesn't work
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 31, 2008
10:38 AM
"\n" in error table doesn't work
Hi, I have a problem in an Installscript MSI project.
In my installshield project's error table,
I defined an error:30000 with "test\nby polosheng" message.
Then I used this message in DLL's function:
TestApi(MSIHANDLE hInstall)
{
...
lRetCode = MsiRecordSetString(hErrorRecord, 0, NULL);
lRetCode = MsiRecordSetInteger(hErrorRecord, 1, 30000);
MsiProcessMessage(hInstall, INSTALLMESSAGE_USER, hErrorRecord);
...
}
and I call this function in execute sequence.
But when this CA is called ,the message is "test\nby polosheng",
not
"test
by polosheng".
'\n' doesn't work!!!
So, can anybody help me to resolve this problem?
Thank you in advance.
In my installshield project's error table,
I defined an error:30000 with "test\nby polosheng" message.
Then I used this message in DLL's function:
TestApi(MSIHANDLE hInstall)
{
...
lRetCode = MsiRecordSetString(hErrorRecord, 0, NULL);
lRetCode = MsiRecordSetInteger(hErrorRecord, 1, 30000);
MsiProcessMessage(hInstall, INSTALLMESSAGE_USER, hErrorRecord);
...
}
and I call this function in execute sequence.
But when this CA is called ,the message is "test\nby polosheng",
not
"test
by polosheng".
'\n' doesn't work!!!
So, can anybody help me to resolve this problem?
Thank you in advance.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 01, 2008
02:25 AM
I found it's a bug.
In dll(vc6.0), when I used MsiGetProperty to get property A in installshield,
the value of A is "test\nby\npolosheng", the value which MsiGetProperty get in dll is just
"test\nby\npolosheng"!!!
'\n' also can't work!!
Any suggestion?
In dll(vc6.0), when I used MsiGetProperty to get property A in installshield,
the value of A is "test\nby\npolosheng", the value which MsiGetProperty get in dll is just
"test\nby\npolosheng"!!!
'\n' also can't work!!
Any suggestion?