?
Solved

Run MSI from batch file

Posted on 2013-06-12
1
Medium Priority
?
983 Views
Last Modified: 2013-06-12
I have a Windows Installer Package (MSI) file that behaves differently on my Win-7 machine, compared to Win-XP.  On the Win-7 machine, the MSI installs the program to the root directory (C:\) instead of the intended location (C:\TEST).  But if I execute the MSI on the Win-7 via Command Prompt running as Admin, it installs in the correct location.

I was wondering if someone could point me to a solution where I can execute a batch file, which in-turn will call 'Command Prompt to run as Admin' and execute the MSI file?

Thanks for your help!
0
Comment
Question by:arunykand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
plusone3055 earned 2000 total points
ID: 39241378
From
http://www.howtogeek.com/forum/topic/make-a-batch-file-to-run-cmd-as-administrator


Make a batch file in an editor and nameit.bat then create a shortcut to it. Nameit.bat - shortcut. then right click on Nameit.bat - shortcut ->Properties->Shortcut tab -> Advanced and click Run as administrator. Execute it from the shortcut.
0

Featured Post

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Determining the an SCCM package name from the Package ID
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question