473,797 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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,Instal lHinfSection 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 1128

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5367
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files in a specified directory (user specified is good, but i don't mind hardcoding the path either) and...
1
2111
by: Michael A. Covington | last post by:
When I build my setup project, I get three files: setup.exe, setup.ini. and myapplication.msi. These go into a folder called (setup project)/bin/Release. If any other files are in that folder, they get deleted. What I'd *like* is that when I build the setup project, the files that it creates should go into a directory that I specify, and not delete any other files that are already in it. That way I can maintain an image of my...
3
1760
by: John | last post by:
Hi I have an app to deal with two companies A & B within a group of companies depending on which database is selected. Is it possible for setup to ask the user at install time which company they want to install the app for and then pass the relevant database path as parameter in the desktop shortcut? Thanks Regards
5
1282
by: Bob Hollness | last post by:
OK, sorry for the silly question but..... I have been writing apps for a while now in VB.Net but I have always just run them from the IDE. This time though I have written an app that I want to install on many computers. So, I went to the program group looking for "Package & Deployment Wizard" as in VB6 but it isn't there! So, how do I create a setup program?? Thanks
2
3330
by: Sathyaish | last post by:
I've written an Add-in for MS Outlook and in Visual Studio .NET 2003, I also created a setup project to install the add-in. It all works well. When the user double-clicks on the .msi file to launch the setup, there's this choice of having the application installed "Just for me" or for "Everyone" using that computer. I noticed that even when the user selects "Everyone", the setup script writes the entries for registering the Add-in with...
2
3840
by: Dennis | last post by:
I have created a setup project and it works fine. However, it inlcudes a file "Dotnetfx.exe" which I have read is the installer for the required .net framework. I have read the documentation that is included in the MSDN but I think I am still confused! My question is then running the .msi file on a user's computer that does not have the .net framework required, will it be installed automatically. Some places I read says it will and some...
7
4139
by: HIK | last post by:
Click once can be set up to pole the setup url if there is a newer version or not. I have a project which can only be deployed using a setup project. How can I create the same feature in my setup project, so the client will automatically check if there is a newer version or not? haim
2
3313
by: Norman Diamond | last post by:
My C# code is I18N'ed by appropriately naming and editing .resx files. At execution time, it works. My C++ code is somewhat I18N'ed. When I put UI code in C++ I use .rc files. When I link to a third party's DLLs I get what they supplied. When I link to Microsoft's CRT and MFC, um... Well anyway, at execution time it seems to be working, except when a third party's DLL has a secret dependency. But what about the installer? A Visual...
0
1913
by: henkya | last post by:
Language Used: C# Project Typed: Setup Project (for .NET Window Service) Hi Bump into this issue and seriously have a hunch that this is a bug in the .NET setup project. These are the scenario: - I have an existing Window-Service application written in C#, and was build following the general deploying Window-Service guideline (the Win-Service project has a Installer class that have ServiceProcessInstaller & ServiceInstaller that...
1
2543
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am reviewing Windows service programming. I'm running VS2005 and programming in VB. I've just found an example in Support: 'How to create a Setup project for a Windows Service in Visual Basic .NET or in Visual Basic 2005' http://support.microsoft.com/kb/317421 I've been able to program and run this example without problems. However, I wonder if I'm missing the point here. How do you deploy a service like this to a machine...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10468
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.