|
balakpn wrote: could any one give me some help on installer class
Such as? What would you like to know?
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
hi
i want to make my setup as user interactable like checking is the user is with administrator rights otherwise it should not allow to install have to quit the setup. i dono how to use installer class and write code on that.
with regards
Balagurunathan.B
|
|
|
|
|
There are lots of examples on google and a bunch of information in the class library documentation.
Did you read any of this?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hi
i want to get the values like file version product version of an exe
pls give me some idea
with regards
Balagurunathan.B
|
|
|
|
|
|
Hi,
Here is the complete snippet for using the FileVersionInfo class.
Thought this would be better for displaying a couple of things:
1. How to get the System Directory
2. How to get the file info. (your primary concern)
Dim appName As String = Environment.SystemDirectory & "\notepad.exe"<br />
<br />
Label1.Text = _<br />
"Comments: " & FileVersionInfo.GetVersionInfo(appName).Comments & vbCrLf & _<br />
"Company Name: " & FileVersionInfo.GetVersionInfo(appName).CompanyName.Trim & vbCrLf & _<br />
"File Build Part: " & FileVersionInfo.GetVersionInfo(appName).FileBuildPart.ToString.Trim & vbCrLf & _<br />
"File Description: " & FileVersionInfo.GetVersionInfo(appName).FileDescription.Trim & vbCrLf & _<br />
"Filename: " & FileVersionInfo.GetVersionInfo(appName).FileName.Trim & vbCrLf & _<br />
"File Version: " & FileVersionInfo.GetVersionInfo(appName).FileVersion.Trim & vbCrLf & _<br />
"Internal Name: " & FileVersionInfo.GetVersionInfo(appName).InternalName.Trim & vbCrLf & _<br />
"Is Debug: " & FileVersionInfo.GetVersionInfo(appName).IsDebug.ToString & vbCrLf & _<br />
"Is Patched: " & FileVersionInfo.GetVersionInfo(appName).IsPatched & vbCrLf & _<br />
"Language: " & FileVersionInfo.GetVersionInfo(appName).Language & vbCrLf & _<br />
"Legal Copyright: " & FileVersionInfo.GetVersionInfo(appName).LegalCopyright & vbCrLf & _<br />
"Product Name: " & FileVersionInfo.GetVersionInfo(appName).ProductName & vbCrLf & _<br />
"Product Version: " & FileVersionInfo.GetVersionInfo(appName).ProductVersion & vbCrLf & _<br />
"Special Build: " & FileVersionInfo.GetVersionInfo(appName).LegalTrademarks & vbCrLf & _<br />
"Original Filename: " & FileVersionInfo.GetVersionInfo(appName).OriginalFilename & vbCrLf & _<br />
" Needless to say that there are some more properties."<br />
So if you haven't really done a lot then this should help you out.
In case i was late in posting ( as usual) please pardon me.
Happy Coding!
Regards,
Vaibhav Sharma
|
|
|
|
|
In .net 2.0 when we use compiler , we have to use "csc /?" in command prompt for display all the list.
Similarly what is the command for .Net 3.0?
Note: I have install only .Net 3.0 Framework only.
|
|
|
|
|
jayarajmrj wrote: In .net 2.0 when we use compiler , we have to use "csc /?" in command prompt for display all the list.
Similarly what is the command for .Net 3.0?
Note: I have install only .Net 3.0 Framework only.
As the .NET 3.0 framework is just an add on to the .NET 2.0 framework and uses the C# 2.0 compiler I'm guessing that if you just install the .NET 3.0 framework you'll still need to install the .NET 2.0 Framework to get the basics (including the C# compiler)
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
And this is the 3rd time you've asked this in as many hours! Please respond on the threads you have already created rather than create new threads.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
Colin Angus Mackay wrote: create new threads
Perhaps he is trying to manage a ThreadPool over the messageboard so that at least one thread would survive supporting and substantiating his laziness of not doing homework properly and to aide in his wierd aspiration of being spoon-fed.
|
|
|
|
|
I recommend you either start reading the advice you're being given, or stop asking questions that you're obvioulsy going to ignore the answers to.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
How do we compiler in 3.0 which the C# code written in 2.0? Give the step by step process.
|
|
|
|
|
Hard to guess what you asked, but C# 3.0 is basically an add on to 2.0. There are no breaking changes AFAIK.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello!
I have a C# Windows Form application (VS 2005) which use some COM object. In the end, after Form close, I recieve error message box :
HEADER:
.NET BradcastEventWindow.2.0.0.0.1.e6fa8e.0:MyApplication.exe - Application error
TEXT:
The exception unknown software exception (0x00000005) occured in the application at location 0x7d6210ca
Click OK to terminate program.
I. I have installed WinDbg, but debugging this application is not available.
II. I browse internet for look this error and found that it is Garbage Collector error.
III. I started VS and attached to MyApplication.exe and didn't sow that location 0x7d6210ca, of cource many modules loaded, but this address was to big. May be it is addres of virtual memory?
So, I think that some COM object don't correctly released or some callback come to released object.
May be you have some thinks or ideas?
|
|
|
|
|
Did you dispose of the COM object when you were finished with it?
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
May be not...
Looks like you are right - I call GC.Collect() before return from main() and it is help.
|
|
|
|
|
There are better ways to do this other than calling GC.Collect() . Ideally, you should wrap the COM object you are using in a wrapper class that implmenets the IDisposable interface and the Dispose pattern. This wrapper class should have the responsibility of explicitly releasing (freeing) the the COM object when it is disposed.
|
|
|
|
|
I strongly agree with the IDisposable method of disposal then the GC.Collect() as it may just about bring down the performance a bit more.
Thanks for displaying both the methods.
Regards,
Vaibhav Sharma
|
|
|
|
|
I use class wrapper with Marshal.ReleaseComObject in destructor, but error strangely unpredictable occured in the finish of application.
|
|
|
|
|
Now I am working in .Net 2.0. I want to Build my application in .Net 3.0. I downloaded 3.0.
How can I build 3.0? pls give step by step process.
|
|
|
|
|
|
plz how can i read a string from a txt file then insert it in a database table using C# in visualstudio2005 ?
|
|
|
|
|
Ok as regards your first qt.
>> Use the My.Computer.FileSystem.ReadAllText() function to read the text from the text file that you want the data to be imported from.
Dump the string returned by this into a local called importedData
>> As for the Database code, you should have specified the provider, but here is it for Access.
Dim oledbCn As New System.Data.OledbConnection(connectionString)<br />
oledbCn.Open()<br />
Dim oledbCmd As New System.Data.OledbCommand(commandString,oledbCn)<br />
If oledbCmd.ExecuteNonQuery()>0 Then<br />
MessageBox.Show("Data imported to database correctly.")<br />
Else<br />
MessageBox.Show("Data import failed.")<br />
End If
As you may be knowing, connectionString for Access will be
"Microsoft.Jet.OLEDB.4.0; Data Source=MyDatabase.mdb"
commandString would be the T-SQL statement like
"INSERT INTO TableName(colName1,colName2,...) VALUES('" & importedData & "',...)"
I guess that is fairly a very Beginners job in .NET and you should be having no problems whatsoever using the above snippets.
In case of problems always refer back and we will be there for u.
Happy Coding
Regards,
Vaibhav Sharma
|
|
|
|
|
Hy there, I must make an app that silently installs .net framework(the client must never be asked nothing). I found a method to do this..and even one to find if .net is installed, but I don't 100% trust it because it checks only the registry.
So I won't to make sure by launching an .net app wich returns, for example 1.
But if .net is not installed, the client sees the error ".. press ok to terminate the app". My program written in C++ knows that it didn't return 1,
but I wan't the client not to see the exception
If you can help me, pleaase, it's important(to me:P) Thank you.
|
|
|
|