|
Hi,
I would like know whether there is a possibility using Powershell we can run application with Admin credentials without elevating prompt for Admin password.
jhghjghj
|
|
|
|
|
No[^]. There is no way to prevent the UAC prompts from happening.
The user can disable them, but that is their choice. You cannot just have them disabled for your application. However you start it, powershell or not.
Simon
|
|
|
|
|
Application-level UAC control isn't going to show up until Windows 7, even then, it's not guaranteed it's going to happen. Microsoft is currently "looking into it".
|
|
|
|
|
I have a bit of hardware that has the strange requirement that all access to it must occur on the same thread that it was initialised on.
(Kind of like GUI controls do)
What I'm looking for is a way of creating a thread and then making sure that any methods that access the hardware get transferred to run on that thread.
I tried creating a thread and creating a dispatcher[^] for the thread, but as soon as the thread has no more work to do, it stops. But if I keep the thread alive by doing an idle loop and some sleeps, the methods queued on the dispatcher never get processed. Is there some way I can keep a thread idle and get it to process it's dispatcher queue when something gets added.
Or is there another class that I can use to archive this?
I could write my own, A simple list<Action> that the methods could be added to, and a thread that just loops round, executes the actions and removes them from the list.
(I don't need code samples, or urgent codez , just a few pointers if anything like this already exists in the framework, or if I should just write my own)
Simon
|
|
|
|
|
Simon Stevens wrote: that has the strange requirement that all access to it must occur on the same thread that it was initialised on.
That's not strange at all. It's basic threading 101.[^] If you intend to get involved in threading I suggest you don't take it lightly. In my experience, those that do meet with many failures. You should prefer to immerse yourself in the study of the subject. This entails much reading and research coding to get hands on experience of how things work. Then when you feel you actually understand the subject, and only then, would you attempt a production project.
led mike
|
|
|
|
|
I understand threading.
All I was wondering was if there was an existing set of classes in .net that provided the ability to queue jobs for a specific thread, or if I needed to write my own.
Simon
|
|
|
|
|
Simon Stevens wrote: I understand threading.
That is not evident in your original post.
led mike
|
|
|
|
|
My apologies, next time I post a question I'll include a link to my CV, list of achievements, and areas of knowledge.
Anyway, thanks for all the help led mike.
Simon
|
|
|
|
|
Simon Stevens wrote: if I keep the thread alive by doing an idle loop and some sleeps
Simon Stevens wrote: . Is there some way I can keep a thread idle and get it to process it's dispatcher queue
Waiting on an event works well.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks. I'll give this a try.
Simon
|
|
|
|
|
Hi,
Is “windowsbase.dll” part of any of the version of .net framework? I have googled it lot but unable to find proper answer, can anyone please tell me about that.
Thanks,
Mushq
|
|
|
|
|
It looks like .NET 3.0+ as far as I can tell.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks.
Regards,
Mushq
|
|
|
|
|
It's .NET 3.0 and above. Why would you need to reference this .DLL anyway??
|
|
|
|
|
All my WPF apps reference it
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yeah, and it's included by default when you create a new app/control/whatever. It's kind of like settings a reference to System.dll . This makes me wonder why he's looking for it, or if he understands what it is.
|
|
|
|
|
I use it in my MoXAML Power Toys add-in (in the DLL portion) because I needed access to certain WPF features in the DLL, so I had to manually add the reference to it there. The only time I could see you having to set it would be in a situation similar to this.
|
|
|
|
|
He might have just have been clueless about its purpose if he had never saw it in a project before.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Actually I am in setup team and we ship "windowsbase.dll" along with our product setup when we used to compile our project in VS 2005 using .net framework 2.0 but after shifting our product to VS 2008, framework 3.5 I got the task to find out whether that DLL is a part of .net framework 3.5, so that we should not ship that, that’s why I asked that question over here.
Thanks for the answer.
Regards,
Mushq
|
|
|
|
|
Mushq wrote: find out whether that DLL is a part of .net framework 3.5
Yes it is.
|
|
|
|
|
Thanks too.
Regards,
Mushq
|
|
|
|
|
Ahh! I little more explanation of what you were doing probably would have helped. Like someone else said, it's one of the base .DLL's for WPF support in .NET, so it was a little strange that you'd be asking about just that one.
|
|
|
|
|
Hey Guys,
I have a .net application that obviously has the .net framework as a prerequisite.
Using Visual Studio 2005 & .net Framework 2.0.
If a user has .net framework installed then I have no problem because only my application is installed.
If the user does not have the .net framework installed then he is automatically notified that .net framework must be installed.
For an untrained user this can be an alarming message.
Does anybody know of a technique in which I can show the user a custom message of my own before the .net framework installation runs?
Thanks,
Michael
mjmimmm@hotmail.com
|
|
|
|
|
mjmim wrote: Does anybody know of a technique in which I can show the user a custom message of my own before the .net framework installation runs?
I don't know. Did you have a read through some material on the subject like this?[^]
|
|
|
|
|
First of all, thank you for the great link with a huge amound of resources...
I have spent the last few hours going through them and have not found an answer to my question.
Is there anyway to control the dialogs shown throughout the clickonce installation?
Is there a way to edit the bootstap attached to the dotnetfx.exe?
Anybody have a creative idea?
|
|
|
|