camscape - for excellent IT solutions - IT knowledge base

windows :: instalare software din gpo

Cristian M.
TitleInstalare software din GPO
Desc.Instalare software din GPO folosind ORCA pentru generarea MST
CodeKBWIN0008 v1.0
Date17 aprilie 2018
Deploying an app using GPO is harder than you think.
First, get a MSI of your needed app. Using an exe is out of the scope of this howto.
Then, you''''ll need Microsoft Windows SDK for Windows: .
After installing it, go to C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin and install Orca.msi (you can find it directly here and skip a step).
Now, you''''re ready to roll. Go to your MSI, right click and choose "Edit with Orca". Go to menu Transform and click "New transform".
Step 1: skip EULA
Go to tables "Property" and add two rows:
Step 2: Include files into MSI
Go to Component table. If your target directory is not there, you have to define it. Fields:
Component: a name, a label. For example "MyDir"
ComponentId: A GUID, if not there, generate it using:
Directory: subfolder of the installation directory, or INSTALLDIR as exactly the installation directory
Attributes: check to more info
KeyPath: you can leave it blank
Now, add a row to FeatureComponents table (if not already there). Fields:
Feature_: Complete means after installation
Component_: Points to the Component field in the Component table above
Go to File table and add the file. Fields:
File: a label
Component_: Points to the Component field in the Component table above
FileName: The file name
FileSize: The file size, in bytes
Attributes: 8192 (in this howto)
Sequence: Largest existing sequence + 1 (sort by column to get it)
Go to Media table. Add a row with fields:
DiskId: next id
LastSequence: the number you have added in File table above
Source: the file name
All above implies that the file to be added will be shipped along with the MSI in the same directory from which you''''ll run it.
Step 3: Save Transform
Go to menu Transform and click "Generate Transform". This will produce a MST that you can ship along with your MSI.
If want to check execution before including in GPO, run:
msiexec /i MSINAME.msi TRANSFORMS=MSTNAME.mst /qr+
/qr+ will show a reduced install box and allow you to cancel.
/qb! will give you a minimal box (just a status bar, like when an MSI auto-repairs) and not allow you to cancel.
More, you can add logs by adding
/L*V "C:\log\example.log"
as parameters. That will produce a verbose log in C:\log\example.log