The Custom Action is called LaunchDBS.  It's run from the ExitDialog if the 
relevant check box is 
checked.  It's defined like so:
<CustomAction Id="LaunchDBS" Return="asyncNoWait" FileKey="dbsview.exe" 
ExeCommand="" 
Execute="immediate" />

And dbsview.exe is the file key refered to in a component like so:
<Component Id="dbsui" Guid="165BAE14-E4C2-4E70-A8E3-FC67E754E622">
   <File Id="dbsview.exe" Name="dbsview.exe" DiskId="1" Vital="yes" 
src="../UIApp/bin/Release/dbsview.exe">
   <Shortcut Id="sLaunchUI" Directory="DBSMenuDir" Name="SN-DBS~1" 
LongName="SN-DBS Network View" />
   <Shortcut Id="sStartupUI" Directory="StartupFolder" Name="SN-DBS~1" 
LongName="SN-DBS Network View" />
   </File>
</Component>

The line from ExitDialog that runs it is a child of the 'Finish' button control 
and look like this:
<Publish Event="DoAction" Value="LaunchDBS"><![CDATA[(InstallMode<>"Remove") 
AND 
(InstallMode<>"Repair") AND (InstallMode<>"Change") AND 
(RUNDBSNOW=1)]]></Publish>

RUNDBSNOW is the property associated with the 'run UI now' check box on the 
dialog.

Rob

Denis Zavorotnyuk wrote:
> Hi, Rob.
> Can you show your wxs-file in which you describe your custom actions?
> Btw, in your installation log-file there isn't a custom action which must 
> launch your dbsview.exe after installation.
> 
> С уважением,
> Заворотнюк Денис.
> 
>> -----Исходное сообщение-----
>> От: [EMAIL PROTECTED] [mailto:wix-users-
>> [EMAIL PROTECTED] От имени Rob Hamflett
>> Отправлено: 18 сентября 2008 г. 18:29
>> Кому: wix-users@lists.sourceforge.net
>> Тема: Re: [WiX-users] File not installed when it really is
>>
>> It appears my attachment has been stripped.  I've uploaded it here:
>> https://www.snsys.com/res/store/log.zip
>>
>> Thanks for any help,
>> Rob
>>
>> Rob Hamflett wrote:
>>> I've got an issue where the installer gives an error when I refer to an
>>> ID for a file that wasn't installed, even though it actually is.
>>>
>>> I have a file called dbsview.exe, and the file ID is the same.  I'm
>>> trying to launch it at the end with a Custom Action using the file ID.
>>> When I do this I get a 2753 error reporting that this file was not
>>> marked for installation.  I've created a full log of the installation
>>> and attached it.  I've added a second extension because some mailing
>>> lists have issues with zip files.  The error appears at line 14839.
>>> However, the file is actually installed.  The version number of the file
>>> on disk changes as expected, and you can see that Windows Installer
>>> reports that the file will be installed on line 13772.
>>>
>>> I'm trying to allow 4th digit upgrades, so I have scheduled
>>> RemoveExistingProducts to before CostInitialize.  I realise that this
>>> has issues with rollback, and that although 3rd digit downgrades are
>>> still caught by the Upgrade table, 4th digit downgrades aren't.  This is
>>> actually the case that is failing.  I'm downgrading from 2.0.47.4 to
>>> 2.0.47.3.  Everything goes exactly as it should, except for when I try
>>> to use the file ID in a Custom Action.
>>>
>>> A while back I became aware of an issue in Windows Installer where the
>>> path for a file wouldn't be available via it's ID if the file wasn't
>>> actually to be installed.  This was discovered in a similar Custom
>>> Action that was used to launch an executable that hadn't changed and so
>>> was not marked for installation.  The work around was to use a property
>>> and set it to a directory with the file name hard-coded onto the end.  I
>>> guess I can do the same here, but I'd like to understand whats going wrong.
>>>
>>> Any help would be appreciated.
>>>
>>> Rob
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to