dscsekhar
Posts: 11
Joined: Mon Jul 20, 2009 7:34 am

Error with .Net Installer Custom Action

Hi,

I am evaluating the Advanced Installer for our project requirements and am facing troubles running the .Net Installer Custom Actions. I get a 2869 error when I attach this action in the Install phase of the Install Execution sequence.

The Installer Action is currently part of a Visual Studio setup project and works fine from there. It overrides Before Install, After Install, Before Rollback, Commit, Before Uninstall events of the Installer class. The "Before Install" event will pop-up a Windows form to take some input and progresses further based on the input.

Thinking if this error could be because of this Windows Form, I tried running it with another Installer derived class (the parent class for the above one and provided by Microsoft). Same error came up even with that.

I need to run this Custom Action library (which is part of Microsoft's GAX runtime) to be able to run my software post installation. Am I missing something here? Appreciate any help in making this work.

Code: Select all

MSI (s) (F8:B4) [13:29:17:362]: Executing op: ActionStart(Name=dotNetCustAct.dll,,)
Action 13:29:17: dotNetCustAct.dll. 
MSI (s) (F8:B4) [13:29:17:377]: Executing op: CustomActionSchedule(Action=dotNetCustAct.dll,ActionType=1025,Source=BinaryData,Target=LaunchDotNetCustomAction,CustomActionData=/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "C:\Program Files\XXXX\YYYY\Microsoft.Practices.RecipeFramework.dll" "C:\DOCUME~1\CHANDR~1\LOCALS~1\Temp\dotNetCustAct.dll_Config.xml")
MSI (s) (F8:90) [13:29:17:408]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI7E.tmp, Entrypoint: LaunchDotNetCustomAction
DEBUG: Error 2869:  The dialog ErrorDlg has the error style bit set, but is not an error dialog
MSI (c) (DC:C8) [13:29:19:362]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, , 
MSI (c) (DC:C8) [13:34:49:433]: Product: XXXX -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, , 

Error 1001. 
MSI (s) (F8!B0) [13:34:49:448]: 
MSI (s) (F8:90) [13:34:49:558]: Leaked MSIHANDLE (22) of type 790531 for thread 2992
MSI (s) (F8:90) [13:34:49:558]: Note: 1: 2769 2: dotNetCustAct.dll 3: 1 
DEBUG: Error 2769:  Custom Action dotNetCustAct.dll did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: dotNetCustAct.dll, 1, 
Action ended 13:34:49: InstallExecute. Return value 3.
Also, Is there any way by which I can execute this by not installing this assembly i.e. by embedding it in the MSI database (attached assembly).

Thanks in Advance
Chandra.
Last edited by dscsekhar on Mon Jul 20, 2009 1:01 pm, edited 1 time in total.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error with .Net Installer Custom Action

Hi,

If your custom action needs to modify the system then you must set the “Differed with no impersonation” radio button from the Execution Options group, in the Custom Action Properties page.
Also, Is there any way by which I can execute this by not installing this assembly i.e. by embedding it in the MSI database (attached assembly).
Advanced Installer does not offer any other way by which you can execute it without installing the assembly.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dscsekhar
Posts: 11
Joined: Mon Jul 20, 2009 7:34 am

Re: Error with .Net Installer Custom Action

Hi Bodgan,

Thanks for replying.

I have changed the execution options but still the error persists. But, this time the log shows few additional traces indicating it was able to open the Custom Action.
  • MSI (s) (88:98) [17:28:27:497]: Executing op: ActionStart(Name=dotNetCustAct.dll,,)
    Action 17:28:27: dotNetCustAct.dll.
    MSI (s) (88:98) [17:28:27:544]: Executing op: CustomActionSchedule(Action=dotNetCustAct.dll,ActionType=3073,Source=BinaryData,Target=LaunchDotNetCustomAction,CustomActionData=/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "C:\Program Files\XXXX\YYYY\GuidancePackageInstaller.dll" "C:\DOCUME~1\CHANDR~1\LOCALS~1\Temp\dotNetCustAct.dll_Config.xml")
    MSI (s) (88:08) [17:28:27:575]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI18D.tmp, Entrypoint: LaunchDotNetCustomAction
    MSI (s) (88:B4) [17:28:27:606]: Generating random cookie.
    MSI (s) (88:B4) [17:28:27:637]: Created Custom Action Server with PID 2728 (0xAA8).
    MSI (s) (88:38) [17:28:27:669]: Running as a service.
    MSI (s) (88:38) [17:28:27:716]: Hello, I'm your 32bit Elevated custom action server.
    DEBUG: Error 2869: The dialog ErrorDlg has the error style bit set, but is not an error dialog
    MSI (c) (A4:04) [17:28:28:512]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, ,
    MSI (c) (A4:04) [17:28:55:586]: Product: YYYY -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, ,

    Error 1001.
    MSI (s) (88!94) [17:28:55:601]:
    MSI (s) (88:08) [17:28:55:711]: Leaked MSIHANDLE (22) of type 790531 for thread 2452
    MSI (s) (88:08) [17:28:55:726]: Note: 1: 2769 2: dotNetCustAct.dll 3: 1
    DEBUG: Error 2769: Custom Action dotNetCustAct.dll did not close 1 MSIHANDLEs.
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: dotNetCustAct.dll, 1,
    Action ended 17:28:55: InstallExecute. Return value 3.
The CustomAction modifies / creates few registry keys, modifies a file in the Application Folder and in few other locations viz. App Data folder.
dscsekhar
Posts: 11
Joined: Mon Jul 20, 2009 7:34 am

Re: Error with .Net Installer Custom Action

Hi Bodgan,

A debug trace in my CustomAction dll has revealed the issue. I was not passing certain Arguments required via the Custom Action Data. Thanks for you help. I am able to run the installer successfully now. :D

Thanks,
Chandra
Uria
Posts: 21
Joined: Tue Mar 03, 2009 8:47 am

Re: Error with .Net Installer Custom Action

Hi, I have a similar problem.
I'm running version 7.2.1
Windows Server 2008
Visual Studio 2008 SP1.

Log below

Thanks you.

Code: Select all

MSI (s) (88:78) [19:43:25:077]: Executing op: CustomActionSchedule(Action=InstallCustomAction,ActionType=3073,Source=BinaryData,Target=LaunchDotNetCustomAction,CustomActionData=/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /Features="Feature_Server" /InstallMode="Typical" /Installed="" /Remove="" /UpgradeCode="" /ProductVersion="6.2.123.4567" /AssemblyVersion="6.2.0.0" "C:\Program Files\ActionBase Server\Install\ActionBase.Server.Deploy6.2.123.4567.dll" "C:\Users\uriaa\AppData\Local\Temp\dotNetCustAct.dll_Config.xml")
MSI (s) (88:70) [19:43:25:104]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIFEF8.tmp, Entrypoint: LaunchDotNetCustomAction
MSI (s) (88:28) [19:43:25:135]: Generating random cookie.
MSI (s) (88:28) [19:43:25:181]: Created Custom Action Server with PID 2296 (0x8F8).
MSI (s) (88:68) [19:43:25:254]: Running as a service.
MSI (s) (88:68) [19:43:25:287]: Hello, I'm your 32bit Elevated custom action server.
DEBUG: Error 2869:  The dialog ErrorDlg has the error style bit set, but is not an error dialog
MSI (c) (A0:E8) [19:43:31:605]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, , 
MSI (c) (A0:E8) [19:43:43:301]: Product: ActionBase Server -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, , 

Error 1001. 
MSI (s) (88!9C) [19:43:43:363]: 
MSI (s) (88:70) [19:43:43:394]: Leaked MSIHANDLE (11) of type 790531 for thread 1692
MSI (s) (88:70) [19:43:43:434]: Note: 1: 2769 2: InstallCustomAction 3: 1 
DEBUG: Error 2769:  Custom Action InstallCustomAction did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: InstallCustomAction, 1, 
Action ended 19:43:43: InstallExecute. Return value 3.
MSI (s) (88:78) [19:43:43:568]: User policy value 'DisableRollback' is 0
MSI (s) (88:78) [19:43:43:609]: Machine policy value 'DisableRollback' is 0
MSI (s) (88:78) [19:43:43:636]: Executing op: Header(Signature=1397708873,Version=405,Timestamp=1000250660,LangId=1033,Platform=0,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
MSI (s) (88:78) [19:43:43:668]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (88:78) [19:43:43:692]: Executing op: DialogInfo(Type=1,Argument=ActionBase Server)
MSI (s) (88:78) [19:43:43:725]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,,CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
MSI (s) (88:78) [19:43:43:768]: Executing op: RegisterBackupFile(File=C:\Config.Msi\57aa50c.rbf)
MSI (s) (88:78) [19:43:43:800]: Executing op: RegisterBackupFile(File=C:\Config.Msi\57aa50d.rbf)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error with .Net Installer Custom Action

Hi,

Please note that the User Guide contains an error FAQ which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
daniel.c
Posts: 4
Joined: Thu Dec 16, 2010 8:11 am

Re: Error with .Net Installer Custom Action

Hi I am having the same exact issue.
uninstalling the assembly with:
c:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe InstallerTest.dll /u
Works fine.
It is set to "Deferred with no impersonation"

Any ideas ?
Thanks,
Daniel
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error with .Net Installer Custom Action

Hi Daniel,

Have you tried the solution presented in the FAQ mentioned by Cosmin earlier?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”