Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:06:55+00:00 2026-06-09T23:06:55+00:00

I am trying to install a Windows Installer File i.e. BAT file which consist

  • 0

I am trying to install a Windows Installer File i.e. BAT file which consist of DOS command.I want to run BAT file and extract DOS command from BAT file and re-run the DOS command, in order, to install proper driver. I did search a lot but I couldn’t able to get solution for that. I am able to run .exe file.

here is my code –

ProcessStartInfo aProcessInfo;
Process aProcess = new Process();

aProcessInfo = new ProcessStartInfo(command);
aProcessInfo.UseShellExecute = false;             
aProcessInfo.RedirectStandardOutput = true;
aProcessInfo.RedirectStandardError = true;
aProcessInfo.CreateNoWindow = true;

aProcess = Process.Start(aProcessInfo);
aProcess.WaitForExit();

My BAT file is install.bat; which when I click on edit open DOS command like

cls

msiexec /quiet /passive /i lcild_v207230.msi

in notepad.

Can anyone explain me how to extract and install driver from BAT file.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:06:57+00:00Added an answer on June 9, 2026 at 11:06 pm

    Ok then, this one just pops-up in my head. You can read the BAT file as a text file using File.Read or StreamReader class and then read the line that has the actual installation command i.e. the line with msiexec and then use your ProcessStartInfo class to start “msiexec”. Make sure to pass whatever parameters that command needs, obviously a file name. See if that works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install WordPress from Web Platform Installer on Windows Server 2008 R2 Standard
I'm trying to install Swish-E ,but unfortunately a windows installer is not present so
When trying to install my 32bit service on a Windows 64bit machine my installer
I am trying to install a windows service written in c#/ VS2010, which uses
I am trying to create a wix installer to install and start a Windows
I am trying to install diaspora in windows and when I run my bundle
Hi I'm trying to run bundle install on my windows machine it runs fine
I'm trying to install a Windows Service using a batch file, let's call it
I'm trying to create a shell and bat file in which I need to
I'm trying to install a Python Module by running a Windows installer (an EXE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.