What's the difference between "aspnet_regiis -ir" and "aspnet_regiis -iru"?

Yan Sklyarenko picture Yan Sklyarenko · Nov 8, 2010 · Viewed 22.5k times · Source

The help text of aspnet_regiis utility says the following for "-ir" option:

Install this version of ASP.NET, register only. Do not change any web applications to use this version.

And the following for "-iru" option:

Install this version of ASP.NET. If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use this version.

It must be my English, but I do not understand what the difference is - both won't change any apps to use this version. And I'm afraid that trying this out myself won't be precise, since I hardly know where to look into...

Does anyone know the difference?

Answer

nybbler picture nybbler · Jan 22, 2011

ASP.NET IIS Registration Options Summary

-i

Install ASP.NET and updates existing applications to use the specified version of the application pool.

-ir

Installs and registers ASP.NET. This option is the same as the -i option except that it does not change the CLR version associated with any existing application pools.

-iru 

If ASP.NET is not currently registered with IIS, performs the tasks of -i. If a previous version of ASP.NET is already registered with IIS, performs the tasks of -ir.

Essentially, depending on your previous setup, -iru may or may not update existing application pools to the version of ASP.NET you are installing.

Hope this clears things up.