MSFN Forum: getSysModel() - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

getSysModel() Doesn't work? Or how does it work? :) Rate Topic: -----

#1 User is offline   Dole 

  • Group: Members
  • Posts: 5
  • Joined: 19-November 08

  Posted 09 December 2008 - 09:32 AM

Hello all,

I just tested the new version and tried to implement some audiodrivers for the DELL Latitude series D410 an D420.

I want, that WPI reqognizes whether it's a D410 or a D420 and only installs the drivers for that specific system.

I tried getSysModel()=="Latitude D410" in condition just as getSysModel()!="Latitude D410"...the same codes with greyed condition for both devices on a D420...it doesn't recognize any differences between the two codes.

Am I doing anything wrong?

Here's the code for both. As I said, I tested it on a D420 and there isn't any difference.
When I press Alt+G it shows getSysModel()=="Latitude D420 " (with space at the end) in conditions. I tested this one also, but no change :(

 

prog[pn]=['AudioTreiber D410'];
uid[pn]=['AUDIOTREIBERD410'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Drivers'];
cmds[pn]=['"%wpipath%\\Install\\Audiotreiber\\Audio_D410_D610_D810\\install.cmd"'];
cond[pn]=['getSysModel()=="Latitude D410"'];
pn++;

prog[pn]=['AudioTreiber D420'];
uid[pn]=['AUDIOTREIBERD420'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Drivers'];
cmds[pn]=['"%wpipath%\\Install\\Audiotreiber\\Audio_D630_D620_D420_D430_D820_D830\\install.cmd"'];
cond[pn]=['getSysModel()=="Latitude D420"'];
pn++;
 



#2 User is offline   freeAppz 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 09-December 08

Posted 09 December 2008 - 02:17 PM

Hi

Wich version of WPI are you running?

regards faz

#3 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 09 December 2008 - 05:38 PM

Make an entry for each driver, a D410 and D420. Make a condition for each so one will get hidden (or grayed).

Check the box below the conditions and let WPI fill in the info.

When you do Alt+G on a 410, does it say 410? And same for a D420? Or are they the same on both machines?

#4 User is offline   Dole 

  • Group: Members
  • Posts: 5
  • Joined: 19-November 08

Posted 10 December 2008 - 02:14 AM

Good morning :)

It's WPI v7.2.1 from December 8th, 2008.


Now it seems to work, thank you :)

I let WPI fill in the info how you said and it added the same as I did, but with like 20 spaces at the end.

It looks like this: getSysModel()=="Latitude D420_____________________________" , but it works, thanks again :)

This post has been edited by Dole: 10 December 2008 - 02:16 AM


#5 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 December 2008 - 02:21 AM

Ummmmmm WOW like 20 effin spaces???

That shouldn't happen, BUT I am glad it is working for you.

#6 User is offline   Dole 

  • Group: Members
  • Posts: 5
  • Joined: 19-November 08

Posted 10 December 2008 - 02:29 AM

Ya some kind of freaky :) Its exactly 19 spaces...when I use 18 only or 20 it doesn't work anymore...on my Optiplex it's 15 spaces only. Hope all Latitudes have 19 spaces :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy