How postinst scripts work?
How postinst scripts work?
I am trying to understand how postinst scripts for windows 7 work. I thought that it is necessary to create XX_name.cmd file in postinst.d directory and it will be executed automatically. But nothing happened. Just for test, I have tried to create directories from existing scripts (add line md c:\test) and nothing happened again. In the next step, I have tried to add a task into unattend.xml, also without any result.
My question is: how can I create and run postinst scripts?
Thank you.
Pavel
Re: How postinst scripts work?
did you read the opsi manual (chapter 7.1.8.4. Directory opsi / custom) ?
regards
d.oertel
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: How postinst scripts work?

Re: How postinst scripts work?
This is correct.I thought that it is necessary to create XX_name.cmd file in postinst.d directory and it will be executed automatically.
If nothing happens - we have to debug the problem:
- These files should be in the custom/postinst.d directory
- Are these scripts readable for the unix group pcpatch ?
- There should be a 'postinst.scripts' file in c:\tmp. Is your script listed there ?
- If you want that your scripts logs to the c:\tmp\postinst.log, look like this is done in our scripts.
does this help ?
d.oertel
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: How postinst scripts work?
There is 11_do_it.cmd script, which has the only line "md C:\test2"- These files should be in the custom/postinst.d directory
Yes, they have the same owners as the other files in /opt - opsiconfd and pcpatch.- Are these scripts readable for the unix group pcpatch ?
There is no c:\tmp directory on the computer after installation.- There should be a 'postinst.scripts' file in c:\tmp. Is your script listed there ?
- If you want that your scripts logs to the c:\tmp\postinst.log, look like this is done in our scripts.
Thank you for your time.
Pavel
Re: How postinst scripts work?
Pavel