Can the path variables such as %ModulePath% be used in the command line field of custom 3rd party packages? Is there a better way to pass an included file path to the installer?
I've answered my own question: %ModulePath% is not evaluated when used as a command line parameter, but you can use the environment variable %cd% instead.
Yes, %modulepath% is a value internal to PackageBoot, but an interesting discovery about using %cd%!
Unfortunately %cd% didn't work for my situation since I was trying to pass the current path to msiexec as part of a public property. It seems that the variable isn't parsed before being passed and msiexec.exe doesn't evaluate it either, so I'm looking for another alternative.
Hmmm.. that makes sense. It's an environment variable evaluated by the shell. If the execution is not occuring within the context of the shell, there's no way to evaluate it.
For scripts it should be functional, if it's executing within the context of a cmd.exe session.
Another suggestion just offered as a result of a internal conversation... if you're not using PackageBoot for this project, it might be helpful to do so.
At a minimum it will give you access to the %modulepath% environment variable which can then be used within the context of a <program> element.