Tag Archives: IIS 7.5

IIS application pool configuration with PowerShell

https://social.msdn.microsoft.com/Forums/en-US/580660b4-3d9e-4605-a28b-3407089caceb/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting

$appPoolPath =  “iis:\AppPools\foo”

$appPool = new-item $appPoolPath

$appPool | set-itemproperty -Name “managedRuntimeVersion” -Value “v2.0”
$appPool | set-itemproperty -Name “managedPipelineMode” -Value “Classic”

function AppPoolConfiguration{
param ([System.String]$applicationPoolName)

$pool = Get-Item “IIS:\AppPools\ASP.NET v4.0”;

#set Enable 32bit Applications
$pool.enable32BitAppOnWin64 = “True”
Log-Info “IIS App pool $pool settings changed: enable32BitAppOnWin64 = True”

#set Pipeline mode
$pool.managedPipelineMode = 0
Log-Info “IIS App pool $pool settings changed: managedPipelineMode = Integrated”

#set Identity
$pool.processModel.username = “reasult\test_lt”
$pool.processModel.password = “2jDsEGih”
$pool.processModel.identityType = 3
Log-Info “IIS App pool $pool settings changed: Identity = $pool.processModel.username”

#set Idle Time-out
$pool.processModel.idleTimeout = “06:00:00”
Log-Info “IIS App pool $pool settings changed: idleTimeout = $pool.processModel.idleTimeout”

#Save
$pool | set-item
}

AppPoolConfiguration $installedWebApplication.applicationPool;

Msi setup error: installation incomplete

Recently I cleaned (format: c) my computer to make it faster. I reinstalled all software I need for .NET and web development. Suddenly I was stunned with the fact that msi setups are not working  on my machine any more!

I started getting “Installation incomplete” error without extra details.

But there is a way to enable logging for msi installation process. You just need run this command: “msiexec /i MySetyp.msi /l*v mylog.txt”.

You will get big error log with information like that (full log ):

Full log is attached:

MSI (c) (B8:04) [08:34:24:407]: Machine policy value ‘DisableUserInstalls’ is 0
MSI (c) (B8:04) [08:34:24:526]: SOFTWARE RESTRICTION POLICY: Verifying package –> ‘C:\MySetup.msi’ against software restriction policy
MSI (c) (B8:04) [08:34:24:526]: Note: 1: 2262 2: DigitalSignature 3: -2147287038
MSI (c) (B8:04) [08:34:24:526]: SOFTWARE RESTRICTION POLICY: C:\MySetup.msi.msi is not digitally signed
MSI (c) (B8:04) [08:34:24:528]: SOFTWARE RESTRICTION POLICY: C:\MySetup.msi.msi is permitted to run at the ‘unrestricted’ authorization level.
MSI (c) (B8:04) [08:34:24:538]: Cloaking enabled.
MSI (c) (B8:04) [08:34:24:538]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (B8:04) [08:34:24:544]: End dialog not enabled
INFO   : [03/21/2012 08:34:24:710] [CheckFX                                 ]: Custom Action is starting…
INFO   : [03/21/2012 08:34:24:710] [CheckFX                                 ]: CoInitializeEx – COM initialization Apartment Threaded…
INFO   : [03/21/2012 08:34:24:712] [CheckFX                                 ]: MsiGetPropertyW – Determine size of property ‘VSDFrameworkVersion’
INFO   : [03/21/2012 08:34:24:712] [CheckFX                                 ]: Allocating space…
INFO   : [03/21/2012 08:34:24:713] [CheckFX                                 ]: MsiGetPropertyW – Getting Property ‘VSDFrameworkVersion’…
INFO   : [03/21/2012 08:34:24:713] [CheckFX                                 ]: Property ‘VSDFrameworkVersion’  retrieved with value ‘v4.0’.
INFO   : [03/21/2012 08:34:24:713] [CheckFX                                 ]: MsiGetPropertyW – Determine size of property ‘VSDFrameworkProfile’
INFO   : [03/21/2012 08:34:24:714] [CheckFX                                 ]: Property ‘VSDFrameworkProfile’  retrieved with value ”.
INFO   : [03/21/2012 08:34:24:714] [CheckFX                                 ]: Set VSDNETMSG with the FrameworkVersion.
INFO   : [03/21/2012 08:34:24:714] [CheckFX                                 ]: MsiGetPropertyW – Determine size of property ‘VSDNETMSG’
INFO   : [03/21/2012 08:34:24:714] [CheckFX                                 ]: Allocating space…
INFO   : [03/21/2012 08:34:24:715] [CheckFX                                 ]: MsiGetPropertyW – Getting Property ‘VSDNETMSG’…

Fix: enable “IIS metabase and IIS6 configuration compatibility” as shown in print screen below:

Simple as that.