How to use the Orca database editor to remove the "Everyone" option and the "Just me" option from a Windows Installer package that you created by using Visual Studio .NET (835460)
The information in this article applies to:
- 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), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
INTRODUCTIONThis step-by-step article describes how to remove the
Everyone option and the Just me option from the installer when you deploy an application by using a Microsoft Windows Installer
package. In Microsoft Visual Studio .NET, you cannot modify the
predefined dialog boxes that appear in a typical Setup project (.msi) file. You must
use a tool such as the Orca database editor to manually make these changes to the Setup
package after you have created the package by using Visual Studio
.NET. back to the topRequirementsThis article assumes that you are
familiar with the following topic:
How to create Setup and Deployment projects The following list outlines the recommended hardware, software,
network infrastructure, and service packs that you need: - Microsoft Windows XP, Microsoft Windows Server 2003, or
Microsoft Windows 2000 Advanced Server
- Microsoft Visual Studio .NET 2003 or Microsoft Visual
Studio .NET 2002
- The Orca database editor
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
How to use the Orca database editor to edit Windows Installer files
back to the topCreate a Windows applicationTo create a Windows application, follow these steps.
- Start Visual Studio .NET.
- On the File menu, point to
New, and then click Project. The New
Project dialog box appears.
- Under Project Types,
click Visual C# Projects or Visual Basic
Projects.
- Under Templates, click
Windows Applications.
- In the
Name box, type WindowsApplication1, and then click
OK.
- On the Build menu, click Build
Solution.
- Press F5 to run the application.
back to the
topCreate a Setup project To create a Setup project, follow these steps:
- On the File menu, point to
New, and then click Project. The New
Project dialog box appears.
- Under Project Types, click Setup
and Deployment Projects.
- Under Template, click
Setup Project.
- In the Name
box, type Setup1, and then click OK.
- Under FileSystem on target Machine,
right-click Application Folder, point to Add,
and then click Assembly. The Component Selector
dialog box appears.
- Click Browse. The Select
Component dialog box appears.
- Locate the
Bin\Debug folder of the WindowsApplication1 application that you created in the "Create a Windows application" section.
- In the Bin\Debug folder, click WindowsApplication1.exe.
- On the Build menu, click Build
Solution.
back to the topEdit your Setup project in the Orca database editorTo edit your Setup project, follow these steps:
- Start the Orca database editor. To do this, click Start, point to All
Programs, and then click ORCA.
- On the File menu, click
Open. The Open dialog box appears.
- Locate the Setup1.msi file that was created when you created your Setup project. By default, this file is located in the Setup1\Debug
folder.
- Click Setup1.msi, and then
click Open.
- Under Tables, click the
RadioButton table. The parameters that correspond to the RadioButton table appear in the
right window.
- In the Property column, locate the
following parameters, and then delete these rows:
FolderForm_AllUsers | 1 | ALL | 0 | 0 | 342 | 17 | {\VSI_MS_Sans_Serif13.0_0_0}&Everyone | | FolderForm_AllUsers | 2 | ME | 0 | 18 | 342 | 17 | {\VSI_MS_Sans_Serif13.0_0_0}Just
&me | |
- Under Tables, click the
Control table. The parameters that correspond to the Control table
appear in the right window.
- Locate the following values in the right window, and then delete these rows:
FolderForm | AllUsersRadioGroup | RadioButtonGroup | 24 | 210 | 342 | 42 | 3 | FolderForm_AllUsers
{ \VSI_MS_Sans_Serif13.0_0_0}MsiRadioButtonGroup | CancelButton | FolderForm | AllUsersText | Text | 18 | 186 | 348 | 24 | 3 | {\VSI_MS_Shell_Dlg13.0_0_0}Install
[ProductName] for yourself, or for anyone who uses this computer: | |
- Under Tables, click the
ControlCondition table. The parameters that correspond to the ControlCondition table appear in right window.
- Locate the following values in the right window, and then delete these rows:
FolderForm | AllUsersRadioGroup | Show | VersionNT>=400
AND Privileged=1 | FolderForm | AllUsersRadioGroup | Hide | NOT
(VersionNT>=400 AND Privileged=1) | FolderForm | AllUsersText | Show | VersionNT>=400
AND Privileged=1 | FolderForm | AllUsersText | Hide | NOT
(VersionNT>=400 AND Privileged=1) |
- Under Tables, click the
Control table. The parameters that correspond to the Control table
appear in the right window.
- Locate the following row in the right window:
Folder
Form | DiskCostButton | PushButton | 276 | 150 | 90 | 18 | 3 | {\VSI_MS_Sans_Serif13.0_0_0}&Disk
Cost... | AllUserRadioGroup | | |
Replace this row with the following:
Folder
Form | DiskCostButton | PushButton | 276 | 150 | 90 | 18 | 3 | {\VSI_MS_Sans_Serif13.0_0_0}&Disk
Cost... | CancelButton | | |
- On the File menu, click
Save, and then close the ORCA window.
back to the topVerify that the changes appear in the installerTo verify that you have deleted the Everyone option and the Just me option from the installer, follow these steps. Note When you run the installer, you will notice that the Everyone option and the Just me option never appear. - Run the Windows Installer package. To do this, locate and then double-click the Setup1.msi file.
- In the Setup1 dialog box, click Next.
- Select an installation folder
path, and then click Next.
- Click Next to install the WindowsApplication1 application.
- Click Close to finish the
installation.
back to the topREFERENCESFor more information about Windows Installer and about how to validate an
installation database, visit the following Microsoft Developer Network (MSDN) Web
sites:
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
317421
How to create a setup project for a Windows service in Visual Basic .NET
821766 How to build an installer by using Visual Basic .NET
back to the
top
Modification Type: | Minor | Last Reviewed: | 5/23/2005 |
---|
Keywords: | kbMSIFAQ kbsetup kbPackaging kbDeployment kbAppSetup kbAppDev kbHOWTOmaster KB835460 kbAudDeveloper kbAudEndUser |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|