Jump to content

Tsunami

Member
  • Posts

    292
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Posts posted by Tsunami

  1. Really, where did you get that second tweak Astalavista :P InfoTip has nothing to do with the position of the icon, and I afaik there's no difference between HKEY_LOCAL_MACHINE\SOFTWARE\Classes and HKEY_CLASSES_ROOT, so this should be enough:

    [HKEY_CLASSES_ROOT\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
    "SortOrderIndex"=dword:00000054

  2. Well, you would know if you just read that website...

    In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. Open RunOnceEx.cmd in Notepad, and include the following after @echo off:

    IF EXIST D:\CD.txt set CDROM=D:

    IF EXIST E:\CD.txt set CDROM=E:

    IF EXIST F:\CD.txt set CDROM=F:

    IF EXIST G:\CD.txt set CDROM=G:

    IF EXIST H:\CD.txt set CDROM=H:

    IF EXIST I:\CD.txt set CDROM=I:

    IF EXIST J:\CD.txt set CDROM=J:

    Create a blank txt file called CD.txt and place this in C:\XPCD. This allows the IF EXIST command to scan all the drive letters specified, then when it finds CD.txt it will set an environment variable of %CDROM% pointing to the correct drive letter.

  3. You are using more then one set of quotation marks and it is comfusing the rundll command.  Try this

    REG ADD %KEY%\060 /VE /D "Install of Maxthon" /f

    REG ADD %KEY%\060 /VE 1 "rundll32 setupapi,InstallHinfSection DefaultInstall 128 /"%ProgramFiles%\Maxthon\maxthon.inf/"" /f

    Try it the other way around ;):

    REG ADD %KEY%\060 /VE /D "Install of Maxthon" /F
    REG ADD %KEY%\060 /VE 1 "rundll32 setupapi,InstallHinfSection DefaultInstall 128 \"%ProgramFiles%\Maxthon\maxthon.inf\"" /F

  4. The Data-value can be a REG_SZ, so you don't have to work with hex values. I tried to make it a REG_MULTI_SZ (to have multiple lines), but it just put all the lines on one line :( I think you're better off with a predefined file if you want to have multiple lines.

    Edit1: btw, you don't need the NullFile-value in there. It will show up in the New-list anyway if you just put in the Data- or FileName-value.

    Edit2: I'd still go for the predefined file. If you use the Data-value, it will add a character (not sure what character, it shows up as a space in Notepad) to the end of your string.

×
×
  • Create New...