Seite 1 von 1

Add product dependencies and parameters

Verfasst: 09 Mai 2018, 22:49
von ronin
Hi,

First i want to give credits to author of this great tool.
I made first packages thanks to it.

But i'm just wondering how to add product dependencies and parameters.

For example I want to create add to product silverlight dependencie and parameters to setup.exe:

Code: Alles auswählen

setup.exe HomeServer=www.example.org
Also I wondering if it's possible to create office 2016 install package (from Office Deployment Tool)
And provide setup.exe variables from configuration.xml file via opsi parameters.

Thank you for any tips

Re: Add product dependencies and parameters

Verfasst: 11 Mai 2018, 11:35
von pandel
Thread moved to english support forum, because question is not specific to opsi PackageBuilder

Hey ronin!

Many thanks for the kind words! I think, you should probably study the opsi winst manual a bit more in depth. In short, you define product properties via opsi PackageBuilder, which are written into the control file. After that, you use your script to get the property values from the server and use them as desired. Have a look at GetProductProperty routine in opsi winst manual for further information.

Regarding MSO 2016: in the wiki you find a rather complex example of how to get aloong with MSO installation. Sadly, the article itself is in German, but you should be able to get some information out of the scripts you 'll find there:

wiki/doku.php?id=userspace:microsoft_office_2016

Regards,
Holger

Re: Add product dependencies and parameters

Verfasst: 13 Mai 2018, 15:47
von ronin
Thank you, pandel for pointing right direction.

I found newer version of office scripts:
wiki/doku.php?id=userspace:microsoft_office_365

I managed to create office2016 opsi package, made few changes in Christian Streifer's uninstall.opsiscript file.
There was problem with uninstall. I will share my modified code, when i fully test it.

Problem which I cannot solved is in property - Installationsdateien

OPSI/control

Code: Alles auswählen

[ProductProperty]
type: unicode
name: Installationsdateien
multivalue: False
editable: True
description: Speicherort der Installationsdateien
values: ["c:\tmp"]
default: ["c:\tmp"]
After making .opsi package c:\tmp value looks like this (opsi config editor):
Bild

Code: Alles auswählen

https://i.imgur.com/2tRCZ3U.png
It's missing \t, and show instead of few spaces.

When i add manually c:\tmp, everything is ok.

Do you now how to fix this ?

Re: Add product dependencies and parameters

Verfasst: 13 Mai 2018, 18:35
von uncle_scrooge

Code: Alles auswählen

values: ["c:\tmp"]
default: ["c:\tmp"]
You want to escape the backslash.
This should do the trick.

Code: Alles auswählen

values: ["c:\\tmp"]
default: ["c:\\tmp"]

Re: Add product dependencies and parameters

Verfasst: 13 Mai 2018, 23:04
von ronin
Thank you, uncle_scrooge ;)

Btw. Is there new unattend.xml for Windows 10 1803 ?