GetOutStreamFromSection

Antworten
bobzbobz
Beiträge: 169
Registriert: 30 Nov 2012, 10:41
Wohnort: Denmark

GetOutStreamFromSection

Beitrag von bobzbobz »

Hi

I am trying to get the model of a PC, which will determine if and how the package will be installed.

I am using GetOutStreamFromSection() and takeFirstStringContaining() to determine what model the PC is, but it is not working.
I then wanted to try the example from the Winst-manual, but cant get that working either - what am i doing wrong??

http://download.uib.de/opsi_stable/doc/ ... s-prodprop

This is my code:

Code: Alles auswählen

[Actions]
Set $list$ = GetOutStreamFromSection ('DosInAnIcon_netuse')

[DosInAnIcon_netuse]
net use
As far as i can see this is identical to the example..
But i get this error when trying to run the script:

Code: Alles auswählen

Section Actions (Command in line 28):

$list$ = GetOutStreamFromSection ('DosInAnIcon_netuse')

getOutStreamFromSection ('DosInAnIcon_netuse') illegal String expression
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: GetOutStreamFromSection

Beitrag von SisterOfMercy »

And how about this:

Code: Alles auswählen

Set $list$ = GetOutStreamFromSection ("DosInAnIcon_netuse")


Could be worth a shot.. :oops:
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
bobzbobz
Beiträge: 169
Registriert: 30 Nov 2012, 10:41
Wohnort: Denmark

Re: GetOutStreamFromSection

Beitrag von bobzbobz »

Already tried that ;)

also tried

Code: Alles auswählen

Set $List$ = GetOutStreamFromSection (DosInAnIcon_netuse)
bobzbobz
Beiträge: 169
Registriert: 30 Nov 2012, 10:41
Wohnort: Denmark

Re: GetOutStreamFromSection

Beitrag von bobzbobz »

Anyone from UIB got some sugestions? Am i doing it wrong?

Best Regards,
Soren
bobzbobz
Beiträge: 169
Registriert: 30 Nov 2012, 10:41
Wohnort: Denmark

Re: GetOutStreamFromSection

Beitrag von bobzbobz »

Okay, now i solved the problem..

I had set the $list$ as a DefVar in stead of DefStringList >.<
Antworten