Batch file deployment – Exit Code 2

BatchPatch Forums Home Forums BatchPatch Support Forum Batch file deployment – Exit Code 2

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8940
    deepfriedbutter
    Participant

    I have tried many ways to deploy a batch file through batchpatch. I’ve used local command, file copy and then local command, deploy package, deploy package and delete and deploy package and leave file without luck. The batch file executes fine on the system if I double click or or run it from CMD.

    Regardless of how I launch it from batchpatch, it always gives me Exit Code 2.

    #10397
    doug
    Moderator

    If you share the actual batch file, I might be able to help get it working.

    #10398
    deepfriedbutter
    Participant

    I used the following because batchpatch was failing using the native package deploy method.


    net use x: \nas04share

    x:

    setup.exe /s /flx:setup.iss

    timeout 60

    c:

    net use x: /delete


    #10399
    doug
    Moderator

    I’m confused. Can we back up? What exactly are you trying to accomplish? If you are trying to execute a deployment to install the setup.exe, probably it makes most sense to start from there, rather than starting from a batch file that you’re trying to use to solve a problem with a deployment. I would suggest starting with a normal BatchPatch deployment, if your goal is to deploy the setup.exe. You said it failed, but I’m not clear on how it failed or what error was produced etc. Probably the best way for me to help you with this is through email where you can send me screenshots etc, rather than on this forum. If you are a licensed customer, please use the contact form to reach out. Please provide as much detail as possible about what you are trying to do and what is happening.

    Thanks,

    Doug

    #10422
    deepfriedbutter
    Participant

    I went ahead and sent an email. Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.