Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "MsiRecordSetString" in [All]

msi

.

Sampe can be found at MsiRecordSetString.

.

Sampe can be found at MsiRecordSetString.

.

Sample can be found at MsiRecordSetString.

.

Sampe can be found at MsiRecordSetString.

.

Sampe can be found at MsiRecordSetString.

.

static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue);

.

The sample application below demonstrates how to use MsiRecordSetString, MsiOpenDatabase, MsiCreateRecord, MsiCloseHandle, MsiDatabaseOpenView, MsiViewExecute, MsiDatabaseCommit, and MsiViewClose in C# to modify a property value in an MSI database. To run it, simply create a new Windows Console application and replace the code that Visual Studio gives you with the code below. You may have to modify the namespace name. The sample as-is requires a valid MSI database named SETUP.msi, with a property named PROPERTY1 in the Property table, to be located in C:\. You can of course change the path to your MSI database in the calls to ChangeMSIProperty() in Main() and use any existing property you wish.

.

    static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue);

.

        returnValue = (WINDOWS_MESSAGE_CODES)MsiRecordSetString(msiRecord, (int)1, value);

.

            throw new MsiInstallationSupportException(string.Format(CultureInfo.InvariantCulture, "MsiRecordSetString returned error code {0}.", returnValue.ToString()));

.
Documentation
[MsiRecordSetString] on MSDN
.

Sample can be found at MsiRecordSetString.

.

Sample can be found at MsiRecordSetString.


 
Access PInvoke.net directly from VS: