Hello Arthur,
For some reason it stops working when the package is installed as a chained package.
I'm not sure why you are encountering this behavior. However, if you want to create a folder with name of computer under installation folder (APPDIR) you can try this:
- Go to "Install Parameters" page and create a property like this:
- Name: COMPUTER
Value: Your Value
- Go to "Files and Folders" view and create a new
property-based folder using COMPUTER property.
- Go to "Custom Actions" page and add a
"Set installer property" custom action with sequence, scheduled before "Wizard Dialogs Stage -> Paths Resolution" action group, like this:
- Property: COMPUTER
Formatted: [WindowsVolume][ComputerName]
- Select the above custom action and, while pressing the Shift key, drag it before "Install Execution Stage -> Paths Resolution" action group. From "Custom Action Properties" right pane enable the "Execute only once if present in both sequence tables" execution option.
- Add a new "Set installer property" custom action with sequence, scheduled before "Wizard Dialogs Stage -> Paths Resolution -> Cost Finalize" action group, like this:
- Property: COMPUTER
Formatted: [APPDIR]\[ComputerName]
- Build and run your project.
Also, here's attached a sample, created using our 9.5 version of Advanced Installer, which implements a similar scenario.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging