|
Hello,
how can I access the programpath from a setupproject after or during installation?
Greetings from germany
Jerry
|
|
|
|
|
Confused with question
<l>Thanks and Regards
Sandeep
|
|
|
|
|
You mean while installing the application? Haven't the user informed the path he wanted to install the application to?
Otherwise the program itself knows its path by using this variable:
Application.StartupPath
|
|
|
|
|
Hello,
no, I must fin a third parity program installation path an wanna install there my programm, cause it needs files from this location.. how can i solve this?
greetings
|
|
|
|
|
Maybe you should take a look at WMI and what it can offer in terms of retrieving the installation path of a software installed on a machine.
|
|
|
|
|
My application is in C# and it runs on a mobile device(its a Symbol device). I want to start an exe in the '\Program Files' folder from my application. Can anyone tell me what command (line of code) to use..
I see that for playing .wav files there is 'Symbol.Audio.Controller' , is there any such thing for exe files.
|
|
|
|
|
Hello,
in the namespace "System.Diagnostics" you will find "Process" and "ProcessStartInfo" class.
Like:
using System.Diagnostics;
ProcessStartInfo PSIYourProc = new ProcessStartInfo();
StartLoader.UseShellExecute = false;
StartLoader.WorkingDirectory = @"C:\...";
StartLoader.FileName = @"C:\...\xxx.exe";
Process PYourProc = Process.Start(PSIYourProc);
//Don't forget to dispose the Process if you don't need it anymore!
All the best
Martin
|
|
|
|
|
I included 'using System.Diagnostics;' in my headers. But I see that "Process" and "ProcessStartInfo" classes are not available for me in "System.Diagnostics".
Is there something else required ?
The classes I am seeing in "System.Diagnostics" are
- ConditionalAttribute;
- Debug;
- DebuggableAttribute;
- Debugger;
- DebuggerStepThroughAttribute;
- DefaultTraceListener;
- Trace;
- TraceListener;
- TraceListenerCollection;
|
|
|
|
|
Which version of the framework and OS are you using?
|
|
|
|
|
I am using
Microsoft .NET framework 1.1 (Version 1.1.4322 SP1) on a Windows XP system
OS Version on Mobile device is 05.01.0070
|
|
|
|
|
Try to find System.Diagnostics.dll in the .Net references for the project and give a reference to the same. I think that must be your problem.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
I'm trying to have two related tables appear in one datagridview with the ability to update/insert/delete. Here is a simplified version of what the table structure looks like:
Table1: Table1_ID, Order_No
Table2: Table2_ID, Part_No, Table1_ID
I have shown in datagridview: Order_No, and Part_No
But i m unable to update/insert.
Any body have idea how update/insert operation works when data is coming from two tables.
I am using visual studio 2005 / C#
|
|
|
|
|
Hi all,
I'm stuck. Please help me.
I'm would like to be able to change the Internet Explorer Security settings/options from my own C# application. Because my browser object seems to use the settings from Internet Explorer. Not sure if they can be separate or not (meaning for the browser object in my own application to have it's own setting)? Is doable? I've heard you do it through the registry, but all the info out there is very limited and I'm new to this.
Please if you can give me a sample code at least to point me in the right direction.
I would like to be able to specifically change the ActiveX setting Enable/Disable, and the JavaScript one.
Thanks SO MUCH!
|
|
|
|
|
These are set for all instances of IE. I don't know how to set them outside of IE, but I'd hope that it's hard. I mean, that's kind of nasty, don't you think ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
HI
if got the solution please post it as i also tried but because of security issue i haven't any way to do that ..............
i heard about Axtive X control can only do that ?
Finally i have changed my solution and got the result in different way
<l>Thanks and Regards
Sandeep
|
|
|
|
|
peshkunta wrote: I would like to be able to specifically change the ActiveX setting Enable/Disable, and the JavaScript one.
You and every virus writer on the planet. This would represent a major security hole, and is not allowed from an embedded control.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Wow...that's such a simple thing and noone here know how to do it.
All the security settings are in the registry, I don't see why it would be so hard for someone who knows. I think those webBrowser objects are useless if you can't change the settings of your own browswer object, from your own app. Come on guys that's ridiculous. Can a sound programmer please answer my question.
|
|
|
|
|
peshkunta wrote: Wow...that's such a simple thing and noone here know how to do it.
I think there are many people here who know how to do it.
peshkunta wrote: All the security settings are in the registry, I don't see why it would be so hard for someone who knows.
Yes, that is easy, but access is restricted from the sandbox of an ActiveX control. For reasons that have been clearly explained to you.
peshkunta wrote: I think those webBrowser objects are useless if you can't change the settings of your own browswer object, from your own app. Come on guys that's ridiculous.
No it isn't - And you know it!
peshkunta wrote: Can a sound programmer please answer my question.
A sound programmer would refuse to answer such a question.
|
|
|
|
|
Hi. I am a beginner. I wrote a program in C# bout it doesn’t work in the other computer. What I should do? Help me.
|
|
|
|
|
Hi. Install .NET Framework on the other computer.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Make sure that "other" computer has the NET Framework installed. The new Windows Vista will already have it pre-installed so people won't need to install the NET Framework like they have to usually with older Windows versions.
|
|
|
|
|
yesterday, when I test a part of my program on my boss's computer, I have a problem similar to you. Thus, we must do two things
- Install dotnet framework 2.0, include reference of Crsytal Report as needed
- Determine whether authentication of database is right.
|
|
|
|
|
Hi all,
Greetings. I've generated dynamic link button in GridView Column. When i clicks on the link button,there is no click event takes place. instead the link button disappears. Can any one of you Give me the soultion for this issue.
Thanks in Advance
Babu
|
|
|
|
|
Where have you written the logic for linkbutton click event??
Gautham
|
|
|
|
|
I need to open an Excel file that has been stored in the Access Database using the insert Object functionality of MS Access manually.
What i am aware of is that i cant just read the field containing the Excel File into a Byte Array and pass it to the Excel object in C#,as the file is wrapped in the OLE Wrapper used by Access while inserting the file in database.
I have tried locating the Header of Excel file from the byte array and read the file from there on but it is not working.
while (true)
{
if (0xE11AB1A1E011CFD0 == BitConverter.ToUInt64(byStream, i))
break;
i++;
}
output.Write(byStream, i, byStream.Length - i-1);
byStream is a byte array into which i have read the Excel file from Database.
I am locating the Excel file header in the byte stream and am writing the byte array to a file from that location.But on opening the written file it dosent work.
Similar approach had worked in case of Images but now in this case.
Can some one please tell me as to how i can open the Excel File.
|
|
|
|