Page 1 of 1 1
Topic Options
#122726 - 2004-07-13 03:03 AM File association....
bpogue99 Offline
Fresh Scripter

Registered: 2004-04-19
Posts: 15
Loc: USA
Ok, here's a weird one. I searched and didn't find anything quite relavent. I have Adobe Acrobat and Adobe Reader both installed on the network. It's a 7 server Citrix farm. The applications may be pulled from any one of the servers. Most of the users want to have Reader open when they open PDF's (which is the preferred option). A couple, maybe 1 or 2, want Acrobat to open when they open PDF's. Before I go digging I thought I'd ask, but can a script be written that triggers on the user login and manually changes the association? For example, the default is to associate the reader application to PDF's. But when use X logs in I want to manually associate PDF's to Acrobat. I think it's possible, I'm just not sure. I can search the registry in HKCU and find the PDF association for OPEN, but will this work? Is it in HKCU or HKCR? Or even HKLM? If it's in HKCR or HKLM can this work at all?

Code:
  
if @userid = "userx"
; perform PDF association to Acrobat
endif

_________________________
KiXing to the limits!

Top
#122727 - 2004-07-13 03:50 AM Re: File association....
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I found a reference at:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#122728 - 2004-07-13 03:54 AM Re: File association....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I don't get it... if you install Acrobat would it not already be associate .PDF?
And why would you have to do it by UserID?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#122729 - 2004-07-13 03:56 AM Re: File association....
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The majority want READER to open by default. A few want the full version of ACROBAT to open by default. In the Citrix farm he want to make the adjustment on the fly by group/user.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#122730 - 2004-07-13 03:57 AM Re: File association....
bpogue99 Offline
Fresh Scripter

Registered: 2004-04-19
Posts: 15
Loc: USA
Funny how truely close this article is...

http://www.brianmadden.com/content/content.asp?ID=168
_________________________
KiXing to the limits!

Top
#122731 - 2004-07-13 04:02 AM Re: File association....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Howard,
You got that MRM working or have you PMing?

{edit}
DOH! No need for an MRM.. just need to learn to read (the 1st post in particular).


Edited by Les (2004-07-13 04:04 AM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#122732 - 2004-07-13 04:05 AM Re: File association....
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Not PMing.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#122733 - 2004-07-13 10:13 AM Re: File association....
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Ok, before you begin to go down this route a word of warning.

By default Citrix has "per user associations" switched off. If you want an individual login to have different associations you must switch "per user associations" on.

Read up on this before you do it, as it will cause more problems than it fixes. The most significant problem (under MF 1.8 at least) is that it bloats the registry by an enormous amount. As the registry has a finite maximum you can quickly reach this size and end up in a lot of trouble.

Top
#122734 - 2004-07-14 04:21 PM Re: File association....
bpogue99 Offline
Fresh Scripter

Registered: 2004-04-19
Posts: 15
Loc: USA
Well, after letting it ride a couple days, I followed the instructions in the link I posted... worked great! I didn't have to enable "per user associations" or in any way modify the farm itself. Basically, install Adobe Acrobat 5 (for us we use 5, not 6 as 6 had some big problems in testing), install Acrobat Reader 6.02, use the ASSOC command to force all servers to use Reader as the default, then in the login script (using KIX32) trigger the registry modification based on group membership. The only change I had to make to this instruction was that I had to add a registry change to put "content/type" as ".pdf" in the same subkey as the one mentioned. Once I did that, webpages opened PDF's using Acrobat correctly.

Thanks for the help as always!!
_________________________
KiXing to the limits!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.066 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org