Text Box: Page #
Text Box: Volume 12, Issue 3
Text Box: Printer Driver Tips: How to Change Manufacturer Name in an MSI Install
Text Box: Initially the manufacturer’s name is “Black Ice Software Inc” in the MSI install samples. Why do you need to change it? Because the default target path contains the name of the manufacturer, so if you want to create your custom MSI install application,  you should change this. In order to change the manufacturer name of the MSI install sample, you must change the MSI sample, install dll and uninstall dll. In this example we change the Black Ice Color XP printer driver.

1. Modifications in MSI Install Project

You can change the manufacturer’s name in the install project easily. After you open the MSI install sample (ColorNT.sln) with Microsoft Visual Studio 2005, you can modify the manufacturer’s name on the properties pane. See figure to the right.



2. Modifications in Install DLL

Open the install dll project (project name: Mydll). Use the Win32 NT Release project setting . Search for the 
InitializeMSIVariable function in the SetupDll.cpp source file. Once you have located it you should modify the “Black Ice Software Inc” string to your manufacturer in the switch statement. 

case ColorNT:
nResult = RegOpenKey(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Black Ice Software Inc\\ColorNT\\PrinterVariablesValues", &hKey);
break;

Rebuild the project, and copy the MyDll_NT.dll into the “Driver Files” directory of the MSI install project.


3. Modifications in the Uninstall dll

Open the uninstall dll project (project name: pfaxrmv). Use the Win32 NT Color Release project setting. Search for the
 StartUninstallMSI function in the pfaxrmv.cpp source file. Once you have located it you should modify the “Black Ice Software Inc” string to your manufacturer in the switch statement.

case ColorNT:
nResult = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Black Ice Software Inc\\ColorNT\\PrinterVariablesValues", &hKey);
break;

Rebuild the project, and copy the BiCRmvNT.dll into the “Driver Files” directory of the MSI install project.

After these steps the MSI install will use your manufacturer name, and the default target path will be for example "C:\Program Files\Custom Manufacturer Name\Black Ice EMF Printer Driver\".
×

Notice:

The Printer Drivers for Windows 95 / 98 / ME will be discontinued at the end of this year. Black Ice Software will no longer offer Windows 95 / 98 / ME Printer Drivers after January 1st, 2008.

Text Box: !