[wix-users] WixShellExecTarget with Value="[#myapp.exe]" keeps unresolved

Phill Hogland phill.hogland at rimage.com
Mon Jun 6 10:35:42 PDT 2016


Note in this doc:
https://msdn.microsoft.com/en-us/library/aa368609(v=vs.85).aspx

If a substring of the form [#filekey] is found, it is replaced by the full path of the file, with the value filekey used as a key into the File table. The value of [#filekey] remains blank and is not replaced by a path until the installer runs the CostInitialize action, FileCost action, and CostFinalize action. The value of [#filekey] depends upon the installation state of the component to which the file belongs. If the component is run from the source, the value is the path to the source location of the file. If the component is run locally, the value is the path to the target location of the file after installation. If the component has an action state of absent, the installed state of the component is used to determine the [#filekey] value. If the installed state of the component is also absent or null, [#filekey] resolves to an empty string, otherwise it resolves to the value based upon the component's installed state. For more information about checking the installation state of components, see Checking the Installation of Features, Components, Files.

I did not see in your code where an entry to the File table using File/@Id is defined, and depending on the state of the Component the string may be empty.
________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Yuri Tkachenko <yuri at yandex.ua>
Sent: Monday, June 6, 2016 12:11:22 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] WixShellExecTarget with Value="[#myapp.exe]" keeps unresolved

Hi!
I am trying to adopt this guide: http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html

and ended up with
https://github.com/ubergrape/grape-electron/blob/master/resources/windows/installer.wxl#L106-L111

However the `[#$(var.exeName)]` keeps beeing unresolved.
here is string from logfile:
`Property(S): WixShellExecTarget = [#Grape.exe]`

and if I explicitly write down
`<Property Id="WixShellExecTarget" Value="С:\Program Files\Grape\Grape.exe" />` and of course don't change path while installing, I could launch app after install.

Why this `[#$(var.exeName)]` resolves into [#Grape.exe] but not into full path?
Full config https://github.com/ubergrape/grape-electron/blob/master/resources/windows/installer.wxl

Thanks.



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list