KraigK
Posts: 15
Joined: Mon Jan 29, 2024 4:07 pm

Install prerequisite from command prompt, not Powershell

I'm trying to install a driver package in silent mode and per their documentation, this is the command needed:

"Zebra CoreScanner Driver (64bit)" -s -f1"zebradriversetup.iss"

When I run this from C:\Windows\systems32.cmd.exe it works just fine. When I tried to build an MSI with it in the prerequisite section, it does not work. I think I've finally figured out that it is launching PowerShell instead. Trying the above command in PS does not work manually.

So how do I fix this?

Image
Attachments
zebra.png
zebra.png (23.22 KiB) Viewed 15309 times
KraigK
Posts: 15
Joined: Mon Jan 29, 2024 4:07 pm

Re: Install prerequisite from command prompt, not Powershell

If I create a batch file with this line, this works when I just run the batch file manually.

Zebra_CoreScanner_Driver -s -f1"c:\kak\zebradriversetup.iss"

I'm not sure why this doesn't work in the PreReq section.
KraigK
Posts: 15
Joined: Mon Jan 29, 2024 4:07 pm

Re: Install prerequisite from command prompt, not Powershell

I just tried copying the exe and associated files to a known folder, then running a batch file and it does not work.

Command prompt opens, it appears to be installing but it doesn't.
KraigK
Posts: 15
Joined: Mon Jan 29, 2024 4:07 pm

Re: Install prerequisite from command prompt, not Powershell

Turns out the Driver package behavior is inconsistent with the silent switch. I ended up using the SDK package and it works is the PreReq section.

Maybe this will help someone in the future.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Install prerequisite from command prompt, not Powershell

Hello,

Thank you for your followup on this. I am sure this will help others who are facing a similar scenario.

It's great to hear that everything is now working as expected.

Let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Install prerequisite from command prompt, not Powershell

You are always welcome, James!

I'm glad to hear Kraig's answer helped you. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”