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 8697565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:33:26+00:00 2026-06-13T01:33:26+00:00

Our team at work has written a wrapper application/interface to install a series of

  • 0

Our team at work has written a wrapper application/interface to install a series of msi’s silently using msiexec.

My issue relates to installing the msi’s directed at IIS.

I keep getting the following error

Error 1314. The specified path ‘Default Web Site/ROOT/someVirtual’ is
unavailable. The Internet Information Server might not be running or
the path exists and is redirected to another machine. Please check the
status of this virtual directory in the Internet Services Manager.

The msi gets executed with the following parameters set as follows

msiexec.exe /i "D:\SOME.msi" UseShellExecute="false" TARGETSITE="Default Web Site" TARGETVDIR="someVirtual" TARGETAPPPOOL="DefaultAppPool" /qn /l* D:\SOME_log.txt

I realize this issue is stricly IIS related as I’m probably missing some setting/option that i need to setup.

As far as I can see my virtual is in this location “NT4334RB\Sites\Default Web Site\someVirtual”, so my best guess would be that “Default Web Site/ROOT/someVirtual” – ROOT is the issue and needs to be set, but to what? and how?

I just came across this line in the logfile – I think this might be of use?

Getting AppRoot From Url key ‘TARGETURL’

  • 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-13T01:33:28+00:00Added an answer on June 13, 2026 at 1:33 am

    Seemed like my issue was related to me not specifying the metabase path correctly.
    I ended up adding a helper in my code to the likes of this.

    Found various solutions on SO (this got me thinking in the right direction), & I also installed something called IIS Metabase Explorer which was quite useful

    //Added for reference purposes
    //HasRequiredOption("site|s=", "The site location", c =>
    //AddOrUpdateAdditionalMsiProperty("TARGETSITE", BuildMetabasePath(c)));
    
    //apppool => TARGETAPPPOOL
    //virtualdir => TARGETVDIR
    
    /// <summary>
    /// Builds the meta-base path.
    /// </summary>
    /// <param name="websiteName">Name of the website.</param>
    /// <returns>The fully constructed meta-base path</returns>
    private string BuildMetabasePath(string websiteName)
    {
        return "/LM/W3SVC/" + this.GetWebSiteId(websiteName);
    }
    
    /// <summary>
    /// Gets the web site id.
    /// </summary>
    /// <param name="websiteName">Name of the website.</param>
    /// <param name="serverName">Name of the server. Defaults to: localhost if none specified</param>
    /// <returns>The website id</returns>
    private string GetWebSiteId(string websiteName, string serverName = "localhost")
    {
        using (var entries = new DirectoryEntry(string.Format("IIS://{0}/w3svc", serverName)))
        {
            var children = entries.Children.Cast<DirectoryEntry>();
            var sites =
               (from de in children
                 where
                 de.SchemaClassName == "IIsWebServer" &&
                 de.Properties["ServerComment"].Value.ToString() == websiteName
                 select de).ToList();
    
           if (sites.Any())
           {
              return sites.First().Name;
           }
       }
    
      return "-1";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team at work has enthusiastically adopted a rebase workflow, but we might have
Moving forward with re-designing a web service architecture using WCF, our team has been
I am using WPF, and attempting to follow the MVVM pattern. Our team has
Our development team uses Eclipse + Aptana to do their web development work. Currently,
Our team has just started developing for the Sitecore CMS. We find that after
Our Team Foundation Server has to build three different versions of the same solution.
Our team is growing, but we're also growing specialized. We've already been using ticketing/bug
When working remotely, our team only has access to our source code by remote
Seeing as though our team maintain an Intranet which has clients users guaranteed to
I am setting up our (relatively small) programming team to work with source control.

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.