Hello,
The
temporary files are copied on target machine during the "Paths Resolution -> CostFinalize" standard action and it is removed during the "Finish Execution -> InstallFinalize" standard action.
So, in "Custom Actions" page you should add your validation dll custom action after the "Wizard Dialogs Stage -> Paths Resolution" action group. Then while keeping the [SHIFT] key pressed you should drag and drop it under the "Installation Execution Stage -> Paths Resolution" action group. This way the custom action will be shared between during both execution stage (the UI and the Installation one). The Wizard stage is executing only when the main installation runs with Full UI.
Also, under the "Execution Stage Condition" section you should click on the "Advanced execution scenarios..." hyperlink and enable the "Skip action in Install Execution Stage if Dialogs Stage used the same process" option. This way the custom action will be executed only during the Wizard stage when the installation runs with full UI and in the Installation stage when not executing with Full UI.
In what regards the path of the temp files, this is stored in their associated property. Just go to "Files and Folders" page, double click on the temp file and check its property. You can get the above property value from your custom action DLL code to get the temp file path at install time.
If you have any questions just let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging