|
Hello buddies,
as it is my first post on codeproject.com accept my warm regards and best wishes, I hope to be a good friend here.
I wonder why there is no suitable built-in feature neither in Visual Studio .NET install project nor somewhere else (that I know) which can determine all pre-required softwares on the user's PC & install them before installing the main .NET application. ok I know about bootStrap program but it seems to have bugs and doesn't work perfect in all situations
well, can anybuddy tell me why Microsoft itself didn't include such a critical tool in it's Visual Studio .NET?
Thanks for your notes,
- nSun
---
"Art happens when you least expect it"
|
|
|
|
|
Because they can't be expected to do everything, and they even stated that they didn't want to close the doors for third-party development. This was something third party library developers started complaining about during the early stages of .NET (stating that it contained too much in the BCL, which is another reason that some controls really suck, IMO).
Bootstrap programs are actually easier to write than you think. If the dependencies are managed, you don't even need a bootstrap program other than to check for Windows Installer 2.0, then the .NET Framework (of the appropriate version), then start the installation routine (note, don't do this by using CreateProcess on msiexec.exe - actually call the functions in the MSI API, which only require a couple calls to get the process started correctly). Just install the dependent assemblies in the GAC (or wherever is appropriate, such as the app path). Some dependencies (such as Crystal Reports) already have merge modules (MSMs) that you can include in your installer and not have to worry about it.
While I'm on the topic, most people don't know that including the .NET MSM in your installer project DOES NOT install the CLR - the MSM is only to satisfy VS.NET's urge to add MSMs automatically to satisfy early-bound dependencies (which is why it's disabled when added). This is just FYI.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Ways to deploy .NET Framework on the rectricted client system?
I mean restricted: HKCU, HKLM, system dirs.
Such exist or not?
Any solutions?
Anybody?
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I try to develop hebrew software(right to left reading).
Dev tool: VS.net/English, C#
Os: Simplified Chinese, win 2000pro
I set the Form's Right-To-Left property "Yes", but when i run the program, it display Form Title on the right top, the icon and system menu of the form did not chang position.
As same as that, the tab control can't flip too.
I meet same problem when I localize a .net application into Arabic/Hebrew language versions.
look at here: http://buaaif.netfirms.com/index.html
(two snapped picture)
help me!
thanks!
|
|
|
|
|
I do the drawing with GDI+.
what would happen if I draw on a bitmap with a minus-coordinate-point
Does the drawing methods still be called or the GDI+ just ignores this?
thanks
|
|
|
|
|
GDI+ just draws anyway, and anything outside of the bitmap is simply not visible.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I want to distribute my program to my friends. I am using Visual Studio .net. Which do i need to include when I distribute the application? the whole disk 5? or if not, which part should I include?
"To teach is to learn twice"
|
|
|
|
|
Well, if you really can't write one yourself, maybe you can wait 2 or 3 months until the FLUID UI Toolkit team creates a combo box. We've just gotten a SourceForge account, but it won't be listed for a day or two yet.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
|
I'm looking for a way to combine a listview with a treeview control. The listbox should have two columns, the first one is a treeview and the second one is a textbox for every node the treeview.
A picture of that can be found under: (this is what you get, if you right-click on a file in the explorer and then on properties/file info/)
http://www-public.tu-bs.de:8080/~y0010749/howtodothat.jpg
Anny suggestion is appreciated
|
|
|
|
|
HolgerBadger wrote:
I'm looking for a way to combine a listview with a treeview control.
Right here at CodeProject, check TreeListView[^]
-Nick Parker
|
|
|
|
|
how do you get rid of invlalid resX input errors. they occur when i try to open up someone elses project solution file.
i tried copy pasting all the code from each form file( in c#) into my new project... but that didnt do the trick.
|
|
|
|
|
Hello,
Does anyone know of a method to keep the .NET Framework updated automatically/programatically similar to how Windows updater works?
I know that dotfx.exe can be downloaded and ran, but this cotains a large amount of files. If there anything at there that can detect just which files have changed and allow my program to install just those files?
Does C# have any built in functions to perform checks and updates on the framework?
Thanks
|
|
|
|
|
|
I had .NET Framework 1.0 and VS.NET 2002. I normally invoke VS.NET via Start -> Run -> devenv and it opened fine.
Of late, I installed .NET Framework 1.1 and now when I say Start -> Run -> devenv, it opens a Command Prompt and then opens VS.NET (the command prompt closes itself automatically anyway).
When I made a small investigation of what is happening, I found, just typing devenv now, opens devenv.com and then opens devenv.exe.
Why has this mapping changed in my machine automatically? Any fix or solution available?
Thanks...
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
I am doing .NET remoting hosted in Windows service. I want to be able to check if the port number i requested is available, if not I'll use another number. I will do this until I find a port which is not used. The problem is I try to use try/catch to catch the exception if the port number is occupied. But neither
ChannelServices.RegisterChannel(chan) or
Activator.GetObject(typeof(remoteObj),
"http://localhost:portNumber/remoteObj.rem");
can catch any exception if the port is used.
What can I do to deal with this issue?
Thx.
|
|
|
|
|
When you call Activator.GetObject the Activator create Proxies on a client side but not yet contacts the server.
You won't get exception if port is in use until you connect the server (until you call any method on a remote object).
From the other hand, remoting normally chooses an available port for a client.
If you want to check if port is in use, you suppose to do that on the
server side.
Again, with remoting you normally don't hardcode settings, you use configuration files instead. It's matter of a few seconds to change the port number in configuration file.
"...hasn't really been well accepted ... as the ratings tell us so far " - Nishant S
|
|
|
|
|
How do I check and change the port number in server side?
I guess I can put RegisterChannel in try/catch at server side, it should give me exception if the port is in use, is it right? how can I do in config file?
|
|
|
|
|
No, RegisterChannel doesn't make any check if port is in use or not and, therefore, doesn't throw the exception in this case.
Just use config files to easy change configuration settings, you don't have to check if port is in use or not programmatically.
"...hasn't really been well accepted ... as the ratings tell us so far " - Nishant S
|
|
|
|
|
Do you mean when client failed, then use config file to change port number?
I cannot do that. I need something to automatically detect and change the port number. any way?
|
|
|
|
|
Yes, this is that I mean and is that as it normally works.
I think there is a way to detect if port is in use, but not the way you tried. No one from functions you use to register channel or obtain reference on a remote proxy won't throw exception in this case.
Only when client will try to connect server, exception will be thrown.
But there is one question:
first server should find free port. Let's imagine that server did. But HOW DOES CLIENT KNOW WHICH PORT IS CHOOSEN BY SERVER IF YOU DON'T USE CONFIG FILE?
"...hasn't really been well accepted ... as the ratings tell us so far " - Nishant S
|
|
|
|
|
The solution that seems to be used (or at least that I used ) is to specify a range of port for your server (ex: 2001->2005).
The client can try the next one in the range if one fails.
Gilles
NB: usually the client knows on which port the server is listening for q specific service: 80<->HTTP, 21<->FTP, ...
an din our case 2001<->your service
|
|
|
|
|
I put an assembly up in the GAC and I am having trouble simple removing it. For whatever reason Windows Installer is holding onto it and I am really not sure why? Could anyone explain why this is happening? I manually added it to the GAC and really did nothing special.
Steve
|
|
|
|
|
|