холна секцияIn one of our authoring tool projects, we need to launch the newest version of Expression Web on the author’s computer. When an author had ExpressionWeb 3 and 4 installed on the computer, our code was always launching Expression Web version 3 instead of version 4. The problem was not in our code – the problem was in the registry settings created by the Expression 4 installation. The installation of Expression Web 4 leaves does not update the registry setting responsible for launching the application by its name (ExpressionWeb.exe). You can change the registry setting by creating a .reg file (see contents below) and then launching that .reg file.
The first line of the .reg file must contain Windows Registry Editor Version 5.00. Save the .reg file as a Unicode file using notepad.
Here are the contents of the .reg file:
Windows Registry Editor Version 5.00
@=”C:\\Program Files (x86)\\Microsoft Expression\\Web 4\\ExpressionWeb.exe”
“Path”=”C:\\Program Files (x86)\\Microsoft Expression\\Web 4\\”