Solved

Not able to run Web Installer MSI on disk

Posted on 2014-12-13
7
225 Views
Last Modified: 2014-12-21
I can run the Installer in Visual Studio by right clicking the solution and choosing "Install" option.

But, when I am trying to run the MSI file for the Web Installer (From Visual Studio) on the disk , I get a permissions error.

But I am the Administrator on the machine.
Cannot figure out the issue.

Please help.
0
Comment
Question by:SHANCHAT972
  • 4
  • 3
7 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 40498433
Could you post the exact error message?
Also if the error does not contain many details, you can run your installer from command prompt and  create a log using msiexec:
msiexec /i <path_to_msi> /L*V <path_to_log>

Open in new window


Notice that if you are on the same machine you should uninstall your program first.
0
 

Author Comment

by:SHANCHAT972
ID: 40498599
Funny that the installation ran when I used "msiexec" command. (The command prompt was running as administrator).

But on the disk when I right clicked and chose install (Or even run as Admin), I got error message both times.
The message is "You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and retry this installation."

Please tell me if you need more information..
0
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 40499243
By disk you mean a DVD or USB HD or network drive?
The error is typical permission error message. I will check the security permissions of your MSI on the "disk" itself.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:SHANCHAT972
ID: 40499741
I am running the MSI on local hard disk on my machine.

Here are the permissions of my MSI file.
I even edited the permissions to give full controls to every user mentioned in the Properties window.
But still I get the same error.

InstallerPermissions.gif

But then how come I am able to run the MSI using MSIEXEC in command prompt (Running as admin)?
0
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 40501441
Q1. Could you post the SYSTEM permissions on the source and target folder?
SYSTEM must have full control on these folders for installer to run as shown here
Q2. When you run cmd prompt.What was "The command prompt was running as administrator" means?
Does it mean that you log as a normal user and then elevate cmd prompt as administrator?
0
 

Accepted Solution

by:
SHANCHAT972 earned 0 total points
ID: 40504265
Q1. I figured it out. I don't have to run the MSI file by right click and Install.
       I was being dumb. :-(  
       I have to run the SETUP.EXE file and choose "Run this program as administrator"
(See screenshot)
. This option was greyed out in the MSI file.
      After this change, the installer is running perfectly from windows prompt.

Q2. I am logged in as a Domain user on machine and my user is part of Admin group. I right click the command prompt and choose "Run as Administrator".. Then I run the command "MSIEXEC /i  <application.msi>"


SetupEXE-RunAsAdmin.gif
0
 

Author Closing Comment

by:SHANCHAT972
ID: 40511435
Solved by trial.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The viewer will learn how to implement Singleton Design Pattern in Java.

920 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

16 Experts available now in Live!

Get 1:1 Help Now