Skip to content

[Bug] Exit-Script Statement Conversion Issue from V3 to V4 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
preuss-kbr opened this issue Feb 12, 2025 · 0 comments
Open
3 tasks done

[Bug] Exit-Script Statement Conversion Issue from V3 to V4 #11

preuss-kbr opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@preuss-kbr
Copy link

Prerequisites

PSAppDeployToolkit.Tools version

0.2.3

PSAppDeployToolkit version

4.0.5

Describe the bug

Using Convert-ADTDeployment on V3 script converts "Exit-Script" calls in the main script logic to invalid function calls.

V3 code:
Exit-Script -ExitCode $someExitCode

V4 converted output (function does not exist):
Exit-ADTScript -ExitCode $someExitCode

Possible V4 converted output:
Close-ADTSession -ExitCode $someExitCode

Steps to reproduce

Add following line under installation phase in v3 script:
Exit-Script -ExitCode 71001

Environment data

Windows 11 23H2
@preuss-kbr preuss-kbr added the bug Something isn't working label Feb 12, 2025
@DanGough DanGough self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants