|
KunalChowdhury wrote: Is it possible to check from Batch (.cmd or .bat) file, whether the Silverlight plugin has been installed.
Why would you want to do this? Silverlight is meant to be installed from the web, and browsing to a page which requires an updated version will prompt the user to upgrade their version of Silverlight. If your application relies on the latest version, remember that the user will have browsed to it and it will run inside the security sandbox.
|
|
|
|
|
Pete O'Hanlon wrote: Why would you want to do this?
Actually Pete, I wanted to do some R&D on the Silverlight installation process for one of my new Article and hence I want to know whether I can do this from command prompt (i.e. from a batch file). I think, we can do this but not sure how.
Let me know, if you have any solution or any related links for the problem. Thanks for the response.
|
|
|
|
|
I would write a script to read the HKLM\SOFTWARE\Microsoft\Silverlight key in the registry.
For e.g. try this in a batch file to get the version.
ECHO OFF
REGEDIT /E %Temp%.\filename.REG "HKEY_LOCAL_MACHINE\Software\Microsoft\Silverlight\"
FOR /F "tokens=1* delims==" %%A IN ('TYPE %Temp%.\filename.REG ^| FIND "Version"') DO SET Version=%%B
SET Silverlight Version=%Version:"=%
SET Silverlight Version
DEL %Temp%.\filename.reg
PAUSE
This very simple script works for me.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hi Abhinav,
Thanks for your response. But as it depends on the Regedit, will not work on MAC or Linux. Though my requirement is only for Windows, so I will check whether it will resolve my problem.
BTW, Directly working with Regedit is not a good idea. User can hamper anything if I put it as plain text.
Again, thanks for the response. I got some basic pointers. If you have any other proper way to do this, please let me know.
|
|
|
|
|
KunalChowdhury wrote: work on MAC or Linux
Yeah true.
I was wondering - is there a way to somehow go through the plugin list for the browsers using a batch file?
Or you could modify the script to find a different way to check on MAC.....just throwing up some ideas.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
modified on Tuesday, September 21, 2010 4:54 AM
|
|
|
|
|
Hi Abhinav,
I got some idea on what I have to do. I will create a simple HTA application which will give me the silverlight version using javascript and then based on the installed version, I will be able to run the silverlight installer thru Javascript silently.
Will publish an article soon.
|
|
|
|
|
I'm not sure it will be able to install silently. At the very least, I'd expect you to get a File Download - Security Warning as the installer is an .exe on Windows.
|
|
|
|
|
Pete O'Hanlon wrote: I'm not sure it will be able to install silently. At the very least, I'd expect you to get a File Download - Security Warning as the installer is an .exe on Windows.
I am planning to package the runtime as an installable for my application (for the article). In this case, it will be able to install silently.
|
|
|
|
|
I'm confused as to why you'd need to do this. Isn't it sufficient just to be able to download and install from the Microsoft site, especially as this introduces an effective lifetime for your article - what happens when SL5 is released (are you going to update your article)?
|
|
|
|
|
Hi Pete,
Actually I am writing one article on "Silverlight OOB Application Installation from CD-ROM". I want to add support for Silverlight version checking and the installation of it too. Hence, my article will not be depended on Silverlight version. Sorry, as I didn't inform you the actual context for my R&D.
|
|
|
|
|
Okay - I look forward to seeing that article then. Sounds interesting.
|
|
|
|
|
Pete O'Hanlon wrote: Okay - I look forward to seeing that article then. Sounds interesting.
I like the concept.
He can expect a +5 from me already (if everything works ).
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Abhinav S wrote: He can expect a +5 from me already (if everything works ).
Me too.
|
|
|
|
|
|
A good article indeed.
You are getting very good at this.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
|
Excellent mate. Kunal - I'll have a word with the WPF Disciples; I really think you've got what it takes to be in the group.
|
|
|
|
|
Pete O'Hanlon wrote: Excellent mate. Kunal - I'll have a word with the WPF Disciples; I really think you've got what it takes to be in the group.
Thanks Pete.
|
|
|
|
|
|
Sorry, but your question is not very clear.
What do you mean by "change header"?.
I think you are referring to this [^] article. In this case, it might be beneficial to post your question in the messages section in the article.
BTW, this is a WPF / Silverlight forum and that article talks about ASP.Net controls.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I have a table in WPF (DataGrid).
I want her "Header" looked like in the picture. In the picture shows a table that is designed for ASP.NET.
I need to get my table DataGrid in XAML looks like this table.
|
|
|
|
|
You can do it, but it's going to take a lot of restyling the template.
|
|
|
|
|
could you please give the example or explain in more detailes, or please give the reference to articles on this topic
|
|
|
|
|
My app has 2 windows. One windows is a magnification of an area of the other. I want to draw a line that shows where on my main window the magnify window is looking at.
It's similar to the functionality of Visual Studio 2010 showing the exception window with a line that points to the line of code where the exception occurred.
Is this possible to do in WPF? As far as I can tell, a line need to be added to a single parent.
|
|
|
|
|
I think you'll find the line needs a parent control. However the line is not constrained from going outside the bounds of the parent. I am assuming this from this question
Never underestimate the power of human stupidity
RAH
|
|
|
|