I have "WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" (Note "TEXT" at end) set to
"Launch $(var.ProductName)" which is the text box for the prompt.  I did not
have a property for WIXUI_EXITDIALOGOPTIONALCHECKBOX which just sets or
clears the check box before you mentioned it.

In regards to why I am using "Launch $(var.ProductName)", it sets the text
box to the name of the application.  The data shown is correct.

I use the "[# .. ]" because the direction said to... From site: "The Value
property uses the special # character to tell WiX to look up the full
installed path of the file with the id myapplication.exe."

I use $(var.TopupManagerConsole.TargetFileName) to pull the target file name
from the project, using VS.

In the log it shows "Property(S): WixShellExecTarget =
[#TopupManagerConsole.exe]" I know the file name is correct.  I have tried
it with and without the [#...] to no avail.  The application does run
correctly after install so that is not the problem.

I have searched the web for " Error 2896 " which seems to say it is a UAC
problem but I also found references that say WixShellExec which prompt if
need for UAC permission so I would not expect that to be a problem but I am
new to the toolset.

I have tried entering the full path name for the WixShellExecTarget but get
the same error so I assume the problem is not the path but permission but
don't understand why.

Regards,
John J. Hughes II


-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: Monday, January 28, 2013 15:41
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] WixShellExec not running application on exit

I have mine set to 1
You have yours set to Launch $(var.ProductName)

Just try changing the value, also your target app why do you have the # in
the element? Value="[#$(var.TopupManagerConsole.TargetFileName)]"

-----Original Message-----
From: John J. Hughes II [mailto:jj...@functioninternational.com]
Sent: January-28-13 3:31 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] WixShellExec not running application on exit

Sorry I don't understand.  Adding a value for
WIXUI_EXITDIALOGOPTIONALCHECKBOX just checks the check box by default, it
does not change the problem as far as I can see.


-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com]
Sent: Monday, January 28, 2013 15:07
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] WixShellExec not running application on exit

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


----------------------------------------------------------------------------
--
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


------------------------------------------------------------------------------
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

Reply via email to