Hi,
In order to set the SourceDir property during a silent installation you need to use two custom actions:
- create a ScriptInline custom action under the "InstallExecuteSequence" -> "CostInitialize" standard action (you can see a standard action by using the "Show Standard Action" button on the toolbar)
- in the "Custom Action Properties" page set the "Script Text" field to
- set the "Expression" field in the "Execution Condition" section to
(Not Installed)
- create a "Directory set with formatted" custom action under "InstallExecuteSequence" -> "CostFinalize"
- in the "Choose Installation Folder" dialog select "Application Folder"
- in the "Custom Action Properties" page set the installation folder (for example "[SourceDir]\test")
- set the "Expression" field in the "Execution Condition" section to
(Not Installed)
Note that in this case the application will always be installed in the folder from where the MSI is launched.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging