|
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)
|
|
|
|
|
Maybe you can fake it.
|
|
|
|
|
@Dave Kreskowiak
yes i was reffering to ado.net..
Sorry for replying late
(very late )
So can the database be operated by ado.net??
@DaveyM69
DULY NOTED!!
|
|
|
|
|
Can anyone tell me about a converter that can convert a C# code (written using visual studio.net)to Perl script.. i have searched a lot on internet but couldn't find any information.
kindly tell me if anyone knows about such converter.
Regards
|
|
|
|
|
There is no such tool, other than you. You have to manually convert the code by rewriting it by hand. I can't find any such converter.
|
|
|
|
|
How can i convert all formats to pdf using iTextsharp?
modified on Saturday, July 24, 2010 9:45 AM
|
|
|
|
|
All formats of what? You can't - as you were told yesterday - how would you convert an exe for instance? Try to make your question more specific.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
In addition to being just being normally impossible because of the vast number of formats in existence (many of which containing data that would not make sense in PDF form), it is also fundamentally impossible. What if anyone makes a new format? That problem can not be solved, and new formats are being made probably every day, maybe even more often.
|
|
|
|