468,507 Members | 1,586 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,507 developers. It's quick & easy.

VS Setup Project Question?

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

Aug 1 '07 #1
0 946

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael A. Covington | last post: by
3 posts views Thread by John | last post: by
5 posts views Thread by Bob Hollness | last post: by
2 posts views Thread by Sathyaish | last post: by
2 posts views Thread by Dennis | last post: by
2 posts views Thread by Norman Diamond | last post: by
1 post views Thread by =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.