|
Hi,
Im in a situation where my set up project should install two applications ina quite mode. first i should install .net sdk and then my .net application without by a single click. Is it possible. Please help me to solve this problem.
Regards
Mukilan.P.S
|
|
|
|
|
I guess you mean the .net framework and not the sdk.
If so, take a look at 1 of these articles:
Visual Studio 2005
http://msdn.microsoft.com/msdnmag/issues/04/10/Bootstrapper/
Visual Studio 2003
http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/
I'm in the high-fidelity first class traveling set.
And I think I need a Lear jet.
|
|
|
|
|
thank you very much spif,
I dont have much experience in Installers. If you are able to guide me clearly about how to install SDK in a quite mode wihtout any windows flickering will be helpful for me.
Anyway thank you very much for your immediate reponse.
Mukilan.P.S
|
|
|
|
|
You can use many installers, but my favourite is Inno Setup. It's free and even for commercial use.
If you're not familiar with installers, you can download also IS Tool, which creates your setup project using step wizard.
You'll have two items in the "Files" category there. The one is a directory (or just executable) of your app, and the second is the Framework SDK (marked as decompressed into {tmp} (temporary) directory, so its installer will be deleted after whole installation).
Now add this file in the "Install Run" category, so that it will be runned after installation of your app. If you want to install it before your application, you have to create a setup component.
To make the installation quiet, the SDK installer have to be runned with some parameter ("/q" I think).
Hope this helps.
|
|
|
|
|
Thank you very much Itinka,
I dont have much experience in Installers. If you are able to guide me clearly about how to install SDK with the parameter like "/q" will be helpful for me.
Anyway thank you very much for your immediate reponse.
Regards
Mukilan.P.S
|
|
|
|
|
Dear Itinka,
How to pass the command line arguement switches which supports the install.exe. From where to pass this command line arguements from the setup project. Only one window should be there which is a progress bar and all other installations should be done at the background without any clicks or user interaction. First it should install the .Net Framework 2.0, which will reflect in the progress bar, then it should start automatically the application and it should ececute and installed in the same manner by a single click. All the changes should reflect in the progress bar.
Can u please guide me on this requirement.
Regards
Mukilan.P.S
|
|
|
|
|
How can I check whether a file is locked? My code for now is this:
int retrycount = 0;
bool copied=false;
while (!copied)
{
try
{
System.Threading.Thread.Sleep(1000);
File.Copy(filenameSource, filenameDestination, true);
copied = true;
}
catch
{
retrycount++;
System.Threading.Thread.Sleep(1000);
if (retrycount > 100)
{
break;
}
}
}
Is there a solution without catching exceptions? And one more thing - if I comment out the first Sleep, the file will be copied, but blank??? I should mention that the destination filename is on a remote computer. That doesn't occur if the destination filename is on local computer.
|
|
|
|
|
Hi All.
I want to write some small application that check evry X second if there are some messages in MSMQ.
1. I dont find any example how to do it ...
2. What is the class that i need to use to get MSMQ control ?
Thanks for any help.
-- modified at 4:59 Friday 10th March, 2006
|
|
|
|
|
Use a background thread that constantly checks a queue. Nothing magical or elaborate.
If you need help getting started with MSMQ, there are a few good articles on CP, such as this one[^].
|
|
|
|
|
Hi,
I am a music technologist and fairly new to c#. I am trying to find a way of creating a simple sine wave oscillator with a frequency control - can anyone help? Also does anybody have any advice on creating custom Max/MSP objects?
Cheers.
Subdiffusion - www.subdiffusion.com
|
|
|
|
|
I'm trying to make a control paint itself to a bitmap and save it.
I'm trying to do this by making the control paint itself to my graphics object and not by screen capturing and coping.
I have had a success with button and label for example. I override the class (ex. button) and made a SaveGraphics method which initialized a bitmap and called the OnPaint method with the bitmap's graphics object.
I've had less success with a TextBox or UserControl. In a UserControl, I can call each control with InvokePaint but that still does not work for a TextBox.
In overriding a TextBox, calling OnPaint method does not render the text.
Anyone have an idea on how to save a TextBox's graphics content to a Bitmap?
-- modified at 4:13 Friday 10th March, 2006
|
|
|
|
|
Question asked,
Answer given...
I looked a bit and found those here:
http://www.codeproject.com/cs/miscctrl/alphablendtextbox.asp
http://www.thecodeproject.com/cs/miscctrl/AlphaBlendedTextControls.asp
If I'l succeed I will post another answer.
|
|
|
|
|
Hey guys, I thought I'd start a separate post for this message since it's really a different topic but for the same program. Anyway, what i want to do is get the clipboard using Clipboard.GetDataObject() and then store that data for later use (even after the current clipboard has long since changed). then i'd like to use Clipboard.SetDataObject(mySavedClipboard); to reset the clipboard with my saved one. It seems like whenever i restore the old clipboard it just ends up being blank when i paste.
I've also tried to create a new IDataObject and loop through the stored formats and use SetData to copy over all the data contained in the original clipboard. this somewhat works but it definitely doesn't get everything. For example, if i copy just plain text from notepad, it will work and get restored, but if i try to copy part of a webpage or something from a rich text box, it won't copy over and will end up being and empty clipboard.
Anyone have any ideas?
Any help would be really appreciated.
Thanks in advance
-Jeremy
|
|
|
|
|
I've come accross a strange problem with sendkeys. basically what i have is an app that monitors the clipboard by watching for the WM_DRAWCLIPBOARD and then retreives it when it comes up. My problem only comes up when i've selected part of a webpage in Internet Explorer and then use sendkeys.send or sendkeys.sendwait in my program to force a copy to the clipboard... when I do this, the WM_DRAWCLIPBOARD message never shows up in my program. The really funny part of it is that if i do the exact same thing and physically press the keys, i get the message and everything is great. I'm thinking something with sendkeys, has to be blocking the message somehow..
right now my program is basically just a timer that fires a sendkeys.send("^C") every second. so when i switch to another app and select text, it can copy it when the timer fires.
Out of desperation i even created a thread and fired off the send keys in there but to no avail. is there a way to start a new thread that is completely seperate from the program itself?
|
|
|
|
|
Nevermind.. I got it working.
I simply stopped using SendKeys to send the input.
Instead, i'm using keybd_event() now it get's the clipboard notification properly. very strange issue still.
|
|
|
|
|
Hello community,
I'm currently searching for some information on how to create rotatable and resizable controls... with such sizing handles and a rotation pin (MS-Visio style).
Does enybody know where to find some good documentation or code snippets ?
-- modified at 2:33 Friday 10th March, 2006
|
|
|
|
|
WPF is the obvious way to do this. If you can't use WPF, then you need to owner draw everything, there is no support for rotating controls in WinForms
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 )
|
|
|
|
|
Now, i have a formula, after solving some expression i want to assign a new value to a Parameter fields.
But i dont know how to do it.
Please help me!
superdragon
|
|
|
|
|
I once came across an article posted in Code Project that explained how to programatically insert tables into RTF. I wasn't smart enought to bookmark this and now can't find it.
Does someone remember a similar article and can provide a link?
Thanks,
Eric
|
|
|
|
|
Hi All,
a very simple question , what will be the fastest way to know that whether a directory is empty or not.ofcourse i can use directory or directoryinfo class and can use getfilesystementries or getfilesysteminfos function and thus check whether it is having any children or not.but i am not intrested in the all the children.what i want to know whether it is having any child or not?any suggestions are most welcome.is there any api, which can be used?Thanks in advance.
Rakesh
|
|
|
|
|
GetDirectories
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
Now,I'm design a component use for a system which service in hotel,the component is use to due to flie upload and download(webClient-webServers(c/s)).My problem is that the component contain more than two forms,so,How Can I do with the Encapsulation with the forms. I'm so puzzled that I could not know How can I do to change they became dll files !!
thank you
|
|
|
|
|
I have formula field in crystal report, now i want to receive value from it. How can i recieve it?
Please help me!
superdragon
|
|
|
|
|
|
That mean, after crystal report run, i want to get The Value that formula has calculated or sth like that
superdragon
|
|
|
|