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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 184k
  • Answers 184k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I believe that the need for complex variable naming conventions… May 12, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer If you want to host your WCF service in IIS,… May 12, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer I don't know a lot about DB2, but looking up… May 12, 2026 at 4:52 pm

Related Questions

I am creating a Windwos Installer project just for the use of installing our
I have been tasked with creating a program what will create take files in
I am trying to write an installer (by creating a .vdproj) that will work
I am creating a decoupled WMI provider in a class library. Everything I have

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.