YES! That was it! Thank you so much. I've been banging my head against a
wall on this one for a while. I couldn't for the life of me find a solution
on the net. Below is the changed markup in my exit dialog for any who
experience the same issue. (I saw a lot of the same questions in multiple
places.) Thanks again.
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Cancel="no" Text="[Button_Finish]">
<Publish Event="SetTargetPath" Value="INSTALLDIR">1</Publish>
<Publish Event="DoAction" Value="LaunchApplication">(NOT Installed) AND
(LAUNCHPRODUCT = 1)</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
On 7/3/07, Bob Arnson <[EMAIL PROTECTED]> wrote:
McGoogus McGrapple wrote:
> If you look at the pasted mark up below you'll see that my executable
> is put in the "C:\Program Files\MyAppDirectory\" directory unless the
> user chooses a different directory. Then the value of INSTALLDIR is
> changed.
How are you changing it? You have to use SetTargetPath control events,
otherwise you're updating only the specific directory, not subdirectories.
> Now everything installs correctly and all shortcuts and such
> work...but the app won't launch. For testing, instead of launching
> the app I had a property set with the value of [#MyAppExe]. The log
> results show that even though INSTALLDIR was pointing to
> "C:\InstallTest\" the value of [#MyAppExe] was still "C:\Program
> Files\MyAppDirectory\MyApp.exe".
It'll have that value until after the CostFinalize action, I believe.
--
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users