Creating a DUA script for a hotfix: step-by-step instructions

Now that I've released a version of DUAScriptGen that can be used to create DUA scripts directly from Windows hotfixes, I thought it might be useful to illustrate the process of creating a script using this new functionality.

Downloading hotfixes and DUAScriptGen

The first part of this process is to download the hotfix you want to install as well as the DUAScriptGen tool. Here are the steps:

  1. Decide what hotfix you want to install. In general, you can search for hotfixes by going to Windows Update or the Microsoft Download Center. For this example I am going to use this Windows XP SP2 hotfix.
  2. Download the setup executable for the hotfix to your local computer
  3. Extract the contents of the hotfix to a folder on your local computer. Most Windows hotfixes can be extracted by running <name of hotfix setup executable> /x:<local folder>
  4. Download a copy of DUAScriptGen that contains INF parsing functionality. Currently you can get a beta version of DUAScriptGen with this functionality here. The "official" version of DUAScriptGen (located here) will eventually be updated to include this functionality as well once beta testing is completed and any necessary bug fixes are made.

Using DUAScriptGen in UI mode

Now that you have downloaded the hotfix and DUAScriptGen tool, you are ready to create your DUA script. If you prefer to use the DUAScriptGen UI you can use the following steps:

  1. Run DUAScriptGen.exe, configure your DUA settings preferences (if this is the first time you have run DUAScriptGen on your computer), and then click the Convert INF to DUA button
  2. Browse to the folder that you extracted the Windows hotfix to in step 3 above, then navigate to the Update subfolder. Choose the file named update_SP2QFE.inf and click Open to load it into the DUAScriptGen UI
  3. Verify that all of the file and registry settings are correct and click Generate Script to create a DUA script (DUS) file
  4. Click Execute Compiler to compile the DUS file into a DUP file
  5. Test deploying this DUP file on your devices

Using DUAScriptGen in silent mode

If you prefer to script creation of the DUS file and not interact with the DUAScriptGen UI, you can use the following steps:

  1. Open a cmd prompt
  2. Run DUAScriptGen.exe /i <local folder>\update\update_SP2QFE.inf /o <path to DUS file> (where <local folder> is the same folder that you extracted the Windows hotfix to in step 3 above)
  3. Compile the DUS file by running c:\Program Files\Windows Embedded\bin\dusc.exe <path to DUS file> <path to DUP file> (where <path to DUS file> is the same file you used for the /o parameter for DUAScriptGen in step 2 above)
  4. Test deploying this DUP file on your devices