|
thanks for ur reply. i just want read the EULA using my program from the softwares that are asking for the user acceptence while instaling them. hope you get my point.
|
|
|
|
|
Yeah, all too well. I was a fanatic World-of-Warcraft player, and Blizzard has the brilliant idea that every player needs to accept three licenses, for each and every update! Needless to say they update a lot, and you can't click it away - you need to scroll to the end to ensure that "everyone reads it". I'm sure that all those kids read it and carefully review the advantages and disadvantages of each license
There's lots of software on my system, and since I don't speak the law-lingo, I can't make heads or tails out of them. Unfortunately, there isn't a common place to put them.
Even hooking (to catch all installers) wouldn't give you all the licenses.
..but, you can get a list of currently installed software. You might not get the license automagically, but you could start working on a database that holds the licenses for the most common software. It would actually be sweet if there were a website where one could retrieve the license that goes with a software-package, along with a "human readable translation".
That would indeed be awesome
I are troll
|
|
|
|
|
hi thanks for your valuable information and for sugestions too. see you soon with more douts
|
|
|
|
|
HI All,
i have an windows application Add.exe . it is stored at in USB drive as follows
DriveLetter:\MyApplication\Add.exe
now I want to provide an auto launch for Add.exe, so that whenever My USB drive is connected to any PC Add.exe should initiaite.
Regards,
ashok
|
|
|
|
|
You'll need to add an "autorun.inf" file to the root of your USB-drive. As simple example of this file;
[autorun]
open=myexecutable.exe
icon=someicon.ico
For a list of all options look here[^]. If you wants an editor, look here[^].
I are troll
|
|
|
|
|
Hii,
After searching on for auto update feature to suit my needs/project, i started developing my own auto update feature.
This application basically compares the version of my file and any difference in it, it will download the newest version of that file.
Now problem is , i want to fire or start an .exe application/my main application whenever i find that there is no version update . And close auto update application before starting my different application .
I tried out using system.process.Diagnostic.Process method
But didnt succeeded.
Can anyone show me how i can open different application from my current application and close the current application before starting different application.
Aspiring Techie,
Vishnu Nath
|
|
|
|
|
Proces.Start is the easiest way to start a program.
Vishnu Nath wrote: But didnt succeeded.
Did you get an error? If so, what was the message? Can you post the code you used?
I are troll
|
|
|
|
|
Now i have changed the way i used the code.
Now i use my process.start code in Program.cs file.
But it is behaving in a different manner.
static void Main()
{
string appPath = applicationPath();
try
{
if (checkInternetConnection() == true)
{
if (setXML() == true)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Update());
}
else
{
Process.Start(appPath);
}
}
else
{
Process.Start(appPath);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
Process.Start(appPath);
}
appPath is the path of main application retrieved from applicationPath() method.
and setXml() is a method returning boolean value.
Now if update is available.
the application will fire Update Form else it will start my main app.
But instead the application runs , but its control and text are not visible.
When Update Form runs, Form is blank without any controls in it.
I m unable to understand what happens that my controls and heading form becomes invisible during runtime.
Can u sort out the problem?
Aspiring Techie,
Vishnu Nath
|
|
|
|
|
I can't see any reason here why the Update-form would hide it's controls, unless there's some kind of weird exception.
I wouldn't change the Program.cs, instead, I would have put the Process.Start code somewhere in the Update-form. Perhaps that any of the other members see a potential source of the error?
I are troll
|
|
|
|
|
Since i want either of the form to open. i.e either Update form if update is available or else my main app if there is no update.
Hence i chose it to include process.start code in program.cs file.
Aspiring Techie,
Vishnu Nath
|
|
|
|
|
Vishnu Nath wrote: Since i want either of the form to open.
The check might take a while, depending on connectivity. I'd still recommend showing a form with a message "Hold on, checking for new cool stuff!".
Alternatively, this worked for me;
Program.cs
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (true) <- perform update check here :)
{
System.Diagnostics.Process.Start("Calc.exe");
}
else
{
Application.Run(new Form1());
}
}
I are troll
|
|
|
|
|
Eddy Vluggen wrote: Update-form would hide it's controls
i got my mistake, i got the reason why Update form hided its control.
Its because by mistake i commented out the InitializeComponent() method in Update's constructor, that led to hiding of the controls in the form.
Aspiring Techie,
Vishnu Nath
|
|
|
|
|
we have done one project in windows application.we want give our software project to our clients.Now our problem is we have give Authentication premission four system or five system.
eg; we are giving software to one client,but they are taking our software for four or five system.
How to resit for four or five system .
thank's in adv
lavan
|
|
|
|
|
Hello All,
Ive got a difficulty regarding opening files in their respective editors...I have to develop an application where I need to say open a pdf file in AcrobatReader,doc file in Word,image in image editor...
Please do let me know if ne1 has solution to this....atleast reference to what i can do to solve this...
|
|
|
|
|
Each file-extension has a binding to a program that is used to open them. That's how the Windows Explorer knows that it should start "WordPad" for ".doc" files if you don't have Microsfot Word installed. Once Word is installed, it will use Word, as this gets associated with the file-extension during the installation.
If you just want to "open" the file with the correct editor, then you can simply use "Proces.Start" to start the document - it will open the document with whatever editor the user has associated with the file-extension.
If you want to display the editor-name in, say, a listbox, you'll have to dig deeper.
I are troll
|
|
|
|
|
bhagyashri.biyani wrote: I have to develop an application where I need to say open a pdf file in AcrobatReader,doc file in Word,image in image editor
Why do you have to develop that app when Windows Explorer already does that and comes free with Windows OS?
|
|
|
|
|
i need validations for textbox in my windows form .
pls help.
Swap
|
|
|
|
|
You will need to write your own code in the Validating event.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
|
Hi there,
I'm using the .NET 2.0 WebBrowser control in a windows form app, running on XP SP2.
Some of my users are getting the classic 'Access Denied' security exception when dropping into the Document_Completed event handler. I think the exception is happening when trying to access the .Document object of the WebBrowser control.
I know there are issues with frames, and cross domain requests using the WebBrowser control, but the website I'm hitting doesn't use frames and is on the local intranet. When the users try accessing the URL in a normal IE window, it loads fine. Must be something to do with the .Document object and user permissions?
The kicker is that some users are working fine on XP SP2, so I'm thinking it's permissions, any ideas?
Much appreciated,
thanks.
|
|
|
|
|
Hi,
scootrobertson wrote: Access Denied' security exception when dropping into the Document_Completed event handler
Don't stare at Exception.Message; instead look at the line numbers when you investigate Exception.ToString() and teach your IDE to always show line numbers (Visual Studio: Tools/Options/TextEditor/AllLanguages...), that way you will know exactly what line throws it.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I've solved this now, and here's how I did it, if anyone else has similar issues...
I just added the following code to the OnLoad of the form, after the Navigate() call:
while (wbs.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
I also stopped initialising the browser control with 'about:blank', instead just navigating straight to my target page without going to 'about:blank' first.
I think what was happening is the DocumentCompleted handler was trying to access the wbs.Document property before it was initialised, if thats possible(!), and throwing an error. Weird thing was, this was just happening on some user's PCs, and not others.
Anyway, adding the while loop and removing the load of the about:blank first, seems to have fixed it.
scott.
|
|
|
|
|
hi,
i had made an windows application with a word document embedded in it.now i want to add a task pane inside the windows application.i tried this .
myUserControl1 = New UserControl1
objCustomTaskPanes = New CustomTaskPaneCollection
myCustomTaskPane = objCustomTaskPanes.Add(myUserControl1, "My Task Pane")
myCustomTaskPane.Visible = True
but this is not working ..please help
ash
|
|
|
|
|
hi i am using on windows form c# vs 2005 which i found to be very useful.
i was introduced Microsoft.Office.Interop.Excel after asking for advice in another post.
i am now trying to get the Microsoft.Office.Interop.Excel to instead of creating a new excel spreadsheet. but use an existing excel file which i drag into my workspace.
i also found
oXL.Workbooks.Open however i cant seem to be able to use it and i am not able to make it open the file in my workspace as well
anyone know how this can be done?
modified on Sunday, February 15, 2009 5:13 AM
|
|
|
|
|
neodeaths wrote: which i drag into my workspace
what do you mean by that ?
If you can state your exact difficulty someone can help you.See if this helps [^]
|
|
|
|