Hi,
I'm trying to install some registry entries via a custom .inf file. Eventually
the .inf file will do more than install registry entries, so I can't just use
regedit and .reg files for the task.
The relay shows that the entries were supposedly created without problems
(retval == ERROR_SUCCESS), but subsequent runs of regedit show that nothing
of the sort has happened. I've done it all on a fresh wine prefix, like so:
$ rpm -q wine-core
wine-core-0.9.16-2.fc4
$ rm -rf ~/wp
$ wineprefixcreate --wineprefix ~/wp
/vol1/home/kuba/wp updated successfully.
$ WINEDEBUG=relay WINPREFIX=~/wp wine rundll32 setupapi.dll,InstallHinfSection
DefaultInstall 0 z:\\home\\kuba\\build.inf 2> log
$ WINEPREFIX=~/wp regedit /E z:\\home\\kuba\\foo.reg HKEY_CURRENT_USER
None of the keys from the .inf file appear in ~/foo.reg, even though the relay
dump would have you think that their creation had succeeded. Manual creation
of keys via
$ WINEPREFIX=~/wp regedit
works fine.
Below is the relay trace, with my annotations.
I'd appreciate any suggestions as to how to debug this.
Cheers, Kuba
0009:Call advapi32.RegCreateKeyW(80000001,7fc8d818 L"Environment",7fc8f838)
ret=420bd1ca
0009:Call
ntdll.NtCreateKey(7fc8f838,000f003f,7fc8d6a4,00000000,7fc8d6bc,00000000,00000000)
ret=7b4e19dd
0009:Ret ntdll.NtCreateKey() retval=00000000 ret=7b4e19dd
0009:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b4e19e8
0009:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b4e19e8
0009:Ret advapi32.RegCreateKeyW() retval=00000000 ret=420bd1ca
* HKCU/Environment was successfully created/opened.
0009:Call advapi32.RegSetValueExW(00000044,7fc8d818
L"TEMP",00000000,00000001,7ff19ae8,0000000e) ret=420bd56e
0009:Call
ntdll.NtSetValueKey(00000044,7fc8d6e4,00000000,00000001,7ff19ae8,0000000e)
ret=7b4e34ca
0009:Ret ntdll.NtSetValueKey() retval=00000000 ret=7b4e34ca
0009:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b4e34d5
0009:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b4e34d5
0009:Ret advapi32.RegSetValueExW() retval=00000000 ret=420bd56e
* HKCU/Environment/TEMP was successfully set.
0009:Call advapi32.RegCloseKey(00000044) ret=420bd19f
0009:Call ntdll.NtClose(00000044) ret=7b4e1097
0009:Ret ntdll.NtClose() retval=00000000 ret=7b4e1097
0009:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b4e10a2
0009:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b4e10a2
0009:Ret advapi32.RegCloseKey() retval=00000000 ret=420bd19f
* The key was successfully closed.