Optional OEM Support Information (Windows CE 5.0)

You can add optional OEM support information by modifying the .msi file containing the software development kit (SDK) that you created to add the address of a Web site that other developers can look at for OEM-specific support information.

The following Visual Basic script, Sample.vbs, shows how to customize the Help Support information visible in the Add/Remove Programs panel to display OEM-specific information.

' database mode constant
Const msiOpenDatabaseModeTransact = 1
' database action constant
Const msiViewModifyReplace        = 4 

' the .msi installer engine object
Dim installer : Set installer = Nothing
' the .msi database object
Dim database : Set database  = Nothing

' instantiate .MSI engine and open the database of the .msi file passed in
Set installer = Wscript.CreateObject("WindowsInstaller.Installer") 
Set database = installer.OpenDatabase(Wscript.Arguments(0), msiOpenDatabaseModeTransact ) 

' retrieve the ARPHELPLINK property from the Property table; 
Dim view : Set view = database.OpenView("SELECT 'Property',`Value` FROM `Property` WHERE `Property` = 'ARPHELPLINK'")
view.Execute 
Dim record : Set record = view.Fetch 

' set ARPHELPLINK's new value and save
record.StringData(2) = Wscript.Arguments(1)
view.Modify msiViewModifyReplace, record 
database.Commit

Remarks

To use Sample.vbs to change the Help Support information, enter the following command in a command-line prompt build window, where Msi_location specifies the location of the .msi file on the development workstation and URL specifies the URL you want to add to the Help Support information:

wscript sample.vbs <Msi_location> <URL>

Example

wscript sample.vbs "c:\tmp\myFile.msi" http://www.mySupportURL.com

See Also

User-defined Files in an SDK | Custom SDK Installation Scripts | Adding User-defined Files to an SDK

Last updated on Thursday, February 02, 2006

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.