+ Post New Thread
Results 1 to 8 of 8
Windows Thread, USBDLM Registry Problem in Technical; Finally getting round to deploying USBDLM MSI works fine, it also picks up settings fine from an ini file. But ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    USBDLM Registry Problem

    Finally getting round to deploying USBDLM
    MSI works fine, it also picks up settings fine from an ini file.
    But it refuses to read anything in the registry

    I'm not even trying to integrate it in the MSI as of yet, literally just adding the reg file manually on a test machine. Ive used the sample one from the website and changed some settings but it just doesnt work at all. All registry entries are there as they should be, but no balloon tips come up, no drive exclusions etc, nothing

    I downloaded an MSI that was posted in the big thread about this program, and opened that in WinInstall to see the registry entries, and they are totally different?!

    So has the structure and way that the reg file works changed? Im using this one:

    REGEDIT4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\DriveLetters]
    "Letters"="X,Y,Z"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\ExcludedLetters]
    "Letters"="F,G"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\Settings]
    "NoMediaNoLetter"="1"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\Balloons]
    "Enabled"="1"
    "Timeout"="6000"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\OnArrival]
    "open"="explorer %root%"


    which is as the sample is off the website, but the part I looked at in the MSI had drive1=A, drive2=B etc etc

    Anyone got a working reg file? Im using version 4.3.0

  2. #2
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    924
    Thank Post
    303
    Thanked 79 Times in 52 Posts
    Rep Power
    31
    Why do you install it from an MSI? I just run a batch script to copy the files from the share to C:\Program Files\USBDLM (or wherever you choose) and then customise the settings from the ini file. Never touched the registry in relation to USBDLM.

  3. #3

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49
    Why? Because an MSI is provided, and in that initial thread almost everyone was using it
    I like to try and standardise where possible. Only use batch files when theres no other solution

    And I would prefer to use registry settings (as the documentation says you can) just because it makes it (very marginally) quicker to update the settings if needed

    Mostly - just personal preference!

  4. #4
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    924
    Thank Post
    303
    Thanked 79 Times in 52 Posts
    Rep Power
    31
    Hmmm, I've obviously not looked at the home page for a while! Didn't notice the MSI.

    Oh well, this is probably a long shot and maybe not even necessary, but try using "Windows Registry Editor Version 5.00" as the reg file header as opposed to "REGEDIT4". I know they should both work, but I have had some really weird issues lately where it didn't like "REGEDIT4" - Long shot that it'll solve your problem, but worth a try, I guess.

  5. #5


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,706
    Thank Post
    220
    Thanked 2,613 Times in 1,924 Posts
    Rep Power
    776
    Here are the registry settings we use for v4.3.0...

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\BalloonTips]
    "Enabled"="1"
    "Timeout"="6000"
    "ShowSize"="0"
    "Text_media"="media"
    "Text_and"="and"
    "Text_drives"="drives"
    "Text_partitions"="partitions"
    "SuppressWindowsBalloons"="0"
    "Text_mounted_to"="connected to"
    "RoundSize"="1"
    "ShowTrueCrypt"="1"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\DriveLetters1]
    "DriveType"="CDROM"
    "DeviceType"="U3"
    "Letter"="-"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\DriveLetters2]
    "DriveType"="REMOVABLE"
    "MaxVolumeSize"="15MB"
    "Letter"="-"
    "BusType"="USB"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\DriveLetters3]
    "Letters"="H,I,J,O,B"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\ExcludedLetters]
    "Letters"="K,L,M,N,P,Q,R,S,T,V,W,X"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\Explorer1]
    "VolumeLabel"="-"
    "BusType"="USB"
    "DefaultLabel"="%FriendlyName%"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\Explorer2]
    "VolumeLabel1"="CANON_DC"
    "DefaultIcon"="shell32.dll,194"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\OnArrival]
    "open"="explorer %root%"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\OnBalloonClick1]
    "open"="explorer %root%"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\OnBalloonRClick1]
    "open"="explorer %root%"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Uwe Sieber\USBDLM\Settings]
    "NoMediaNoLetter"="1"
    "SetDeviceDesc"="2"
    "EventLog"="1"
    "DeviceDesc"="%FriendlyName% (%DiskSize%)"
    "FightU3Bug"="1"
    "DeleteMountPointsOnRemoval"="1"
    "ForceNoMediaNoLetter"="1"
    There are several different ways you can specify the drive letters in the registry or .ini file so both methods are technically correct. For example, you could use Letters="F,G,H" or Letter1="F", Letter2="G", Letter3="H". The help file explains it in more detail.

  6. Thanks to Arthur from:

    sidewinder (14th May 2009)

  7. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,706
    Thank Post
    220
    Thanked 2,613 Times in 1,924 Posts
    Rep Power
    776
    Also, since I like doing things the hard way, I created my own .msi using WiX. The .wxs file I use is shown below.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
        <Product Id="{075F79A8-5990-4DAC-AB09-C54713F48941}" Language="1033" Manufacturer="Uwe Sieber" Name="USB Drive Letter Manager" UpgradeCode="{99AB712D-C0BC-4387-85C4-7BD836E5D8D9}" Version="4.3.0.0">
            <Package Compressed="yes" InstallerVersion="200" />
    
            <Directory Id="TARGETDIR" Name="SourceDir">
               <Directory Id="ProgramFilesFolder" Name="PFiles">
                  <Directory Id="USBDLM" Name="USB Drive Letter Manager">
    
                    <Component Id="cmp1DBBD2D449DBBE2B1AA443F13FABC196" Guid="{B4882480-325E-4697-AFD5-82344D03DB2B}">
                        <File Id="fil358336BB8C97D071153CABF2389103B6" KeyPath="yes" Source=".\Files\ListUsbDrives.exe" />
                    </Component>
                    <Component Id="cmp76EF9E3E501AEEB1D6AB89028280DDF4" Guid="{454A08B4-43C3-4D67-9378-84818D1FE2E0}">
                        <File Id="fil471D5EE455213C81ADAB2F018E654435" KeyPath="yes" Source=".\Files\ListUsbDrives_To_Notepad.cmd" />
                    </Component>
                    <Component Id="cmpF2D5FDCFB48D8DE61C6CF20D4AEDF006" Guid="{50D56009-4640-459D-A848-240D338DD2D7}">
                        <File Id="filF5A73F7C3050A90A0C06ED36B645D37C" KeyPath="yes" Source=".\Files\ListUsbDrives_To_Notepad_debug.cmd" />
                    </Component>
                    <Component Id="cmp40694FA453D7BF1E67D5987242EE3FA0" Guid="{E54CF55D-A799-4D83-8DEA-06D62B5B602F}">
                        <File Id="fil2B61F7462083A0ABAD74E87EB8DA737F" KeyPath="yes" Source=".\Files\USBDLM.exe" />
                        <ServiceInstall   
                          Id="ServiceInstaller"  
                          Type="ownProcess"  
                          Vital="yes"  
                          Name="USBDLM"  
                          DisplayName="USBDLM"  
                          Description="USB Drive Letter Manager"  
                          Start="auto" 
                          Account="LocalSystem" 
                          ErrorControl="ignore" 
                          Interactive="yes">
                        </ServiceInstall>
                        <ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="USBDLM" Wait="yes" />
                    </Component>
                    <Component Id="cmp3CEF045D67E612177125FF90E8E3DB79" Guid="{37D26C87-70E7-44B4-9E3C-976D0E806CB9}">
                        <File Id="filF56F88245862CA6039687422223E176B" KeyPath="yes" Source=".\Files\USBDLM.txt" />
                    </Component>
                    <Component Id="cmp302DB7591276FDBFE3AFEC3F79802177" Guid="{2872047B-710B-4CEA-908D-FC062F5605CB}">
                        <File Id="filBE3C70AC0B5DBCBB1A8B68452CFCD4DD" KeyPath="yes" Source=".\Files\USBDLM_eng.chm" />
                    </Component>
                    <Component Id="cmp900181576D70DD92B98846F6DDCD15C0" Guid="{A12100C8-3397-46EA-A1F6-A0405EDD7D26}">
                        <File Id="filC2660551C41CC0D25F59EB0D371CF512" KeyPath="yes" Source=".\Files\USBDLM_Licence.txt" />
                    </Component>
                    <Component Id="cmpB09C2ABA029E37FCF915B4980B840366" Guid="{FAA3AD3F-49FC-4C16-BBAE-4DEF66A437E0}">
                        <File Id="fil56CB249323EA00454448455ADAFE9C4E" KeyPath="yes" Source=".\Files\USBDLM_usr.exe" />
                    </Component>
    
                    <Component Id="RegistryEntries" Guid="{FAA3AD3F-49FC-4C16-BBAE-4DEF66A437E1}">
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\BalloonTips"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="Enabled" Value="1" KeyPath="yes" />
                            <RegistryValue Type="string" Name="RoundSize" Value="1" />
                            <RegistryValue Type="string" Name="ShowSize" Value="0" />
                            <RegistryValue Type="string" Name="ShowTrueCrypt" Value="1" />
                            <RegistryValue Type="string" Name="SuppressWindowsBalloons" Value="0" />
                            <RegistryValue Type="string" Name="Text_and" Value="and" />
                            <RegistryValue Type="string" Name="Text_drives" Value="drives" />
                            <RegistryValue Type="string" Name="Text_media" Value="media" />
                            <RegistryValue Type="string" Name="Text_mounted_to" Value="connected to" />
                            <RegistryValue Type="string" Name="Text_partitions" Value="partitions" />
                            <RegistryValue Type="string" Name="Timeout" Value="6000" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\DriveLetters1"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="DeviceType" Value="U3" />
                            <RegistryValue Type="string" Name="DriveType" Value="CDROM" />
                            <RegistryValue Type="string" Name="Letter" Value="-" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\DriveLetters2"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="BusType" Value="USB" />
                            <RegistryValue Type="string" Name="DriveType" Value="REMOVABLE" />
                            <RegistryValue Type="string" Name="Letter" Value="-" />
                            <RegistryValue Type="string" Name="MaxVolumeSize" Value="15MB" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\DriveLetters3"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="Letters" Value="H,I,J,O,B" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\ExcludedLetters"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="Letters" Value="K,L,M,N,P,Q,R,S,T,V,W,X" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\Explorer1"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="BusType" Value="USB" />
                            <RegistryValue Type="string" Name="DefaultLabel" Value="%FriendlyName%" />
                            <RegistryValue Type="string" Name="VolumeLabel" Value="-" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\Explorer2"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="DefaultIcon" Value="shell32.dll,194" />
                            <RegistryValue Type="string" Name="VolumeLabel1" Value="CANON_DC" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\OnBalloonClick1"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="open" Value="explorer %root%" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\OnBalloonRClick1"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="open" Value="explorer %root%" />
                        </RegistryKey>
    
                        <RegistryKey Root="HKLM" Key="Software\Uwe Sieber\USBDLM\Settings"
                              Action="createAndRemoveOnUninstall">
                            <RegistryValue Type="string" Name="DeleteMountPointsOnRemoval" Value="1" />
                            <RegistryValue Type="string" Name="DeviceDesc" Value="%FriendlyName% (%DiskSize%)" />
                            <RegistryValue Type="string" Name="EventLog" Value="1" />
                            <RegistryValue Type="string" Name="FightU3Bug" Value="1" />
                            <RegistryValue Type="string" Name="ForceNoMediaNoLetter" Value="1" />
                            <RegistryValue Type="string" Name="NoMediaNoLetter" Value="1" />
                            <RegistryValue Type="string" Name="SetDeviceDesc" Value="2" />
                        </RegistryKey>
                    </Component>
    
                </Directory>
              </Directory>
            </Directory>
    
            <Feature Id="Main" Level="1" Title="Default">
               <ComponentRef Id='cmp1DBBD2D449DBBE2B1AA443F13FABC196' />
               <ComponentRef Id='cmp76EF9E3E501AEEB1D6AB89028280DDF4' />
               <ComponentRef Id='cmpF2D5FDCFB48D8DE61C6CF20D4AEDF006' />
               <ComponentRef Id='cmp40694FA453D7BF1E67D5987242EE3FA0' />
               <ComponentRef Id='cmp3CEF045D67E612177125FF90E8E3DB79' />
               <ComponentRef Id='cmp302DB7591276FDBFE3AFEC3F79802177' />
               <ComponentRef Id='cmp900181576D70DD92B98846F6DDCD15C0' />
               <ComponentRef Id='cmpB09C2ABA029E37FCF915B4980B840366' />
               <ComponentRef Id="RegistryEntries" />
            </Feature>
    
            <Property Id="ALLUSERS">1</Property>
            <Property Id="ARPNOMODIFY">1</Property>
            <Property Id="ARPHELPLINK">http://www.uwe-sieber.de/usbdlm_e.html</Property>
            <Property Id="ARPURLINFOABOUT">http://www.uwe-sieber.de/</Property>
            <Property Id="ARPURLUPDATEINFO">http://www.uwe-sieber.de/usbdlm_e.html</Property>
            <Media Id="1" Cabinet="Disk1.cab" CompressionLevel="high" EmbedCab="yes" />
        </Product>
    </Wix>

  8. #7

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49
    Arthur - legend, thankyou, works a treat

    Zoom - Yeah I thought that looked a bit odd too, the regedit 4. Maybe that was soemthing to do with it.

  9. #8
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    422
    Thank Post
    67
    Thanked 89 Times in 74 Posts
    Rep Power
    61
    I edited the msi to contain the appropriate reg keys

    linky

    Edit with orca or similar,
    look under "property"

    Change values as desired.

    BoX
    Last edited by box_l; 18th October 2010 at 11:29 AM. Reason: spelling

SHARE:
+ Post New Thread

Similar Threads

  1. USBDLM problem
    By witch in forum Windows
    Replies: 11
    Last Post: 5th October 2009, 07:38 AM
  2. Registry
    By MrPstv in forum Windows
    Replies: 0
    Last Post: 26th February 2009, 08:57 AM
  3. Replies: 42
    Last Post: 20th November 2008, 10:58 AM
  4. Registry Problem... argh!
    By bandgeekmafia78 in forum Windows
    Replies: 1
    Last Post: 24th July 2008, 11:05 AM
  5. registry problem
    By david12345 in forum Windows
    Replies: 5
    Last Post: 21st March 2008, 09:14 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •