HI Experts,
I am trying to learn VS Setup Project, the problem I experience now
is, I have written a C++ program to register all my DirectShow filter
by CreateProcess method.
Q1: the reason I have to do this is because with VS regcap, I can't
register my filter for some reason, my DX filter can register with
regsvr32 perfectly? can you give me some hint on what is going on?
I have a Codec DirectShow filter (not implemented by me), but it
register itself by an "inf" file, so what I did is also using the
CreateProcess method to install/execute the inf file.
Q2: Is there easier way to do it in the setup project?
Now since the command that I pass in into the CreateProcess method is
what I normally do in Command Prompt
as shown below:
rundll32 setupapi,InstallHinfSection DefaultInstall 132 ./install.inf
The problem is that I found out that the "./" will be c:\windows
\system or system32, can't remember >.<, not as I was expected that it
will be the directory of my exe.
Therefore it can't find the inf file cause is in the wrong directory.
Q3 is there an alternative way to solve this problem?
Please help me, I am really stuck for this for 2 days already. >.<
Thank you for reading this e-mail.
Best Regards
Ferdinand