I think the only way you could do this (if you can) Is once the app is installed run a custom action to call your application with the credentials entered in Step 3 (assign them to properties) depending on the return code handle the error code, and continue on.
I am not really sure how you will ask to re-enter the credentials if the creds are incorrect... you would have to run this custom action after the installfiles execute sequence (does this app require registry settings/com etc.?) Steve -----Original Message----- From: Rob Emanuele [mailto:robert.emanu...@rackspace.com] Sent: October-24-13 5:23 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Setup Testing Hi, Let me try to be as clear about this as possible. We're using WiX to create our MSI. We are looking to make a flow like this: 1. Welcome 2. EULA 3. Credentials 4. Install (directories, copy files) 5. Run app with creds on command line (our app has no GUI) 6. Handle return code from app 6a. Ask for creds again if needed based on return code 6b. Handle other return codes 7. Install Service 8. Finish Can I bend WiX to our needs or do we look at another plan? Thanks, Rob ________________________________________ From: Hoover, Jacob [jacob.hoo...@greenheck.com] Sent: Thursday, October 24, 2013 8:56 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Setup Testing If the EXE is installed by the MSI, then you would need burn and a fake Exe package later in the chain in order to be able to interact with the installed exe. From there, you could interpret the return code. If this is simply for installing and configuring the service, I would avoid the exe altogether and utilize existing service functionality of Wix/Windows Installer, and configure it with existing file operations (XmlFile and the likes). -----Original Message----- From: Wesley Manning [mailto:wmann...@dynagen.ca] Sent: Thursday, October 24, 2013 8:11 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Setup Testing So you are using MSI? If you are using burn you can use ExePackage element. Have burn run your MSI using MsiPackage to install service/etc and then run your exe using ExePackage. Not an expert in what you're trying to do but a thought. Wes -----Original Message----- From: Rob Emanuele [mailto:robert.emanu...@rackspace.com] Sent: October-24-13 3:56 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Setup Testing Hi Blair, I wish it was that simple. It isn't a GUI application, it is a service (which you can control from the command line). It has no GUI. We can write one, but hoped we could just use the easy to develop GUI in the installer using WiX to configure the service's config file. On top of that we hoped to validate the credentials supplied. This is for the Rackspace Monitoring Agent, an on-host agent, which we are looking to improve the installation and configuring process for our Windows users. My work-in-progress on revising this installer: https://github.com/racker/virgo-base/blob/b46ff4e8f004654ecd07a3f2f5742c80337aee8a/pkg/windows/virgo.wxs The service's exe can create the setup file and validate it exiting with a non-zero error code on failure. What I am asking is can a WiX created installer execute an installed exe and act on its return code. This may not be as simple as I hoped. My initial research looks like there are ways to run an exe but not interpret its return code. Other options look like I can use WcaUtil to hook into a wrapper. It doesn't look simple either way, maybe someone will either tell me I'm wrong or give me another way to look it. Thank you for your help, Rob ________________________________________ From: Blair Murri [os...@live.com] Sent: Wednesday, October 23, 2013 8:35 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Setup Testing I'm not sure I understand what you are asking. The simple answer is: install the app, then run the app passing the supplied credentials on the command line. It seems to me that it would be easier to not involve the installer in the credentials because there isn't much difference between that and simply installing and launching and letting the application ask for the credentials. Every other possibility requires knowing more details about your application and your need/goals in having the installer gather the credentials in the first place. Blair Rob Emanuele <robert.emanu...@rackspace.com> wrote: Hi! We're creating an installer and would like the user to enter their account credentials into the installer. I have a dialog to do that and that part is looking good. I'd like use those credentials to run a test of our application in the installer. Can I run my application and act on the return code within the installer? Thank you, Rob ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users