Jump to content

DPR

Member
  • Posts

    38
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Posts posted by DPR

  1. No way to delete them at this point of the setup ...

    IE, OE and Media Player shortcuts are created during the first login process with the help of the stub path entries inside the registry.

    They can all be found under "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components".

    You may delete the corresponding entries, but you should also keep in mind that this will skip some initializations of the mentioned apps. However - it's relatively safe to remove these entries.

    Stub-path GUIDs ...

    IE:

    {89820200-ECBD-11cf-8B85-00AA005B4383}

    {26923b43-4d38-484f-9b9e-de460746276c}

    OE:

    {44BBA840-CC51-11CF-AAFA-00AA00B6015C}

    {7790769C-0471-11d2-AF11-00C04FA35D02}

    {881dd1c5-3dcf-431b-b061-f3f88e8be88a}

    MediaPlayer:

    {22d6f312-b0f6-11d0-94ab-0080c74c7e95}

    {6BF52A52-394A-11d3-B153-00C04F79FAA6}

  2. It's not very hard to create MST files. MST files are "transform files" i.e. files that contain differences to the MSI file.

    So it's e.g. possible to add the serial no for Office. If you simply want to modify/prepare Office for deployment then you could use the ORK (Office Resource Kit) provided by Microsoft. It contains wizards which will create an MST file for you.

    There're a lot of commercial tools which are able to create MST files. If you're looking for a free tool then you could use "Orca" which is part of the Microsoft Platform SDK.

    If you do want to have more information about the "Microsoft Installer" technology then you should use the Platform SDK. You'll find almost any information you need in there ...

  3. for /f "tokens=3 skip=2" %%i in ('reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath"') do set CDROM=%%i

    Good point - you can also use "skip=2" to skip the first two lines instead of using "findstr". Whereas you're a little more flexible if you use "findstr" (because "findstr" automatically searchs for the "REG_" line) ...

    However, "findstr" supports regular expressions but doesn't support sub-groups and thus it's almost useless in our case ... so your solution is fine.

  4. I guess by path variable you mean:

    "UIHost"="%systemdrive%\\Resources\\LogonUI\\custom.exe"

    I think you mean "UIHost"="%WINDIR%\\Resources\\LogonUI\\custom.exe". But the problem is that the reg-files don't have a simple syntax for REG_EXPAND_SZ values. The above example would be ...

    "UIHost"=hex(2):25,00,41,00,4c,00,4c,00,55,00,53,00,45,00,52,00,53,00,50,00,52,\

    00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,44,00,6f,00,6b,00,75,00,6d,00,\

    65,00,6e,00,74,00,65,00,5c,00,45,00,69,00,67,00,65,00,6e,00,65,00,20,00,42,\

    00,69,00,6c,00,64,00,65,00,72,00,5c,00,4c,00,6f,00,67,00,6f,00,6e,00,20,00,\

    53,00,63,00,72,00,65,00,65,00,6e,00,73,00,5c,00,64,00,65,00,5c,00,53,00,75,\

    00,6e,00,73,00,65,00,74,00,20,00,43,00,61,00,76,00,65,00,73,00,2e,00,65,00,\

    78,00,65,00,00,00

    Let me quote the Platform SDK:

    REG_EXPAND_SZ

    Null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.

  5. Using cmdlines to install recovery console won't work.  If it did, ms would recommend using it.  I've seen cases where recovery console has problems if installed via cmdlines.

    Well it does work perfectly for me. And I can't see any reason why it shouldn't work - the recovery console doesn't need any user specific data.

    Not everything M$ recommends is good and not everything M$ does not recommend is bad ... :)

  6. And you HAVE to install recovery console via Guirunonce, it just won't work in cmdlines.txt.

    That's not true ! I'm using a batch-file in cmdlines.txt to run the following line:

    start /b /wait %SETUPDRV%i386\winnt32.exe /cmdcons /dudisable /unattend

    whereas %SETUPDRV% represents the CD setup drive. And it works fine ! Besides - the M$ article doesn't say it's not possible to run it from cmdlines.txt ...

  7. DPR: such a method would not be optimal for someone who has more than one PC. [...]

    That's of course correct ! The mentioned method is intended to be used for a specific home PC. It shouldn't be used for unattended corporate-setups ...

  8. For all those who want to set/correct the drive letters before the installation starts here's the description:

    The mount manager loads the mount points out of the setup-registry if the key "HKLM\SYSTEM\MountedDevices" exists. The hive used for the setup-registry is located in the "I386" folder and the filename is "setupreg.hiv".

    To change the drive letters you simply have to add your mount points to the hive. Since every drive has got a unique ID the best way to set the correct values is to import the necessary keys from a running system.

  9. There's another method: simply set the drive letter of your CD-ROM to a fixed value. The mount manager is responsible for the driver-letter assignment. Load the hive "setupreg.hiv" and add the mount points for the mount manager (subkey "MountedDevices").

    I'll post a more detailed description in a separate thread ...

  10. Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

    sample reg-file:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

    "UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

    The better way would be to use a "REG_EXPAND_SZ" value and environment variables - i.e. path values like "%WINDIR%\Resources\LogonUI\custom.exe".

×
×
  • Create New...