Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 532317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:23:32+00:00 2026-05-13T09:23:32+00:00

Making sense out of an .MSI verbose trace. I created the .MSI using VisualStudio

  • 0

Making sense out of an .MSI verbose trace. I created the .MSI using VisualStudio 2008.

Here’s the background on what I’m trying to do:
http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=79454

The goal is to run a program called XmlPreprocess.exe similar to this:
xmlpreprocess.exe /x:”SettingsFileGenerator.xml” /i:”web.config” /e:QA /v

The /x: parm comes from one of my user interface forms, and the /e: value comes from a choice of four radio buttons.

I set property “InstallerClass” to False,
and property “CustomActionData” to:
/x:”[SETTINGSFILE]” /i:”[TARGETDIR]web.config” [CUSTOMSETTINGS] /e:[ENVIRONMENTBUTTON]
and I’m leaving property “Arguments” empty.

Here’s what the trace is telling me. It looks like my parms are going to the appropriate places (I selected “QA” from the Radio Button). The error is the same that I’m seeing on the GUI screen – that “A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.” I’m not sure if the ErrorIcon information is just noise, or if it is relevant.

MSI (s) (A4:58) [10:46:09:130]: Executing op: CustomActionSchedule(Action=_78D3A615_0FDF_491D_8BD0_4AA0A0DAE3C2,ActionType=3090,Source=C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\XmlPreprocess.exe,,CustomActionData=/x:"c:\Source\TFBIC.RCT.BizTalk\TFBIC.RCT.BizTalk.Deployment\EnvironmentSettings\SettingsFileGenerator.xml" /i:"C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\web.config"  /e:QA)
MSI (s) (A4:58) [10:46:09:728]: Note: 1: 1722 2: _78D3A615_0FDF_491D_8BD0_4AA0A0DAE3C2 3: C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\XmlPreprocess.exe 4:  
MSI (s) (A4:58) [10:46:09:728]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (E0:C8) [10:46:09:763]: Note: 1: 2262 2: Error 3: -2147287038 
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
**Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.**  Action _78D3A615_0FDF_491D_8BD0_4AA0A0DAE3C2, location: C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\XmlPreprocess.exe, command:  
MSI (s) (A4:58) [10:46:11:630]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (s) (A4:58) [10:46:11:630]: Product: TFBIC.RCT.WCFWebServices -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.  Action _78D3A615_0FDF_491D_8BD0_4AA0A0DAE3C2, location: C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\XmlPreprocess.exe, command:  

Action ended 10:46:11: InstallExecute. Return value 3.
MSI (s) (A4:58) [10:46:11:633]: User policy value 'DisableRollback' is 0
MSI (s) (A4:58) [10:46:11:633]: Machine policy value 'DisableRollback' is 0

NOTE: got the above trace by doing this:

msiexec /i “TFBIC.RCT.WCFWebServicesSetup.msi” /L*V “C:\logs\WebServiceInstall.log”

Update: Based on comments below – the XmlPreprocess.exe (my CustomAction) is returning a non-zero return code. So how can I debug that? I need to see the results that would normally be in the command window.

Update 01/07:
Seems like this is impossible to debug without seeing the output of the program – that’s what I really need. When the installer gives an error, I can see the files in that dir until I click the OK button and it deletes them all. I go to command prompt, type in xmlpreprocess.exe then copy/paste the exact same string from the log above “/x:”c:\Source\TFBIC.RCT.BizTalk\TFBIC.RCT.BizTalk.Deployment\EnvironmentSettings\SettingsFileGenerator.xml” /i:”C:\inetpub\wwwroot\TFBIC.RCT.WCFWebServicesSetup\web.config” /e:QA” and it runs fine.

I see Ryan’s point about a missing file, thanks for that. But there could be dozens of potential errors that should be clearly displayed in the output of the XmlPreprocess program. Surely there is someway to see the output?

The two potential missing files are:
1) the web.config itself (it’s there)
2) the name of the file the user types in.

As far as I can tell, there is no way to validate that the user typed in a valid filename, and there is no “file picker” available in the dialog boxes of the install. Correct? or no?

So even if the user did type in bad filename, I need to give him a better message than
“A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.”

Maybe I should write my own C# wrapper for XmlPreprocess and call it, then intercept the output and read it???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:23:32+00:00Added an answer on May 13, 2026 at 9:23 am

    Like in your previous question where I suggested using cmd.exe /C XmlPreProcess.exe ... for redirection, for debugging you can try with /K instead of /C. Then any output should stick around, and you’d be able to work within the context of the MSI at the time of error.

    What I really suspect is the problem is the scheduling of your custom action. If this action is immediate, scheduled before InstallFinalize, and intended to operate on a file you will be installing, it will run before files are installed to the location you expect. The proper fix for this is generally to run the action in-script (also called deferred) so that by scheduling it between InstallFiles and InstallFinalize, it actually runs in that corresponding location.

    As for providing better errors for your end users, or allowing them to browse for a file, these would both take custom actions, and probably need to be DLL actions (EXE actions can provide only pass/fail feedback). It will be your choice whether it’s better (or easier) to provide a browse dialog or to verify the path the user provides. I’m not certain how much of this you can do in a Visual Studio Installer project (which is what I’m assuming you’re using by your tags).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've searched forums for a solution, but the examples aren't making sense to me.
I imagine two, but I would like to confirm if I am making sense
Making my first steps in RIA Services (VS2010Beta2) and i encountered this problem: created
Maybe I am being stupid, but this isn't making sense to me... I have
I spent 4 full days trying everything I can to figure out the memory
This just is't making sense to me at all. This is my code: boolean
I'm not making sense of the following behavior (see also in this SO thread
I'm trying to figure out how I can track how the elements in a
I'm a newb with Rails and am trying to get out my first Rails
I am using jquery to scroll to sections of my page. Here's the code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.