Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

PSADT Module AppDeploymentToolkitMain used insted of Applocal one #5

Open
AlkHacNar opened this issue Jul 3, 2024 · 3 comments
Open

Comments

@AlkHacNar
Copy link

somehow I have now the Problem, that if the psadt module is installed the appinstall via psadt uses it, instead of the local one. I try to check, if i can get why

@AlkHacNar
Copy link
Author

never mind, I had it imported with my standard ps profile

@AlkHacNar
Copy link
Author

ok, the issue is still accuring and I found a post to it too Link . somehow it dot-source the module main and not the local one. Could you look at it? it wan't in the v3.9.3. Maybe it's a problem with the variable fix?

@AlkHacNar AlkHacNar reopened this Jul 29, 2024
@AlkHacNar
Copy link
Author

AlkHacNar commented Jul 29, 2024

@JonathanPitre my gues is, that the invocation in this park is broken somehow
`
If (Test-Path -LiteralPath 'variable:HostInvocation') {
$InvocationInfo = $HostInvocation
}
Else {
$InvocationInfo = $MyInvocation
}
[String]$scriptDirectory = Split-Path -Path $InvocationInfo.MyCommand.Definition -Parent

## Dot source the required App Deploy Toolkit Functions
Try {
    [String]$moduleAppDeployToolkitMain = "$scriptDirectory\AppDeployToolkit\AppDeployToolkitMain.ps1"

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant