I wonder how to set working directory of the launching application (setup launches app after the setup). Currently I have the following custom action to launch the installed application.
<CustomAction Id="LaunchMyRedPro" FileKey="MyRedPro.exe" Return="asyncNoWait" ExeCommand="" Impersonate="yes"/> And it refers to the following file defined in the WIX: <File Id="MyRedPro.exe" Name="MyRedPro.exe" KeyPath="yes" Assembly=".net" AssemblyApplication="MyRedPro.exe" Source="$(var.MyRedProExePath)" > <Shortcut Id="MyRedProProgMenuShortcut" Advertise="yes" Icon="MyRedProIcon.exe" Directory="ProgramMenuDir" WorkingDirectory="TARGETDIR" Description="!(loc.ShortcutDesc)" Name="MyRedPro.lnk" Show="normal" /> <netfx:NativeImage Id="MyRedProGenNativeImage" Dependencies="yes"/> </File> My setup installs successfully and it launches the application; however the working directory of the launched application is being set as the same folder of the MSI (or maybe System32). I want to run it under the installation folder (e.g. TARGETDIR) as in Shortcut configuration above. I don't want to use cmd.exe and do it indirectly. I am sure that there is a way to do that in WIX. Any help on that? -Baris ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users