[wix-users] Problem with launched application

Collin Perschon collin.perschon at fidelissecurity.com
Wed Jan 11 09:58:31 PST 2017

My guess would be that when you are launching the application after the installation, your working directory is probably set to the MSI location.  This would mess up any relative paths (relative to the executable you are launching).  Then when you close the application and launch it, the working directory is set to where the application has been installed and all the relative paths will work. 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Packer, David
Sent: Wednesday, January 11, 2017 10:29 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Problem with launched application

I am new to the WiX installer, so please bear with me if this is an obvious question.
I am having a problem when I launch my  application after the installation. It cannot see one of the directories that was created during the installation.

I have the following in my installer:

      <Custom Action="LaunchFile" After="InstallFinalize">NOT Installed</Custom>

The application launches correctly and the msi quits.

I am using this to complete configuration, once the application is installed. But a directory (created during the install) does not appear to be visible to the program. The directory in question contains template files, which are consumed by the installed application. If I quit the application, then re-launch it, everything works correctly, so I know that everything was installed in the correct place. It just does not recognize the directory when launched from the msi file.

Any help would be appreciated!

David Packer

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

More information about the wix-users mailing list