; weird default key values ; install: ; rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\weird.inf ; (needs ".\file.inf", not "file.inf") [Version] Signature = "$Windows NT$" [DefaultInstall] AddReg = section.addreg [section.addreg] HKCU,Software\reg2inf\test_01str,,,"Default""String" HKCU,Software\reg2inf\test_02dw,,65537, 12345678 HKCU,Software\reg2inf\test_03msz,,0x10000, def1, def2 ;; if there were no explicit valuenames in the key, API cannot tell REG_NONE from no value about the key itself; output both will be ",,16" HKCU,Software\reg2inf\test_04none_should_be_0x20001,,0x20001 HKCU,Software\reg2inf\test_05keyonly,,16 HKCU,Software\reg2inf\test_06bin,,1, 01,02,03,04 HKCU,Software\reg2inf\test_07msz_num,,0x10000, 1, 2, 3, 4 HKCU,Software\reg2inf\test_08expand,,0x20000,%%windir%%\system8 ;; If default key value is REG_EXPAND_SZ, and no %value% expansion in default value, but the key has no explicit valuenames below, ;; then API could not detect REG_EXPAND_SZ of the key properly. ;; reg2inf.vbs will output the default value as REG_SZ HKCU,Software\reg2inf\test_08expandstatic,,0x20000,static\system8 ;; correctly enumerated if the key contains some valuename HKCU,Software\reg2inf\test_09expand+val,,0x20000,static\system9 HKCU,Software\reg2inf\test_09expand+val,explicit,0x20000,%%windir%%\system99 ;; QWORD formatter shouldn't barf for over 53bit value HKCU,Software\reg2inf\test_10QWORD,qword32,0xB0001, 11,22,33,44,0,0,0,0 HKCU,Software\reg2inf\test_10QWORD,qword53,0xB0001, 5F,DC,BA,98,76,54,1F,0 HKCU,Software\reg2inf\test_10QWORD,qword54,0xB0001, 5F,DC,BA,98,76,54,3F,0 HKCU,Software\reg2inf\test_10QWORD,qword64,0xB0001, 5F,DC,BA,98,76,54,FE,EF HKCU,Software\reg2inf\test_11bs_val,\\server\path,,"valuename with backslash" ;; REG_EXPAND_SZ with "\" in valuename => un-expanded value NOT available. Outputs expanded value HKCU,Software\reg2inf\test_11bs_val,expand=%%windir%%\system11,0x20000,%%windir%%\system11 ;; REG_DWORD with invalid length should always error ;; -> installs as 4byte. can't test for error... ;;HKCU,Software\reg2inf\test_12invalidDW,dwlen8,0x40001, 12,34,56,78,8A,BC,DE,F0 ;; hex string comparison should be in this order HKCU,Software\reg2inf\test_13CLSIDord,1,,1 HKCU,Software\reg2inf\test_13CLSIDord,2,,2 HKCU,Software\reg2inf\test_13CLSIDord,10,,3 HKCU,Software\reg2inf\test_13CLSIDord,19,,4 HKCU,Software\reg2inf\test_13CLSIDord,a,,5 HKCU,Software\reg2inf\test_13CLSIDord,f,,6 HKCU,Software\reg2inf\test_13CLSIDord,{00001234-0000-0000-0FFFFFFF},,11 HKCU,Software\reg2inf\test_13CLSIDord,{00FEDCBA-0000-0000-0FFFFFFF},,12 HKCU,Software\reg2inf\test_13CLSIDord,{12345678-0000-0000-0FFFFFFF},,13 HKCU,Software\reg2inf\test_13CLSIDord,{1A345678-0000-0000-0FFFFFFF},,14 HKCU,Software\reg2inf\test_13CLSIDord,{98765432-0000-0000-0FFFFFFF},,15 HKCU,Software\reg2inf\test_13CLSIDord,{9E765432-0000-0000-0FFFFFFF},,16 HKCU,Software\reg2inf\test_13CLSIDord,{ABCDEF01-0000-0000-0FFFFFFF},,17 ;; version string x.y.z string comparison HKCU,Software\reg2inf\test_14vers,1.0.44.0,,1 HKCU,Software\reg2inf\test_14vers,1.0.00900.0,,2 HKCU,Software\reg2inf\test_14vers,1.0.3300.0,,3 HKCU,Software\reg2inf\test_14vers,1.0.5000.0,,4 ; rundll32.exe syssetup.dll,SetupInfObjectInstallAction Uninstall 132 .\$0 [Uninstall] DelReg = section.delreg [section.delreg] HKCU,Software\reg2inf