Hello Fred,
Thanks for the provided files.
After further investigating this, I came to the conclusion that you are not setting the property correctly from within your custom action.
From what I could see in your .AIP file, I think that you are probably setting your properties from within the
"SetServiceDefaults" custom action (please correct me if I'm wrong). First thing to notice here is the fact that it is enough to place the custom action before the
"Searches" action group as you have already done. There is no need to place it once again after the
"Preparing" action group. This is because properties are resolved to their values during the
"CostFinalize" standard action (which is part of the
"Paths Resolution" action group.
The second thing I could notice from the sent log is that the
"SET_APPDIR" action is taking place. This action takes place only when, at the moment the action is executing, the APPDIR property is empty. The APPDIR property being empty makes me think that you are not correctly setting it from within your custom action. In a project where the APPDIR property was set before the "SET_APPDIR" action takes place, the log portion for "SET_APPDIR" action should look like this:
Code: Select all
MSI (s) (44:D8) [14:43:16:470]: Skipping action: SET_APPDIR (condition is false)
while in your sent log, it looks like this:
Code: Select all
MSI (s) (6C:BC) [08:47:06:369]: Doing action: SET_APPDIR
MSI (s) (6C:BC) [08:47:06:370]: PROPERTY CHANGE: Adding APPDIR property. Its value is 'C:\Program Files (x86)\Something\Something2'.
With that being said, could you please review your custom action's code once more and make sure that you are correctly setting the APPDIR property? Please have a look on our
"How to set an installer property using custom actions" article for more information about this.
Hope this helps.
All the best,
Catalin
FOLLOW US
Get the latest news in Application Packaging