Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS with no warranties, and confer no rights. Additionally, views expressed herein are my own and not those of my employer, Microsoft.
Because of some of the posts I’ve written in the past, I often get asked about how to install various products in silent or unattended mode. In some cases, I am familiar with the product and know how to answer the question. However, in a lot of cases, I don’t, and in those cases, I try running the installer with the /? command line switch to see if it will display a usage dialog to describe the available options. This technique doesn’t always help because some installers do not list any command line switches or they only list a selected subset of their supported switches. However, it has provided some very useful information in the past, and it is worth trying if you are having trouble finding documentation for setup command line switches.
For example, if you download the installer for the .NET Framework 4 and run it with the /? switch, you will see a lot of information about available command line switches. There are several standard options that are pretty well documented (silent/unattended install and uninstall), and there are several other useful options that you may not have been aware of:
Here is a VBS script that will edit the MSI installers of .NET Framework 4(.5) and/or any of the LP's to remove unnecessary setup junk (great for when you want to integrate MSP updates)
dl.dropbox.com/.../msi.vbs.slimmers.7z
You can also find my updated .NET4 installer with all the updates integrated and the instructions/tools so you can make your own similar package
www.wincert.net/.../index.php
Hi Ricktendo64 - In general, I don't recommend modifying setup packages like this. It will typically cause problems with future attempts to repair the product or install future service packs or updates.
In the case of this .NET Framework 4 package - can you elaborate a bit more on exactly what you changed? For example, your site says that you removed "unnecessary setup junk" - which payload is that exactly?
If you open netfx4+lp_slim.vbs in notepad you will see exactly what is edited/removed from the MSI installer's and you are right about the fact that it does break some updates (very few) and repair...this is really for people who dont like to have to install lots of updates after you install the main package, but instead prefer to integrate the updates or service packs and to have them installed in one go
hi
i lave problem with installing all versions of .net framework...
thi is my log:
OS Version = 6.1.7600, SP = 0.0, Platform 2
OS Description = Windows 7 - x86 Ultimate Edition
MSI = 5.0.7600.16385
Windows version = x86_windowsfoundation_31bf3856ad364e35_6.1.7600.16385_none_03103096f1ed527c.manifest
Windows servicing = 6.1.7600.16385
CommandLine = E:\e651f0abcc74ad8fee28b018042be1\\Setup.exe /x86 /x64
TimeZone = Iran Standard Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft .NET Framework 4.5 Setup
Package Version = 4.5.50709
User Experience Data Collection Policy: AlwaysUploaded
Number of applicable items: 8
Exe (E:\e651f0abcc74ad8fee28b018042be1\SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
ServiceControl operation succeeded!
Exe (E:\e651f0abcc74ad8fee28b018042be1\Windows6.1-KB958488-v6001-x86.msu) failed with 0x539 - The security ID structure is invalid. .
Final Result: Installation failed with error code: (0x00000539), "The security ID structure is invalid. " (Elapsed time: 0 00:00:36).
pleas help me :(
thanks
Hi mahnaz - I'm checking with some people I know to see if this error is a known issue and if there are any suggested workarounds.
In the meantime, can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?
this is the link you ask:
skydrive.live.com/redir
i'm waiting for your help
pleas
Hi Mahnaz - From your log files, it looks like there is something wrong with Windows Update on this computer. That in turn is causing a failure to install the .NET Framework 4 and 4.5 because they both include a Windows Update package as a part of their installers. The knowledge base article at support.microsoft.com/.../971058 might help in this scenario. There are also some other options for resetting Windows Update that I found in a quick web search. For example - www.sevenforums.com/.../91738-windows-update-reset.html.
Hopefully one of these will help unblock your .NET Framework installation attempts.