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

Reply via email to