Seite 1 von 2

Automating Software Install - One Step?

Verfasst: 04 Mär 2009, 05:13
von RyanJ
Hello,

I've read through the various manuals but can't quite seem to figure out what I need to do to make this happen (if it's even possible).

I'd like to get OPSI to automatically install a set of utilities after the OS installation/first boot. I noticed that it automatically installs the preLoginLoader service, but I can't seem to find how to get it to do this with another set of utilities (at least, not without several extra clicks - I'd like it to be COMPLETELY automatic).

For example, I'd like it to:

1) Install OS
2) Install Service Pack for OS (I know this can be done using slipstreaming - I'm just curious from a learning perspective how to do it using scripting in this case)
3) Install office software
4) Join a domain

All without intervention except the adding of the MAC address to the database and then booting the system and letting it go.

Really, showing step 2 of that would be fine, as all others would just be modifications of the same procedure.

Thanks in advance for your help.

Ryan

Re: Automating Software Install - One Step?

Verfasst: 04 Mär 2009, 09:50
von j.schneider
Hi,

you only have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:

Code: Alles auswählen

firefox = not_installed:setup
python = not_installed:setup
in this file and create a new client, you will notice that these products are automatically set to setup in the products-tab of the newly created client.
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.

Greetings,
Jan Schneider

Re: Automating Software Install - One Step?

Verfasst: 07 Mär 2009, 02:16
von RyanJ
Thanks for this, it solved my problem.

I am, however, having another... I'll post in a separate post.

Ryan

Re: Automating Software Install - One Step?

Verfasst: 09 Mär 2009, 11:40
von wardenik
RyanJ hat geschrieben:Hello,
1) Install OS
2) Install Service Pack for OS (I know this can be done using slipstreaming - I'm just curious from a learning perspective how to do it using scripting in this case)
3) Install office software
4) Join a domain
2. If you want to get a full upgrade of the OS after the installation, please read a bit on: http://www.wsus.info/. I have actually prepared a working script that updates WinXP after preinstallation. Please check my website at http://www.warden.pl as well, I will post a howto soon about it :-)
3. Installing Office is done using standard MSI package installation commands, please read KB articles that I put in my previous opsi article http://www.warden.pl/2008/11/12/network ... tallation/
4. Joining a domain is as simple as putting
%ScriptPath%\netdom.exe join %PCName% /Domain:CELLS /UserD:admin /PasswordD:adminpasswd
in any winst script, but you have to get the netdom.exe utility.

Re: Automating Software Install - One Step?

Verfasst: 09 Mär 2009, 12:18
von wardenik
j.schneider hat geschrieben:Hi,

you only have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:

Code: Alles auswählen

firefox = not_installed:setup
python = not_installed:setup
in this file and create a new client, you will notice that these products are automatically set to setup in the products-tab of the newly created client.
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.
Wow, this is great, just one question, is it possible to use this also for already existing clients?
I mean, if I want to _reinstall_ a client with a default set of applications.
Would I have to delete and readd the client again?
I can imagine that copying /var/lib/opsi/config/templates/pcproto.ini to <clientname>.ini would solve that issue, but maybe it is possible somehow from the interface itself?

Re: Automating Software Install - One Step?

Verfasst: 09 Mär 2009, 12:31
von tobias
hi,

if you reinstall a client with Windows, all products which are already installed on the client (in the Software list Installed) will be reinstalled too.


Tobi

Re: Automating Software Install - One Step?

Verfasst: 09 Mär 2009, 14:37
von wardenik
ah, as simple as that, and I haven't tested that :P
thanks!

Re: Automating Software Install - One Step?

Verfasst: 09 Mär 2009, 15:17
von wolfbardo
Hi wardenik,
wardenik hat geschrieben:ah, as simple as that,
its a feature described in http://download.uib.de/opsi3.3/doku/ops ... v33-en.pdf

5.1.6. Installation of OS and opsi-preLoginLoader
distinction between "reinstallation-mode" and "standard-mode"

ok, there is a small typo mismatch in the doc with "on" vs. "installed", should be

Code: Alles auswählen

"Therefore, regarding the configuration status of each software packet, each packet which is marked as action status ”setup” or installation status ”installed” within the configuration of that client will be installed."
regards
Bardo Wolf

Re: Automating Software Install - One Step?

Verfasst: 28 Mär 2019, 17:48
von cgiesers
In case anyone else stumbles (via google) over this entry: IT DOES NOT WORK!
Link is broken and the entry is incomplete (properties and sections missing) and results into a "broken" OPSI.

The solution is listed here: https://forum.uib.de/viewtopic.php?t=2348

Regards
- Christof

Re: Automating Software Install - One Step?

Verfasst: 18 Apr 2019, 09:13
von ckruijntjens
I tried this solution and it broke my opsi installation.

Even when i empty the file pcproto.ini. When i start a new installation yust before the os selection it errors out.

I recovered with a backup however is there a safer way to do this?