search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsFAQs
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Operating SystemsArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

View Other Deployment Posts   Ask New Question 
Rollback message bug
Hrushikesh Pande posted at Thursday, January 01, 2009 11:47 PM

I wrote a custom installer class  in VB.NET for Windows application and in Install method I am calling a dll which shows a dialog box with OK and Cancel buttons on it. If user clicks cancel button,  setup should be rolled back. When user clicks cancel button, Setup is rolling back but a message box showing error no and description is displayed.

"The Installer has encountered an unexpected error installing this package. This may indicate problem with this package. The error code is 2869."

I don't want to display above dialog box. I don't know from where it comes. Can anybody help me?


 
The problem could be due to many reasons. Try these
[)ia6l0 iii replied to Hrushikesh Pande at Friday, January 02, 2009 12:38 AM

1. You may not have sufficient priviliges to run the Setup. Try under admin mode.

2. Check the event log, that might throw you the real picture for this error message.

3. The rollback script could not be able to roll back completely due to various problems like security permissions etc.

 
It is because of permissions you can
Venkata K replied to Hrushikesh Pande at Friday, January 02, 2009 12:57 AM

try executing the package from command prompt as an administrator like this:

The quick solution is install and create a batch file with the following command:

msiexec /i "path-to-package.msi"

Save the file then right-click it and select "Run as Administrator". That makes it work.

 

 
read this
C_A P replied to Hrushikesh Pande at Friday, January 02, 2009 2:38 AM

The reasons this error shows up is ultimately because Windows Vista now enforces the original architectural intent of the "NoImpersonate" attribute bit, as Robert Flaming explains in his blog posting:
http://blogs.msdn.com/rflaming/archive/2006/09/23/768248.aspx

Omar Shahine describes the error message situation in more detail in his blog posting:
http://www.shahine.com/omar/VSTOAddinsAndVista.aspx

Aaron Stebner summarizes the installer problem well, and describes the necessary steps to solve the problem by correctly setting up installer custom actions correctly in Visual Studio:

Question: I have built an installer using the Visual Studio 2005 setup project wizard. It installs correctly on Windows XP but fails on Windows Vista. I investigated and found that the failure on Windows Vista is caused by a custom action that fails with an access denied error. However, I am running the setup with elevated privileges in Windows Vista. How can I fix my setup so it will work correctly on Windows Vista?

http://blogs.msdn.com/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx

 
follow this step
C_A P replied to Hrushikesh Pande at Friday, January 02, 2009 2:43 AM
  1. Copy the .MSI file to the root directory of your main hard drive (i.e. C:\).
  2. Open Windows Notepad.
  3. Copy this text into windows notepad:
    msiexec /i "C:\program_name.msi"
  4. Replace the text "program_name" in the code that you copied with the actual name of the .MSI file (for example, aura.msi).
  5. Click File -> Save As...
  6. Instead of saving it as a .txt file, change the file name to installer.bat.
  7. Save the file to your desktop
  8. On your desktop, right click on the file (see screenshot below) and select Run as Administrator.

Running the installer bat file
By creating a .BAT file and launching it with the "Run as administrator" function in Windows Vista, the .MSI file should install correctly.

This solution should launch the .MSI file and allow the installation procedure to successfully finish. You should repeat this process for each .MSI file that has an error code 2869 during the installation.

Sources:

 
try this
C_A P replied to Hrushikesh Pande at Friday, January 02, 2009 2:44 AM
It looks like this error is due to the installation package requiring administrative rights. In my case installation package was denied contact with Visual Studio 2005.

There are several ways to fix this problem:
1. create a batch file containing msi package, and run it as Administrator
batch file will contain following line: msiexec /i {package.msi}

2. run msi from the with elevated privileges command prompt.
Find your "Command Prompt", typically located in: %SystemRoot%\system32\cmd.exe (or just search for Command Prompt); right click on it and select "Run as Administrator", and then navigate to your msi file