The Target values of the shortcuts are wrong after you install a Windows Installer package that was created by using Visual Studio .NET (830612)
The information in this article applies to:
- Microsoft Windows Installer 2.0
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
SYMPTOMSYou can create a Microsoft Windows Installer package by
using the Setup and Deployment Projects option in Microsoft Visual Studio .NET.
However, if the installer package contains a shortcut file, the path of the destination file that appears in the Target box in the properties of the shortcut file
after you install the package is wrong.CAUSEThis behavior occurs because the Create Shortcut functionality in Microsoft Windows does not support the use of
Windows Installer Descriptor shortcuts.WORKAROUNDTo work around this problem, edit the installer package (the
.msi file) to change the target value of the shortcut. You can use the
Orca database editor to edit the installer package. The Orca database editor is
available as part of the Microsoft Windows Installer Software Development Kit
(SDK). To download the Windows Installer SDK, visit the following Microsoft Web
site: For additional information about the Orca database editor,
click the following article number to view the article in the Microsoft
Knowledge Base: 255905
HOWTO: Use the Orca database editor to edit Windows Installer files
To
work around this problem, follow these steps:
- Edit the installer package by using the Orca database
editor:
- Start Orca.
- On the File menu, click
Open.
- In the Open dialog box, locate the
folder that contains the Setupproj1.msi file.
Note For more information about the Setupproj1.msi file that is created in
the C:\Setupprojects\Setupproj1\Debug folder, see
step 3 in the "More Information"
section of this article. - Click the Setupproj1.msi file, and
then click Open.
- In the Tables pane, click
File.
- In the right pane, select the row that has the value
WINAPP1.EXE|Winapp1.exe in the FileName
column, and then copy the associated value that appears in the
File column.
- In the Tables pane, click
Shortcut.
- In the right pane, select the row that has the value
SHORTC~1.EXE|Shortcut to Winapp1.exe in the
Name column.
- In the Target column, replace the
existing value with the value that you copied in step f.
- On the File menu, click
Save, and then quit the Orca database editor.
- Install the Setup project.
Note If the Setupproj1 Setup project is already installed on your
computer, remove it before you follow these steps.
- In Windows Explorer, locate the folder that contains
the Setupproj1.msi file. By default, this is the C:\Setupprojects\Setup1\Debug
folder.
- Double-click the Setupproj1.msi file.
The Setup Wizard starts.
- On the Welcome to the Setupproj1 Setup Wizard page,
click Next.
- On the Select Installation Folder page, type
C:\InstalledProjects\Setupproj1 in the
Folder box, and then click Next.
- On the Confirm Installation page, click
Next.
- On the Installation Complete page, click
Close.
- Verify the target value of the shortcut:
- In Windows Explorer, locate the
C:\InstalledProjects\Setupproj1 folder.
- Right-click the Shortcut to
Winapp1.exe file, and then click
Properties.
- In the Shortcut to Winapp1.exe
Properties dialog box, click the Shortcut
tab.
- On the Shortcut tab, notice that the
value that appears in the Target box is
C:\InstalledProjects\Setupproj1\bin\Winapp1.exe.
STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 5/23/2005 |
---|
Keywords: | kbDeployment kbsetup kbPDWizard kbIDEProject kbAppWizard kbprb KB830612 kbAudDeveloper |
---|
|