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:\Reaturn.CashFlowCalculationSetup.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:\Reaturn.CashFlowCalculationSetup.msi is not digitally signed
MSI (c) (B8:04) [08:34:24:528]: SOFTWARE RESTRICTION POLICY: C:\Reaturn.CashFlowCalculationSetup.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.

Hosting ASP websites and WCF services on GoDaddy

Recently I bought GoDaddy hosting for few purposes. Firstly, I want to integrate my web experiments into sunauskas.com domain and to keep this blog running on WordPress. Secondly, I am developing small project based on ASP.NET + WCF + DB (NHibernate ORM), so multiple users testing will be needed in near future.

I had almost no problems publishing ASP MVC website and WCF service. To make it clear, firstly I published files locally and after that just copied them to the host. Because GoDaddy at the moment doesn’t support publishing to the host directly (???). After that I came to some GoDaddy and .NET configuration issues.

Most issues occur because of the security configuration. This was that case. Locally my application is running on full trust. So I needed to be like that also on the hosting.

This is security exception which I was getting:

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
System.Security.CodeAccessPermission.Demand() +46
System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Module m, StackCrawlMark& stackMark, Boolean skipVisibility) +248
System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Module m, Boolean skipVisibility) +49
System.Runtime.Serialization.CodeGenerator.BeginMethod(Type returnType, String methodName, Type[] argTypes, Boolean allowPrivateMemberAccess) +53
System.Runtime.Serialization.CodeGenerator.BeginMethod(String methodName, Type delegateType, Boolean allowPrivateMemberAccess) +131
System.Runtime.Serialization.CriticalHelper.GenerateClassReader(ClassDataContract classContract) +141

Here is my ASP.NET web site and WCF service hosting configuration with full trust.

<configuration>
 <system.web>
  <trust level="Full" />
 </system.web>
</configuration>

I hope this trick will save you few hours. It can be that your applications don’t require full trust and you can try to set any other trust level.

How to fix USB flash disk after playing with partitions

Once I tried Google Chrome OS build from Hexxeh just to try if the new OS works. I can say that it works. Works not fully but internet browsing with Chrome goes pretty well. I used USB drive image from website (2 GB) and with the help of DiskImager I made a bootable flash disk. I started my laptop from flash key and it was safe and smooth test.

Today I wanted to use that USB key to transfer some information from one device to another. I formatted the key, because I wanted to delete all data in it. I was surprised when after the formatting the size of USB stick dropped from 8 GB to 1 GB. I checked what shows Disk management  (Control panel – Administrative Tools – Computer management). I saw several partitions: raw, unallocated and others.

So the problems was clear: Chrome OS USB image created specific partitions to his own good. And now I was not unable to do anything with them: format was not allowed and deleting partitions was also impossible.

Helpfully GIYF (Google is your friend) and I found quick and simple solution. Instructions web page is little outdated, but I wanted to share one cool app which maybe will help me in the future again. This piece of software restores your USB key to it’s original state (not in English).

I hope it will help you to fix yours USB drives.

Everything is a Remix video series

Recently I watched several video by Kirby Ferguson about  creations, ideas and innovations. Author in his videos speaks about content as material for remixing, (not copying) and how this gives us possibility to evolve and invent new things.

So please watch the videos below and if you like them look at www.everythingisaremix.info.

Part 1:

Part 2:

Part 3:

p.s. Part 4 will be added when it will become available.

2011-10-07 update. Added Everything is a Remix: The Matrix