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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:55:30+00:00 2026-05-12T14:55:30+00:00

In a Web server installer that I’m maintaining, we keep track of whether or

  • 0

In a Web server installer that I’m maintaining, we keep track of whether or
not the installer had installed IIS 7 and/or ASP (under Vista or later) and
save an appropriate value to the Registry if so. During an uninstall, if that
value is there and no other Web sites are using IIS on that machine, the user
is asked whether or not IIS/ASP is to be removed. If so, we remove whatever
we installed.

The following is the command that we launch in order to remove IIS 7 and ASP
(line breaks added for clarity):

C:\Windows\system32\pkgmgr.exe /norestart /uu:IIS-WebServerRole;
IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;
IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;
IIS-ApplicationDevelopment;IIS-ASP;IIS-ISAPIExtensions;
IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;
IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;
IIS-HttpCompressionStatic;IIS-WebServerManagementTools;
IIS-ManagementConsole;WAS-WindowsActivationService;
WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

This works fine on 32-bit systems but does not work at all on 64-bit
systems, even with WOW64 redirection disabled. (Ignore the /norestart
parameter, as the installer does a reboot at the end of the install if
necessary.) I’ve even tried entering this command into an admin-level command
prompt (without the /norestart parameter), but to no avail.

The command that we use during the install to install IIS 7/ASP is similarly
long, and it always works, so I can’t imagine that the problem is that the
uninstall command line is too long. (To test that theory, I even tried
breaking the command into two commands, one to remove the ASP components only
followed by one to remove the rest. Same problem, nothing was removed.)

Is there some other command that would do what we want on 64-bit systems? If
so, do we have to disable WOW64 redirection, and will it also work on 32-bit
systems? (It will only be called on Vista and later systems. On earlier
systems, we rely on the user making sure that IIS and ASP are pre-installed.)

  • 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-05-12T14:55:31+00:00Added an answer on May 12, 2026 at 2:55 pm

    As it turns out, the problem that I was having doesn’t have anything to do with pkgmgr.exe, unless you want to count lack of patience when doing a manual test to see why it wasn’t working. In the installer, the problem was the install script doing something that prevented the command from getting launched. In the case of the manual tests, I just wasn’t waiting long enough for the command to finish running. (It takes about a couple of minutes, in the case of the above command line.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 251k
  • Answers 251k
  • 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 Using the java.io.File (or perhaps java.nio package). This will generally… May 13, 2026 at 9:30 am
  • Editorial Team
    Editorial Team added an answer No the ScriptableType attribute specifies that all public properties, methods… May 13, 2026 at 9:30 am
  • Editorial Team
    Editorial Team added an answer Look at the number of user seeks/scans/lookups and last user… May 13, 2026 at 9:30 am

Related Questions

In a Web server installer that I'm maintaining, we keep track of whether or
I'm writing a web application in Python, intended for use by teachers and pupils
I have a .Net DLL that I created that implements a WCF client that
I am trying to deploy a web service, written in VS2008 on a brand
So i have the misfortune of embedding this proprietary ActiveX control we created into

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.