Adding Program Groups and Items During Unattended Setup

Last reviewed: June 18, 1996
Article ID: Q147231
The information in this article applies to:

   - Microsoft Windows NT Workstation versions 3.5 and 3.51
   - Microsoft Windows NT Server versions 3.5 and 3.51

SUMMARY

To add additional Program Groups and Program Items automatically during Unattended Setup, modification of the PARTIAL.INF is required.

MORE INFORMATION

From a shared copy of Windows NT on a systems hard drive expand the PARTIAL.IN_ to PARTIAL.INF (expand partial.in_ partial.inf). Rename PARITIAL.IN_ to PARTIAL.BAK.

NOTE: The Windows NT version of EXPAND.EXE is required to properly expand the file.

There are four areas that have to modified/added:

  1. (modified) [PartialDestinationVars]
                     <Group_Name>Dest      = $(!STF_WINDOWSSYSPATH)
    
    

  2. (modified) [InstallProgramGroups] - Modified
                      set <Group_Name>ToInstall = ^(<Group_Name>,1)
    
    

  3. (added) [<Group_Name>Items]
                  Item_Name_1
                  Item_Name_2
    
    

  4. (added) [<Group_Name>ItemsENG]
                  Item_Name_1  = "Item Description", Command Line, "Command
                                  Line Parameters", "Icon Resource File", icon
                                  offset
                  Item_Name_2  = "Item Description", Command Line, "Command
                                  Line Parameters", "Icon Resource File", icon
                                  offset
    
    

EXAMPLE

This example uses TerraFlora to identify the new item to be added and in referenced throughout the example.

NOTE: "*" means an added line.

[PartialDestinationVars]

    ReadmeDest       = $(!STF_WINDOWSPATH)
    AccessoriesDest  = $(!STF_WINDOWSSYSPATH)
    GamesDest        = $(!STF_WINDOWSSYSPATH)
    SaversDest       = $(!STF_WINDOWSSYSPATH)
    WallpapersDest   = $(!STF_WINDOWSPATH)
    MainDest         = $(!STF_WINDOWSSYSPATH)
    AdminToolsDest   = $(!STF_WINDOWSSYSPATH)
    StartupDest      = $(!STF_WINDOWSSYSPATH)
*   TerraFloraDest   = $(!STF_WINDOWSSYSPATH)


exit
[InstallProgramGroups]
     set Groups =  ^(ProgmanGroups, 1)
     set MainToInstall = ^(MainItems$(!STF_PRODUCT)$(!STF_PLATFORM), 1)
     set AdminToolsToInstall = ^(AdminToolsItems$(!STF_PRODUCT), 1)
     set StartupToInstall = {}
* set TerraFloraToInstall = ^(TerraFloraItems,1)
    ForListDo $(Groups)
        set Group       = $($)
        ifstr(i) $(Group) != Startup

[MainItemsWinntI386]
    FileManager
    ControlPanel
    PrintManager
    Clipboard
    Command
    Setup
    Pifedit
    Mail
    SchedulePlus
    CommandRefWinnt
    Intro
    readme
    OnlineBooks

* [TerraFloraItems] * Terra1 * Terra2 * Terra3 * Terra4 * Terra5 * Terra6

* [TerraFloraItemsENG] * Terra1 = "Terra Flora Help 1", INTRO.EXE,

               "%windir%\SYSTEM32\INTRO.EXE", "intro.ico", 0
* Terra2 = "Terra Flora Help 2", INTRO.EXE,
               "%windir%\SYSTEM32\INTRO.EXE", "intro.ico", 0
* Terra3 = "Terra Flora Help 3", INTRO.EXE,
               "%windir%\SYSTEM32\INTRO.EXE", "intro.ico", 0
* Terra4 = "Terra Flora Help 4", INTRO.EXE,
               "Q:\SYSTEM32\INTRO.EXE", "intro.ico", 0
* Terra5 = "Terra Flora Help 5",INTRO.EXE,
               "\\TRAINING\INTRO\WINNT35\SYSTEM32\INTRO.EXE",
               "intro.ico", 0
* Terra6 = "Terra Flora Help 6", INTRO.EXE,
               "\\TRAINING\INTRO2\WINNT35\SYSTEM32\INTRO.EXE",
               "intro.ico", 0

For additional information, see the "Windows NT Resource Kit Volume 1," Chapter 3: Customizing Windows NT Setup.


KBCategory: kbsetup
KBSubcategory: ntsetup ntreskit
Additional reference words: prodnt 3.50 3.51


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 18, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.