- Status: open --> migrated
The SetDirectory Sequence attribute gives you the options of both, execute, ui. When set to both SetDirectory is implemented as a type 51 custom action. I would like an option for SetDirectory as a type 307 custom action. This would mean the action would execute once if present in both tables. Given the current sequence options, an option of "once" could be added to tell wix to implement SetDirectory as a type 307 custom action.
I noticed the problem when I was using <setdirectory id="user-content-INSTALLDIR" value="<span>[ProgramFilesFolder]</span><span>[Manufacturer]</span>\[ProductName]"> along with <property id="user-content-WIXUI_INSTALLDIR">INSTALLDIR</property> <uiref id="user-content-WixUI_InstallDir">. When I set a different installation folder in the install UI it was set again to [ProgramFilesFolder][Manufacturer][ProductName]. When I changed the custom action type to 307 using orca the installation folder could be properly set in the install UI.</uiref></setdirectory>
Please add an option to SetDirectory to produce a type 307 CustomAction.