|
Hi,
Working on a VB6 application. I need to detect whether following are installed or not :
IE6
Media Player
Adobe Acrobat Reader
Shockwave / Flash Player
QuickTime Player
(and other essential plugins for IE)
I need to detect whether they are installed and whether they meet requirements (ie. specific versions).
What would be the best way to do it ? Can it be made to check these during the installation of the app ?
Thanks
Ale
|
|
|
|
|
You'll have to check for registry entries specific to each application. Each manufacturer, and even different product, can store it's version information in different ways.
For example, IE's version can be found at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer, value name: Version (REG_SZ)
Media Player will be at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Setup\Installed Versions, value name: wmp.dll(REG_BINARY)
mecracked wrote:
Can it be made to check these during the installation of the app ?
Sure, it would require that you write a custom installer to do this though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, maybe this post alerdy is on this forum, but I need easy answer to my question:
How to create easy Internet Connection (for IE)
what I mean - create a program, what will by clicking on button, open Internet Exploter and visit a website (http://www.google.com/ for example)
|
|
|
|
|
pafell wrote:
but I need easy answer to my question:
The one thing we hate around here is laziness. This has been covered in the forums many, many times. All you have to do is click on Search Comments.
But, all you need to do is use the Process and ProcessStartInfo classes to shell launch the full http:// web address to do this.
Dim startInfo As New ProcessStartInfo("http://www.yahoo.com")
startInfo.UseShellExecute = True
Process.Start( startInfo )
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there a way that i can create my own file type (like .txt,.dat,.inf) i can create something like .abc,.123 etc and which cannot be read by any text editor or other software. And can i put somekind of a lock on a file so that it cannot be deleted or moved like windows system files.
|
|
|
|
|
nitin_ten wrote:
Is there a way that i can create my own file type (like .txt,.dat,.inf) i can create something like .abc,.123
Yes. When you double-click the file, it'll launch your application just like any other file, like .TXT files opening in Notepad.
nitin_ten wrote:
which cannot be read by any text editor or other software.
No. Notepad or Wordpad can open ANY file and display whatever it can. Most of it will come out as junk, but if there is text in the file, it'll show up. You CANNOT prevent this at all!
nitin_ten wrote:
And can i put somekind of a lock on a file so that it cannot be deleted or moved like windows system files.
No. Your only recourse is to use NTFS Security to prevent unauthorized users from seeing the files in the first place. Can't see 'em, can't move/delete 'em.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What about making it a hidden file?
|
|
|
|
|
We can make them hidden but it still is not that secure but if we can make it unreadable and can put some sort of lock, that'll be great. NTFS permission can be applied only on win 2000 and above, what about 98, ME or if OS is on FAT32?
|
|
|
|
|
I see your problem... at least when hiding it, that will keep most users at bay.
You may want to create a simple encryption to slow them down some more.
How big is this file going to be?
Another solution might be to hide it, literally, where the sun don't shine. Move it to a separate folder. Bury it in the crap. Then make it hidden.
|
|
|
|
|
Yeah we can hide and encrypt but what i really want is that it should not be deleted by any other application, only when the associated application is removed then it can be removed. Till then it should not be removed.
|
|
|
|
|
Once again, the only way your going to guarantee that is NTFS security. There is simply no way to stop anything from happening to the files on any other OS. The truth is, if the user is going to mess with the files, it's his fault the application breaks and he has to deal with the consequences. There's only so much you can do to protect the user from him/her self. The same is true for hacking the data. If the users environment is open to this, it's not your fault. There is only so much you can do to protect the data. Beyond that, it's up to the user to supply an environment that is reasonably secure.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
That, Dave, falls under the Murphy's Law of "Design a system that is fool proof and only a fool will use it."
Yes, I have been in IT way too damned long.
The sad part is that in the mainframe world, this kind of security is common place. And it's nearly impossible to break. This comes from 50 years of constant development.
I wish some of those concepts would make their way down to the client/server and web based development environments.
|
|
|
|
|
I wish some of those concepts would make into WinFS, but that's never going happen either!
Security? What an interesting concept!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Someone once said, "Internet security, isn't."
That about sums up the problem.
|
|
|
|
|
Hy everyone!
I do have a macro on a quit long document (several 100 pages), which searches this document quit often before it is finished. So this could take quit long until it is done. When I do leave Word during the macro is running, I am not able to get back e.g. to have a look when it might be ready or to have a look into what is displayed in the statusbar.
I do show status informations in the status bar. I thought this would avoid Word to appear hung up because of changing the contains, but it didn't. Same problem when the screensaver starts.
What I want to do is the following: Allow to leave the Word window and reenter it at any time, as if I never left it.
Is there any chance to avoid Word to appear hung up when the macro is running and I left the window? Or do I have to wait until the macro is ready to enter the window again? Because I do want to be able to have a look at the statusbar at any time to see the status of the macro and switch windows meanwhile.
I would like to integrate this into my existing VBA for Word macro!
Thanks for any idea!
Stephan.
|
|
|
|
|
Yuo can call DoEvents() every once in a while to let Word process its WM_PAINT events. But, if your code is blocked on a long-running Search statement, this won't do you any good. If your code is blocked, your code is hung and so is Word, waiting for the statement to complete.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello everyone.
I need to write a standalone application (it cannot be a 'program' driven by MatLab or MapleSoft) that will be able to plot and allow manipulation of points in/on a sphere.
The objective is to create a spherical surface of variable size on which various points can reside, their position specified by X Y Z as follows -
X: angle of point from 'horizontal horizon'
Y: angle of point from 'vertical horizon'
Z: distance of point from the centre of the sphere
(Spherical Coordinates from MathWorld[^])
At this point in time (by the time I'm finished with this I'll probably be a Guru in Binary ), I would give myself a ~6 out of 10 in VB and somewhere very close to 0 in C/C#. Hence, I have no idea how to implement this I've looked at some articles and came to a conclusion that I may need to make use of C# matrices in order to acheive my goal.
However, I want to explore other options before I hit the books. Is there an efficient way of doing the above in VB (maybe a diffirent coordinate system?)? I'll be greatful for any advice in this area, practical or otherwise.
Thanks in advance,
Serge
|
|
|
|
|
You need to use DirectX or OpenGL to do this. I doubt you can use OpenGL in VB, but DirectX now works straight from C#/VB.NET. I've used the DirectShow interface in C#, and it was buggy as hell, but I would expect the 3D stuff to be in much better shape, because that's really what the core of DirectX is for.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I see.
Could you give me a couple of links that could be of any help?
Thanks a lot.
|
|
|
|
|
www.microsoft.com
www.google.com
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
www.microsoft.com
www.google.com
Lol - how helpful ;P
I'll start digging then.
Thanks anyway.
|
|
|
|
|
The key to surviving in this job is knowing how to do your own research! If there is some skill or technology you don't have, then it's up to you to learn it. I've survived nearly 20 years in this business soley because I'm so adept at doing my own research and learning and doing it VERY quickly.
Search engine are youre friend in this business! They are MUCH faster than going to a message board to ask the same question your going to ask Google.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi.. i'd like to ask how can i read and search the contents of a log
file from a remote computer?
i've attached a sample log file and i want to search for "warning" or
"critical error" based on the current date and time..
and i will display on a web page the next lines of it.. until it sees
a blank space right next to the time stamp. any idea how to do that in
vb.net? hope you can help me.. thanks.. what do i have to use?
here's an example from the text file:
###################################################################################################
11/27/04 17:47:14:LOG FILE: D:\ORACLE\ADMIN\log\oramon_marsprod.log LEVEL: 1 PID: 1404
###################################################################################################
11/27/04 17:47:14:************** ORAMON version: 1.0.6 (build: Jan, 28, 2003) *************
11/27/04 17:49:15:ERROR#************* MONITOR: archive_dir_space **************
11/27/04 17:49:15:ERROR#'(%PCT_FREE% >= 10 and %PCT_FREE% < 25)' (evaluated: '(15.8708639888514 >= 10 and 15.8708639888514 < 25)') is violated.
11/27/04 17:49:15:ERROR# DIR_NAME: Y:\oracle\MARS\archive
11/27/04 17:49:15:ERROR# TOTAL_BYTES: 65032785920
11/27/04 17:49:15:ERROR# FREE_BYTES: 12268359680
11/27/04 17:49:15:ERROR# PCT_FREE: 15.8708639888514
11/27/04 17:49:15:ERROR#**** Skipping mail for 'Y:\oracle\MARS\archive@1'
11/27/04 17:49:15:ERROR#***** The following mail will not be delivered
11/27/04 17:49:15:ERROR#Archive Directory: Y:\oracle\MARS\archive has low disk-space (TOTAL: 65032785920 bytes, FREE: 12268359680 bytes, 15.8708639888514 %free). Please make sure that ORABCK is running on the machine and other system files are not using an increased amount of space.
11/27/04 17:49:15:Evaluating pcond=> (15.8708639888514 < 2)
11/27/04 18:39:16:ERROR#************* MONITOR: ora_parameter **************
11/27/04 18:39:16:ERROR#'('%PARAM_NAME%' ne 'open_cursors' and %PARAM_PCT_FREE% >= 6 and %PARAM_PCT_FREE% < 21)' (evaluated: '('db_files' ne 'open_cursors' and 19 >= 6 and 19 < 21)') is violated.
11/27/04 18:39:16:ERROR# PARAM_NAME: db_files
11/27/04 18:39:16:ERROR# ID:
11/27/04 18:39:16:ERROR# PARAM_CUR_VALUE: 205
11/27/04 18:39:16:ERROR# PARAM_MAX_VALUE: 256
11/27/04 18:39:16:ERROR# PARAM_PCT_FREE: 19
11/27/04 18:39:16:ERROR#**** Skipping mail for 'db_files@1'
11/27/04 18:39:16:ERROR#***** The following mail will not be delivered
11/27/04 18:39:16:ERROR#'db_files' init.ora parameter (current: 205, max: 256) has low resource free%: 19. This is a symptom of incorrect init.ora 'db_files' parameter setting.
11/27/04 18:39:22:Mail Elapsed secs: 3659, wait secs: 900
11/27/04 18:39:22:ERROR#Sending mail to D:\ORACLE\ADMIN\oramon\alert.mail mailing list
11/27/04 18:39:22:ERROR#**** Error: bject_extent_growth:WARNING" href="mailto:marsprod@cvspwcora010n2:MARSbject_extent_growth:WARNING">marsprod@cvspwcora010n2:MARSbject_extent_growth:WARNING ERROR
11/27/04 18:39:22:AC2_PROD_8.XIE1F_LOT. object has grown from 917 to 918 extents
11/27/04 18:39:22:AC2_PROD_8.XIE3F_LOTHIST. object has grown from 2770 to 2771 extents
11/27/04 18:39:22:AC2_PROD_8.XIE1F_LOTSUBPRODUCTHIST. object has grown from 4402 to 4403 extents
11/27/04 18:39:22:AC2_PROD_8.XIE1F_ENTITYHIST. object has grown from 2576 to 2577 extents
11/27/04 18:39:22: 11/27/04 18:39:22:To learn more about this monitor go to: http://dumbo.ch.oracle/oramonsupport.asp?monitor=object_extent_growth
11/27/04 18:39:22ending mail to D:\ORACLE\ADMIN\oramon\alert.mail distribution
11/27/04 18:39:24:Mail sent
11/27/04 18:44:16:ERROR#************* MONITOR: ora_parameter **************
11/27/04 18:44:16:ERROR#'('%PARAM_NAME%' ne 'open_cursors' and %PARAM_PCT_FREE% >= 6 and %PARAM_PCT_FREE% < 21)' (evaluated: '('db_files' ne 'open_cursors' and 19 >= 6 and 19 < 21)') is violated.
11/27/04 18:44:16:ERROR# PARAM_NAME: db_files
11/27/04 18:44:16:ERROR# ID:
11/27/04 18:44:16:ERROR# PARAM_CUR_VALUE: 205
11/27/04 18:44:16:ERROR# PARAM_MAX_VALUE: 256
11/27/04 18:44:16:ERROR# PARAM_PCT_FREE: 19
11/27/04 18:44:16:ERROR#**** Skipping mail for 'db_files@1'
11/27/04 18:44:16:ERROR#***** The following mail will not be delivered
11/27/04 18:44:16:ERROR#'db_files' init.ora parameter (current: 205, max: 256) has low resource free%: 19. This is a symptom of incorrect init.ora 'db_files' parameter setting.
|
|
|
|
|
I'd imagine that you'd use regular expressions to capture the text you need.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
hi..what are regular expressions? i'd like to extract the lines between the warning or critical error and the line before the blank space after the time stamp
|
|
|
|