Dmitry Timoshkov recommended the MS Debugging Tools for Windows http://www.microsoft.com/ddk/debugging to log API calls. Foolish me, I tried them under Wine. Here's what I had to do to install them. They don't quite work under Wine, but only because of a fundamental problem; all the superficial ones were easily solved :-)
0. To fix the "This program may only be used with Microsoft Windows" problem, click "I Agree" on the license agreement.
1. To fix the "This program requires Windows NT or later" problem, edit ~/.wine/config to specify [Version] "Windows"="nt40"
2. to fix the "can't execute msiexec.exe" error, copy /dos/c/windows/system/msi* ~/c/windows/system
3. To fix the "Error 2352: Couldn't initialize cabinet file server. The required file 'cabinet.dll' may be missing." error, copy /dos/c/windows/system/cabinet.dll ~/c/windows/system and edit ~/.wine/config to specify [DLLOverrides] "cabinet" = "native,builtin"
OK, now it installs. I then tried using it under Wine to log the system calls made by msvc4.0's installer, like this: wine 'c:\dtfw\logger.exe' d:setup
4. To fix the "can't load winexts.dll" problem (which is a strange one -- it is looking in windows/system, but only installed the dlls into c:\dtfw): cp ~/c/dtfw/exts/winexts.dll ~/c/windows/system
5. To fix the "can't open c:\windows\system\manifests\main.h" problem, cp -r ~/c/dtfw/manifests ~/c/windows/system/manifests/ (again, why weren't they installed there?)
Ah, but there I hit a roadblock; it gives the error "Could not inject logging thread into process". Shucks, shouldn't wine support advanced windows debugging techniques? :-)
- Dan
"Dan Kegel" dank@kegel.com wrote:
Ah, but there I hit a roadblock; it gives the error "Could not inject logging thread into process".
Very likely that's due a stubbed CreateRemoteThread.
Shucks, shouldn't wine support advanced windows debugging techniques? :-)
Sure, when somebody implements all the missing functionality in Wine :-)
P.S. Have you managed to run logger and logviewer under Windows?
Dmitry Timoshkov wrote:
Have you managed to run logger and logviewer under Windows?
Yes! They work fine on WinXP. (The docs imply they'll run on win9x as well, but the installer begs to differ.)
And it's an eye-opener. It's really cool to see the log of what apps are doing under real windows. I now see I have to revise my "argv[0] must be absolute" patch again, for instance.
Off to try building the wine tests with msvc4.0 under wine... I need to verify my hunch that the regression test I just added will fail under windows xp. - Dan
do you mean you manage to install the MSI service ?
- to fix the "can't execute msiexec.exe" error, copy /dos/c/windows/system/msi* ~/c/windows/system
===== Sylvain Petreolle spetreolle@users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259
"Don't think you are. Know you are." Morpheus in Matrix, chapter 15.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Sylvain Petreolle wrote:
do you mean you manage to install the MSI service ?
- to fix the "can't execute msiexec.exe" error, copy /dos/c/windows/system/msi* ~/c/windows/system
I dunno. All I know is that copying all the msi* files from my real windows/system directory to my fake windows/system directory (and also copying cabinet.dll and using it) made the installer work under cvs wine. So I guess yes. Is that unusual?
- Dan
of course not. but im trying to install .NET framework and its asking for msi update, that fail, even with these files installed.
I dunno. All I know is that copying all the msi* files from my real windows/system directory to my fake windows/system directory (and also copying cabinet.dll and using it) made the installer work under cvs wine. So I guess yes. Is that unusual ?
===== Sylvain Petreolle spetreolle@users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259
"Don't think you are. Know you are." Morpheus in Matrix, chapter 15.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com