ricktendo Posted November 13, 2010 Posted November 13, 2010 (edited) OK I cant make hear nor tales of this, what registry entries do I need to add so that all I have to do is run for example OCSetup Silverlight and have it install Silverlight.msiBeen reading about it in WAIK help files but cant figure it outI tried placing the installer in %WinDir%\System32\SysMSI\Stage (also tried a \Silverlight sub folder) and tried adding different registry entries to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup but have so far failedany guidance is appreciatedSolved, see post Edited November 18, 2010 by ricktendo64
maxXPsoft Posted November 13, 2010 Posted November 13, 2010 I have the exe and silverlight /? gives me this
ricktendo Posted November 13, 2010 Author Posted November 13, 2010 (edited) Silverlight install is not important, I only used it as an example...the problem I have is how to register/install ANY msi with ocsetup Edited November 13, 2010 by ricktendo64
maxXPsoft Posted November 13, 2010 Posted November 13, 2010 sometimes you have to go with what works and forget MS stuff. Their xml is not compatible with any xml editor I tried, whats up with that? Create their own rules and BSI done the /qc and it uninstalled and then done the /q and it installed
ricktendo Posted November 15, 2010 Author Posted November 15, 2010 I guess nobody knows, very few or none may know
myselfidem Posted November 15, 2010 Posted November 15, 2010 (edited) Maybe you can find some help here:OCSetup Command-Line Optionshttp://support.microsoft.com/kb/936209/en-usI don't know if that can help you, but the simple way is to install Silverlight like this:Choose your language for the silent installation:Example (French):silverlight.exe /lang=1036 /q Edited November 19, 2010 by myselfidem
ricktendo Posted November 15, 2010 Author Posted November 15, 2010 I have read those, those are what I cannot figure outSilverlight is not important, its just and example
myselfidem Posted November 15, 2010 Posted November 15, 2010 (edited) I have read those, those are what I cannot figure outSilverlight is not important, its just and exampleI've made an test with an component, "InboxGames": uninstall and install the same component with "OCSetup.exe" successfuly!I've used the command prompt as administrator with the following command:Uninstall the component:start /w %windir%\system32\ocsetup.exe InboxGames /uninstall /passive /norestartInstall the component:start /w %windir%\system32\ocsetup.exe InboxGames /passive /norestartYou can read the log file inside: %Windir%\Logs\CBS\CBS.logs Edited November 19, 2010 by myselfidem
Tripredacus Posted November 15, 2010 Posted November 15, 2010 Their xml is not compatible with any xml editor I tried, whats up with that? Create their own rules and BSThe XML in the WIM format is actually compliant. However, any command you use to export it will put a text header in there that (technically) should be in a CDATA. So if you export it to TXT, take the header out and rename ext to XML, it will open in an XML editor. This comment is presuming we are referring to the same thing.
ricktendo Posted November 16, 2010 Author Posted November 16, 2010 (edited) I am not talking about packages that are already included in the wim, I want to put a example.msi (Silverlight, AdobeReader, etc) somewhere on my hdd, then add the reg entries to register them with OCSetup (these reg entries are what I need help with/cant figure out) so when I runstart /w ocsetup Silverlight /passiveIt will install/uninstall the applicationI tried copyng the msi to %WinDir%\System32\SysMSI\Stage\ (with and without sub folders) and various other places on my HDD with no luck, also tried adding different reg entries mentioned in the WAIK help file with no luck either Edited November 16, 2010 by ricktendo64
ricktendo Posted November 18, 2010 Author Posted November 18, 2010 (edited) Problem solved...the thing is I was reading the .chm witch (wrongly) stated the registry key isHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OCSetup\ComponentsBut after opening ocsetup.exe with bintext I found the correct registry key had a space between "OC" and "Setup"Silverlight not only installs with the msi but it also patches it with the msp when I runocsetup Microsoft-Silverlight /passiveWhen used with the following reg entries to register it;INF codeHKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Setup\Components\Microsoft-Silverlight","Type",0x10001,1HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Setup\Components\Microsoft-Silverlight","Component",,"%10%\SysMSI\Stage\Microsoft\Silverlight\silverlight.msi"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Setup\Components\Microsoft-Silverlight","PatchFiles",0x10000,"%10%\SysMSI\Stage\Microsoft\Silverlight\Silverlight.msp"Will have to do some playing around see what cool things I can do with this stuff, will play around with other installers like .NET4 see if I can get it to apply the MSP patches too BTW msi installers with custom setup.exe also work if you use /x: (read the waik chm to find out what I mean)Edit: just found out it only works for MSI installers that are digitally signed by MicrosoftEdit2: I also notice it breaks Turn Windows features on/off GUI (I guess I need to give my custom Optional Component a name in the registry somewhere) Edited November 18, 2010 by ricktendo64
maxXPsoft Posted November 19, 2010 Posted November 19, 2010 Problem solved...the thing is I was reading the .chm witch (wrongly).chm witch I have another word for that which starts with a b Has lead me astray many times. MS don't have their ducks in a row with that reason I look for alternativesSometimes just as simple as that a space in something
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now