[wix-users] Problem with launched application

David Connet dcon at agilityrecordbook.com
Wed Jan 11 11:14:25 PST 2017


On 1/11/2017 11:10 AM, David Connet wrote:
> Seems like it would be better to make the app understand where the files
> are regardless of where it is launched from. Why? I often start programs
> from the cmd.exe prompt.
>
> Dave

Meant to mention: GetModuleFileName

Dave

>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of Packer, David
>> Sent: Wednesday, January 11, 2017 11:19 AM
>> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> Subject: Re: [wix-users] Problem with launched application
>>
>> I suspect this is the cause. Is there a way to launch the application
>> from its proper directory? Can I change the working directory?
>>
>> Thanks!
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of Collin Perschon
>> Sent: January-11-17 12:59 PM
>> To: WiX Toolset Users Mailing List
>> Subject: [EXTERNAL] Re: [wix-users] Problem with launched application
>>
>> 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:
>>
>>     <InstallExecuteSequence>
>>       <Custom Action="LaunchFile" After="InstallFinalize">NOT
>> Installed</Custom>
>>     </InstallExecuteSequence>
>>
>> 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