Your value for WIXUI_EXITDIALOGOPTIONALCHECKBOX is incorrect <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch <your app> now..." />
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="CA_LaunchWebSite" >WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish> <Property Id="WixShellExecTarget" Value="http://localhost:[WEB_SITE_PORT]/" /> <CustomAction Id="CA_LaunchWebSite" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> -----Original Message----- From: John J. Hughes II [mailto:jj...@functioninternational.com] Sent: January-28-13 2:58 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] WixShellExec not running application on exit I have added the statement to run my application on exit if box is check but it is throwing an error, see below. Using VS2012 and XML Toolst 3.7.1224.0 and windows 7. Application requires UAC to run if that matters, I have tried running the installer from admin command prompt and not. Code in WXS file: ****** <Property Id="WixShellExecTarget" Value="[#$(var.TopupManagerConsole.TargetFileName)]" /> <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> <UI> <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish> </UI> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch $(var.ProductName)" /> Log error message: ******* Action 14:19:51: ExitDialog. Dialog created Action 14:19:53: LaunchApplication. Action start 14:19:53: LaunchApplication. Action ended 14:19:54: LaunchApplication. Return value 3. DEBUG: Error 2896: Executing action LaunchApplication failed. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LaunchApplication, , Action ended 14:19:54: ExitDialog. Return value 3. Thanks in advance, John J. Hughes II Senior Software Engineer Function Group | Function Technology Limited ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users