Solved

Run MSI from batch file

Posted on 2013-06-12
1
950 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
1 Comment
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 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

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now