Deployment - Rollback message bug

Asked By Hrushikesh Pande
01-Jan-09 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  The problem could be due to many reasons. Try these

02-Jan-09 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  It is because of permissions you can

02-Jan-09 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  read this

02-Jan-09 02: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  follow this step
02-Jan-09 02: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  try this
02-Jan-09 02: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
Create New Account
help
Activating version 6 Windows XP Windows 7 My windows XP is version 5.1 (Service pack 3). I need version 6 for my application I someone please tell me how I do this ? Thank you, ChangTheGraphics Platform SDK Shell Discussions Windows XP (1) Windows Vista (1) Windows 7 (1) Vista (1) ChangChiTheGraphics (1) ChangTheGraphics (1) CodeGear (1) ChangThe (1
Windows Vista vs Windows XP Windows 7 I have been running Windows XP pro. for about 5 years now. I am building a new system and I am considering Windows Vista for a operating system. Are there advantages to Vista over XP? What is the best version of Vista? Any advise would be appreciated. Thanx Windows Vista
up Office I'm not at all sure what to do here. When I run windows update, the junk mail filter KB936677 for Outlook 2003 keeps on coming up time after bytes) OUTLFLTR.DLL 1.4.3504.0 300 KB (307, 440 bytes) I'm running Windows XP / sp2 and office 2003 / sp3 and searching around the web, there's other with the IE7, I choose not to install yet) have installed without a hitch, that's both Windows and Office. Even this (KB936677) update appears to have installed, giving the following message: 'The 2007 23:43:50 Build type: SHIP UNICODE 3.01.4000.4039 Calling process: C: \ WINDOWS \ system32 \ msiexec.exe = = = MSI (c) (2C:F4) [23:43:50:122]: Resetting cached policy values End dialog not enabled MSI (s) (18:A4) [23:43:51:413]: Original package = = > C: \ WINDOWS \ Installer \ 2ff58.msi MSI (s) (18:A4) [23:43:51:423]: Package we're running from = = > C: \ WINDOWS \ Installer \ 2ff58.msi MSI (s) (18:A4) [23:43:51:554]: APPCOMPAT: looking for appcompat copy from system32 MSI (s) (18:A4) [23:43:51:634]: Opening existing patch 'C: \ WINDOWS \ Installer \ 38c3c4.msp'. MSI (s) (18:A4) [23:43:53:767]: Opening existing patch 'C
windows xp Windows 7 I am working as a teacher.I want free windows xp professional original for developing website for our school. It is possible for microsoft. Windows XP Hardware Discussions Windows XP (1) Expression Web (1) Windows 7 (1) ASP.NET (1) UnitedStates (1) SuperPreview (1
Why do you still use Windows XP? Windows 7 Give your reasons. Do you plan to upgrade ever? If so, when and why? If you use both XP and 7, do you ever plan on ditching XP for good? What will you do when support is dropped to the point where this OS will be problematic with new hardware? Personally I am waiting for Windows 8 to release a second service pack. XP sucked when it first came out until SP1. Even then, I find the moron-babysitting did not work, it had to enabled then disabled to be disabled for real. Sigh. . . Windows XP Discussions Windows XP (1) Windows Embedded (1) Windows Server (1) Microsoft Word (1) Windows