![]() |
|
|
|
#1 |
|
Guest
Posts: n/a
|
Using IsLaptop/IsDesktop in Customsettings.ini
I'm having some trouble using the %IsLaptop% and %IsDesktop% variables in customsettings.ini. According to the ZTI team guide (Customizing Deployment Based On The Chassis Type - Page 97) this can done by creating a section called ByType and subsections from there, refering to the PC's chassis type. The Subsections should be: Subsection=Laptop-%IsLaptop% etc and the %IsLaptop% should then return true / false in CustomSettings, as it does in the beginning of the ZTI script process. However, when I use it, %IsLaptop% or %IsDesktop% returns something else than the expected True/False. WMI is working, as it can see if the PC is a desktop/laptop when running on an actual laptop. Setup 1 is VMWare, but should run my package anyway since it should False. Setup 2 is HP hardware (NC6220 laptop) What am I doing wrong? From Setup 1: From the OSD log file: ------------------------- Initialization ------------------------- WMI is available. IsLaptop = False IsDesktop = False IsServer = False Serial number = VMware-56 4d 44 2c 0f cd 3a e3-35 59 3b c5 0d cc f3 ba Make = VMware, Inc. Model = VMware Virtual Platform ------ Processing the [BYTYPE] section ------ ------ Processing the [Laptop-0] section ------ ------ Done processing CustomSettings.ini ------ ---------------------------------------------------------------- From CustomSettings.ini: Priority=Default, IdentifyComputer, ByType [ByType] Subsection=Laptop-%IsLaptop% Subsection=Desktop-%IsDesktop% [Laptop-True] Packages1=BP10002F,Compile MOF [Laptop-False] Packages1=BP10002F,Compile MOF [Desktop-True] Packages1=BP10002F,Compile MOF [Desktop-False] Packages1=BP10002F,Compile MOF ---------------------------------------------------------------- From Setup 2: From the OSD log file: ------------------------- Initialization ------------------------- WMI is available. IsLaptop = True IsDesktop = False IsServer = False Serial number = CNU51127XD Make = Hewlett-Packard Model = HP Compaq nc6220 (PU982AW#ABY) ------ Processing the [BYTYPE] section ------ ------ Processing the [Laptop--1] section ------ ------ Processing the [IDENTIFYCOMPUTER] section ------ ---------------------------------------------------------------- From CustomSettings.ini: Priority=Default, ByType, IdentifyComputer [Bytype] Subsection=Laptop-%IsLaptop% Subsection=Desktop-%IsDesktop% [Laptop-True] OSDINSTALLPACKAGE=TOP0000B OSDINSTALLPROGRAM=Install XP [Laptop-False] [Desktop-True] OSDINSTALLPACKAGE=TOP0000A OSDINSTALLPROGRAM=Install XP [Desktop-False] |
|
|
#2 |
|
Guest
Posts: n/a
|
Re: Using IsLaptop/IsDesktop in Customsettings.ini
I just tried it and see the same behavior - it is using the value 0 for
false and -1 for true instead of the text "true" and "false". That's not what was expected (obviously). E-mail me directly if you would like a fixed version of the ZTI script. (The problem is isolated to the Substitute function.) There is a workaround for the problem. Instead of using subsections, just use IsLaptop directly: [Settings] Priority=IsLaptop,... [True] Packages1=BP10002F,Compile Laptop MOF [False] Packages1=BP10002F,Compile Desktop MOF -Michael Niehaus Systems Design Engineer mniehaus@microsoft.com This posting is provided "AS IS" with no warranties, and confers no rights. "Heine Jeppesen" <heine@IHATESPAMcreativeminds.dk> wrote in message news:OSpADb2zFHA.1264@tk2msftngp13.phx.gbl... > > I'm having some trouble using the %IsLaptop% and %IsDesktop% variables in > customsettings.ini. > > According to the ZTI team guide (Customizing Deployment Based On The > Chassis Type - Page 97) this can done by creating a section called ByType > and subsections from there, refering to the PC's chassis type. > > The Subsections should be: Subsection=Laptop-%IsLaptop% etc and the > %IsLaptop% should then return true / false in CustomSettings, as it does > in the beginning of the ZTI script process. > > However, when I use it, %IsLaptop% or %IsDesktop% returns something else > than the expected True/False. > > WMI is working, as it can see if the PC is a desktop/laptop when running > on an actual laptop. > Setup 1 is VMWare, but should run my package anyway since it should False. > Setup 2 is HP hardware (NC6220 laptop) > > > What am I doing wrong? > > > > From Setup 1: > > From the OSD log file: > > ------------------------- Initialization ------------------------- > WMI is available. > > IsLaptop = False > IsDesktop = False > IsServer = False > Serial number = VMware-56 4d 44 2c 0f cd 3a e3-35 59 3b c5 0d cc f3 ba > Make = VMware, Inc. > Model = VMware Virtual Platform > > ------ Processing the [BYTYPE] section ------ > ------ Processing the [Laptop-0] section ------ > ------ Done processing CustomSettings.ini ------ > > > ---------------------------------------------------------------- > > From CustomSettings.ini: > > Priority=Default, IdentifyComputer, ByType > > [ByType] > Subsection=Laptop-%IsLaptop% > Subsection=Desktop-%IsDesktop% > > [Laptop-True] > Packages1=BP10002F,Compile MOF > > [Laptop-False] > Packages1=BP10002F,Compile MOF > > [Desktop-True] > Packages1=BP10002F,Compile MOF > > [Desktop-False] > Packages1=BP10002F,Compile MOF > > ---------------------------------------------------------------- > > > From Setup 2: > > From the OSD log file: > ------------------------- Initialization ------------------------- > WMI is available. > > IsLaptop = True > IsDesktop = False > IsServer = False > Serial number = CNU51127XD > Make = Hewlett-Packard > Model = HP Compaq nc6220 (PU982AW#ABY) > > ------ Processing the [BYTYPE] section ------ > ------ Processing the [Laptop--1] section ------ > ------ Processing the [IDENTIFYCOMPUTER] section ------ > > ---------------------------------------------------------------- > > From CustomSettings.ini: > > Priority=Default, ByType, IdentifyComputer > > > [Bytype] > Subsection=Laptop-%IsLaptop% > Subsection=Desktop-%IsDesktop% > > [Laptop-True] > OSDINSTALLPACKAGE=TOP0000B > OSDINSTALLPROGRAM=Install XP > > [Laptop-False] > > [Desktop-True] > OSDINSTALLPACKAGE=TOP0000A > OSDINSTALLPROGRAM=Install XP > > [Desktop-False] > |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |