Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: System Specs from Opus
PostPosted: September 25th, 2005, 1:30 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Hello,

I want to display the users system settings from within a Opus 05 publication the main items I want to display are:

DirectX Version
Adobe Reader Version
MDAC Version
Windows Version

How is it possible to check and display these variables from within an Opus publication.



Joe


Top
 Profile  
 
 Post subject:
PostPosted: September 25th, 2005, 4:19 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
MDACVer = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\MDACVer.Version\\CurVer","")
DXVer = String.right(ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\DirectX","Version"),10)
OSVer = SYSTEM_OPERATING_SYS

As for Acrobat reader, can't help you there.

HTH
Chris

_________________
Opus Resources and Services


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 25th, 2005, 6:59 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Joe,
you might want to check out the following page:

viewtopic.php?t=719&highlight=windows+system

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 28th, 2005, 2:36 pm 
Offline

Joined: April 21st, 2005, 4:47 pm
Posts: 43
Location: Southampton, UK
Detecting Adobe reader isn't entirely straightforward, as they have changed their pathing etc over the years. Also, upgrades from earlier versions have in my experience left various older files and reg settings, which is why the following code loops in descending order:

Code:
for (i=7;i>3; i--)   
{
  strPath = SYSTEM_PROGRAMS_DIR + "\\Adobe\\Acrobat " + i.toString()+".0\\Reader\\AcroRd32.exe"
  strFile = OpenFile(strPath,false,true)
  if (strFile != null)
  {
     <do something, return i> ....
  }
}

There are various other checks but that one seems to be the simplest and has so far been reliable.

Bear in mind that a .pdf created by a certain versions of Acrobat Distiller (or similar) can be - and usually is - created to be readable by lower versions of reader, back to 4 (1999 vintage). However this isn't guaranteed! Plus there are many third-party readers around, so particularly if your app is for external use, it's worth putting up a caution rather than immediately stopping users from accessing .pdf documents.

Linnet

_________________
A crack on the head / Is what you get for not asking
And a crack on the head / Is what you get for asking

Barbarism Begins At Home, The Smiths


Top
 Profile  
 
 Post subject:
PostPosted: September 30th, 2005, 4:11 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Excellent, thanks for for your help everyone. The script works great.

Joe


Top
 Profile  
 
 Post subject:
PostPosted: October 16th, 2007, 3:44 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Is there any way to get the service pack that is installed. Want to be able to check service pack for Windows 2000, XP and Vista (come Jan/Feb 08).

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: October 16th, 2007, 3:51 pm 
Offline

Joined: April 21st, 2005, 4:47 pm
Posts: 43
Location: Southampton, UK
Try something like this - works with 2000, XP, 2003, not tried Vista:

Code:
OS_SERVICE_PACK = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CSDVersion")


HTH
Linnet

_________________
A crack on the head / Is what you get for not asking
And a crack on the head / Is what you get for asking

Barbarism Begins At Home, The Smiths


Top
 Profile  
 
 Post subject:
PostPosted: October 16th, 2007, 10:03 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Does not work with Vista, although since Microsoft has not released Vista SP1 yet it might in the future.

To get Edition of Vista use the following:
Code:
OS_VISTA_EDITION = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "EditionID");


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group