This project is read-only.

Understanding some variables

Topics: Archive - General
Nov 27, 2014 at 3:51 AM

What are suppose to do those variables:

[string]$dirAppDeployFiles = Join-Path -Path $scriptParentPath -ChildPath 'AppDeployToolkitFiles'
[string]$dirFiles = Join-Path -Path $scriptParentPath -ChildPath 'Files'
[string]$dirSupportFiles = Join-Path -Path $scriptParentPath -ChildPath 'SupportFiles'
[string]$dirAppDeployTemp = Join-Path -Path $configToolkitTempPath -ChildPath $appDeployToolkitName
[string]$dirBlockedApps = Join-Path -Path $dirAppDeployTemp -ChildPath 'BlockedApps'

Those variables are looking for files directory. Why the XML would not let us personnalise those? If the files directory is suppose to be the source location then in french it is call sources not files. Not sure to understand.


Nov 27, 2014 at 4:16 AM
Those variables define the toolkit directories used to store script files. If you want to personalize them to your own names, then you will have to modify the toolkit yourself to change the names.
Nov 27, 2014 at 12:52 PM

As the scriptfiles are PSAppdeploy 3.5 is directly in my package, why would I need those variables?


Nov 27, 2014 at 8:33 PM
The toolkit needs to know what directory it is in so that it can read the config XML file and also use the other files in there such as the .ico file and the banner. We also want to know the path to the "Files" directory because that is where you can store the actual files for your install such as the .msi file or maybe .dll files you need to register, etc.