Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[Solved] How do I use OCSetup.exe to install a MSI?


  • Please log in to reply
11 replies to this topic

#1
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
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.msi

Been reading about it in WAIK help files but cant figure it out

I 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 failed

any guidance is appreciated


Solved, see post

Edited by ricktendo64, 17 November 2010 - 11:04 PM.



How to remove advertisement from MSFN

#2
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,888 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I have the exe and silverlight /? gives me this

Attached Files


Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#3
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
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 by ricktendo64, 13 November 2010 - 12:52 AM.


#4
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,888 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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 BS
I done the /qc and it uninstalled and then done the /q and it installed
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#5
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
I guess nobody knows, very few or none may know

#6
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Maybe you can find some help here:

OCSetup Command-Line Options

http://support.micro...kb/936209/en-us

I 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 by myselfidem, 19 November 2010 - 09:30 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#7
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
I have read those, those are what I cannot figure out

Silverlight is not important, its just and example

#8
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

I have read those, those are what I cannot figure out

Silverlight is not important, its just and example

I'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 /norestart

Install the component:
start /w %windir%\system32\ocsetup.exe InboxGames /passive /norestart

You can read the log file inside:
%Windir%\Logs\CBS\CBS.logs

Edited by myselfidem, 19 November 2010 - 09:30 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#9
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,817 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

Their xml is not compatible with any xml editor I tried, whats up with that? Create their own rules and BS


The 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. :unsure:
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#10
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
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 run

start /w ocsetup Silverlight /passive

It will install/uninstall the application

I 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 by ricktendo64, 15 November 2010 - 07:18 PM.


#11
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,307 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
Problem solved...the thing is I was reading the .chm witch (wrongly) stated the registry key is

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OCSetup\Components

But after opening ocsetup.exe with bintext I found the correct registry key had a space between "OC" and "Setup"

Attached File  ocsetup.png   36.53KB   19 downloads

Silverlight not only installs with the msi but it also patches it with the msp when I run

ocsetup Microsoft-Silverlight /passive

When used with the following reg entries to register it

;INF code
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Setup\Components\Microsoft-Silverlight","Type",0x10001,1
HKLM,"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 Microsoft

Edit2: 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 by ricktendo64, 18 November 2010 - 01:09 AM.


#12
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,888 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

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 :lol:
Has lead me astray many times. MS don't have their ducks in a row with that reason I look for alternatives
Sometimes just as simple as that a space in something
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN