|
Already posted twice elsewhere.
It's time for a new signature.
|
|
|
|
|
|
My preference, and I think there are others here who agree, is to not try to do that.
Simply document the system requirements of the application and let the user install what's needed however they like.
Think of it this way... what if your install installs today's current features, but a user wants to install it sometime in the future and doesn't want to install "old" versions of this stuff.
Plus, the user may already have the stuff you require installed (or better). Why install SQL Server Express when the user already has the full package?
Or maybe the user wants to have SQL Server on a server (where it belongs), not on his workstation?
Your install should install your application and nothing else.
|
|
|
|
|
Indeed, don't force your customer to install sql express. I agree to PIEBALDconsult post.
Maybe its the easiest way to create your installation, but its the wrong way. Your installation should get the required data (connection settings etc.), check the connection, then it should install the database. If the connection fails, cancel the setup.
|
|
|
|
|
Hi
I am currently learning to use a directshow.net library and I would like to be able to catch a double click event on the video. Is this possible and if so how do I do it?
Thanks
|
|
|
|
|
WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_GRAPHNOTIFY:
{
}
break;
case WM_LBUTTONDOWN:
{
}
break;
}
I know nothing , I know nothing ...
|
|
|
|
|
protected override void WndProc(ref System.Windows.Forms.Message m)
{
const int WM_NCLBUTTONDBLCLK = 0xA3;
if (m.Msg != WM_NCLBUTTONDBLCLK)
{
}
base.WndProc(ref m);
}
I know nothing , I know nothing ...
|
|
|
|
|
This is the non client double click message. Is there a double click message for inside the client area?
|
|
|
|
|
I used 0x0203 and it's worked for me...
|
|
|
|
|
Hello,
I'm writing a Windows service in C# .Net 4.0 with MS VisualStudio 2010.
I have a problem now:
How can I find the path to the installutil.exe?
or how can I install my service using C#?
I searched with google and I found soulutions, but they don't work.
Sorry for bad english.
Thanks for all responses
|
|
|
|
|
I use System.Configuration.Install.ManagedInstallerClass.InstallHelper , which is the routine that INSTALLUTIL calls. (I have lost track of which article here pointed it out to me.)
In the Main method of my service program I accept a command-line pararmeter and use a switch:
case Action.Install :
{
System.Configuration.Install.ManagedInstallerClass.InstallHelper
(
new string[] { System.Windows.Forms.Application.ExecutablePath }
) ;
break ;
}
case Action.Uninstall :
{
System.Configuration.Install.ManagedInstallerClass.InstallHelper
(
new string[] { "/UNINSTALL" , System.Windows.Forms.Application.ExecutablePath }
) ;
break ;
}
So then I call my program rather than INSTALLUTIL to perform actions on my service(s).
|
|
|
|
|
Thank you!!!
I have it realized and it works fantastic good now!
Thank you very much
|
|
|
|
|
|
I have been using this code for a while now and it has been working well. I have just switched to Windows 7 and was starting a new project to create a service configuration and installation tool. I reused this code and it fails on Windows 7. The error is "The installation failed, and the rollback has been performed." I suspect that permissions need to escalated and the user needs to approve this action for it to succeed. I have done some research and have tried to work around it but the user is never prompted. Does anyone know how to get this to work on Windows 7? I assume that Vista would have the same problem as well.
|
|
|
|
|
Ah, I have only used it on XP and Vista (as administrator)... hang on, I think I have a Win7 virtual machine around here...
Hmmm... OK, I got the same thing. Ferb, I know what we're going to do today.
Edit: In looking at the messages I see: System.NullReferenceException: Object reference not set to an instance of an object .
modified on Friday, July 30, 2010 12:03 PM
|
|
|
|
|
Oh, yeah, I think I may have had that on Vista too. Because I use a DOSbox to control my Services from the command-line, I simply run it as Administrator.
I was able to install and start my Service on my Windows 7 virtual machine, but I wasn't able to access the SQL Server instance on this system.
|
|
|
|
|
|
But I believe he was concerned about finding the correct version on some unknown user's system.
My system currently has three versions:
C:\windows\microsoft.net\Framework\v1.1.4322\InstallUtil.exe
C:\windows\microsoft.net\Framework\v2.0.50727\InstallUtil.exe
C:\windows\microsoft.net\Framework\v4.0.30319\InstallUtil.exe
Other systems may have fewer, and there will likely be new versions in the future -- his install would need to detect which is available and will work.
I may have written an application with .net 2 that expects the .net 2 version -- but today someone may want to install it on a system with .net 4 only.
The .net 4 version will work, but the install won't know it's there and so will fail.
Of course, this is what the PATH environment variable is supposed to be used for, but I think I'm the only one who still uses it.
|
|
|
|
|
Hey guys!!!
i wanted to know that is it possible to do interfacing with a biometric device like fingerprint recognition device with c#... I am planning of making a security system in which i will make a database (using sql) which will store and use data from the database using the input from fingerprint device and display from a gui using C# !!..
plz give me a head start!!
i really need help.
|
|
|
|
|
Sure, it's possible. You just need the SDK for the fingerprint scanner, oh, and a database to hold all the fingerprint data. You'll need to contect the manufacturer of the scanner to get the SDK and that is more than likely going to cost a few thousand dollars.
|
|
|
|
|
does anyody knows about fingerprint sdk 2009 ?? it supports many readers and supports c#..is it good enough to work with??
|
|
|
|
|
Never used it, but you have to buy a minimum of 5 licenses at $35 and change a piece for a total of $176. You also have to buy enough license to cover the number of machines you application is going to run on AND be developed on. So, if you're going to run this on 200 machines, you'll need the 150 pack ($3,920) + 50 singles ($1,765) + whatever dev machines you'll be using. $,$$$...
|
|
|
|
|
i plan on using only on a single machine..
and then communnicate the database for access of data through a server using asp.net
(YES I AM DOING IT FOR FINAL PROJECT)
|
|
|
|
|
Yeah, well, you still have to buy a minimum of 5 licenses. Even though you'll only be using 1.
And ASP.NET has nothing to do with database access. Were you thinking about ADO.NET??
ASP.NET just puts up web pages.
|
|
|
|
|
Any company that states "Please log in to see prices" I wonn't buy from. Why not just show them up front? If there are discounts to be had for existing customers and therefore they want you to log in so they can give accurate prices the should say clearly that the visible prices may not apply to xxx, not hide the price from everyone.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|