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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:49:08+00:00 2026-05-11T03:49:08+00:00

I am creating an installer for a silverlight application and would like to be

  • 0

I am creating an installer for a silverlight application and would like to be able to register the .xap extension for IIS automatically. Is there a way to accomplish this without editing the registry? If not, what registry entries to I need to make? 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. 2026-05-11T03:49:08+00:00Added an answer on May 11, 2026 at 3:49 am
    1. Start->run inetmgr (launch IIS management console)
    2. Click on MIME Types
    3. Click Add.. .xap application/x-silverlight-app
    4. Press OK

    or you could save this code to a text file and execute it on the server:

    AddMimeType.vbs

    Dim VPath 'This changes setting at machine level, you may change it to a different path VPath = 'IIS://localhost/MimeMap'  'Add/Update the type for DLR language extension UpdateMime '.xap', 'application/x-silverlight-app'  'Search for the given extension and update its type 'when not found, add it into the collection Sub UpdateMime(Extension, NewType)     Dim LocalMimeMap, MimeMap, MMItem, aMimeMapNew()     Dim i      i = 0     Const ADS_PROPERTY_CLEAR = 1     Const ADS_PROPERTY_UPDATE = 2     Set LocalMimeMap = GetObject(VPath)     MimeMap = LocalMimeMap.GetEx('MimeMap')     Dim found     found = False     For Each MMItem In MimeMap       ReDim Preserve aMimeMapNew(i)       Set aMimeMapNew(i) = CreateObject('MimeMap')       aMimeMapNew(i).Extension = MMItem.Extension       If MMItem.Extension = Extension Then           found = True           MsgBox('Update type of extension ' + MMItem.Extension + ' from ' +     MMItem.MimeType + ' to ' + NewType)           aMimeMapNew(i).MimeType = NewType       Else           aMimeMapNew(i).MimeType = MMItem.MimeType       End If       i = i + 1     Next     If found Then         LocalMimeMap.PutEx ADS_PROPERTY_UPDATE, 'MimeMap', aMimeMapNew         LocalMimeMap.SetInfo     Else         MsgBox('Add new extension ' + Extension + ' with type ' + NewType)         AddMime Extension, NewType     End If End Sub  Sub AddMime(ExtensionToAdd, MimeTypeToAdd)     Dim LocalMimeMap, MimeMap     Dim i     Const ADS_PROPERTY_UPDATE = 2     Set LocalMimeMap = GetObject(VPath)     MimeMap = LocalMimeMap.GetEx('MimeMap')     i = UBound(MimeMap)+1     Redim Preserve MimeMap(i)      Set MimeMap(i) = CreateObject('MimeMap')      MimeMap(i).Extension = ExtensionToAdd     MimeMap(i).MimeType = MimeTypeToAdd     LocalMimeMap.PutEx ADS_PROPERTY_UPDATE,'MimeMap',MimeMap      LocalMimeMap.SetInfo End Sub 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are creating an installer using WIX 3.6 for a Silverlight/WCF application. We require
I am creating windows installer project using Visual Studio 2005. Is there an option
I'm creating an installer for my Windows client application. Currently I create an MSI
I'm write installer for my web site. Installer creating application pool, virtual directory and
This is what I would like: I want to keep the Silverlight default menu
I'm currently creating a small silverlight application for testing, to see if it can
I'm creating an installer for my application using WIX. Everything works fine so far.
I am creating an Installer for my application(which basically acts as an server). Now,
I'm creating an msi installer that needs to be able to upgrade an existing
I'm creating an installer for my application, and the setup project I've created for

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.