Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

getSysModel()

Featured Replies

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++;


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?

  • Author

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 :)

Edited by Dole

  • Author

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.