Results 1 to 19 of 19

Thread: Removing File Associations

  1. #1

    Post Removing File Associations

    Hullo,
    Recently, as some of you guys may know, I bought a new Vista based PC with the Home Edition of Office 2007. Most unfortunately, this edition didn't come with a copy of Publisher, so, when I did transfer my files from my old PC to my new PC, I found myself with a set of ".pub" files which I couldn't open.

    Today, I decided to perform a test upon some of these mentioned files, to see if Word had the capacity to use them. When I tried this, I just received a load of random symbols and letters, and the files didn't open correctly.

    Most unfortunately, doing this lead to a few problems with file extensions - all ".pub" files now automatically, and by default, open in Word. In addition, there seems no way of removing the association without assigning it to an entirely different program.

    So, to conclude I am trying to find a way of removing the file's association from any program whatsoever - simply restoring it to its former unknown and disassociated status.

    All help appreciated, thanks!
    Last edited by Omanes Alexandrapolites; 10-05-2007 at 21:15.
    Dawn is nature's way of telling you to go back to bed

  2. #2
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Removing File Associations

    This works in XP, and I'm figuring it will work in Vista as well.

    Open a file window. Any file window. Heck, just double-click on My Computer to get in gear.

    Now go to Tools / Folder Options / File Types

    What you're seeing now is a list of file associations. You should be able to delete the association with "pub" from here.

  3. #3

    Post Re: Removing File Associations

    Thanks for the help Lemur, but I can't seem to find the area. Although I managed to get into folder options, there doesn't seem to be a tab for changing file associations - I just received these choices:


    Last edited by Omanes Alexandrapolites; 10-06-2007 at 15:39.
    Dawn is nature's way of telling you to go back to bed

  4. #4

    Default Re: Removing File Associations

    Omanes,

    To quickly fix this go to start, run and enter:
    Code:
    cmd
    Next in the console enter:
    Code:
    assoc .pub=
    This will remove the association.

    Last edited by caravel; 10-05-2007 at 21:45.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  5. #5

    Default Re: Removing File Associations

    Omanes: that option probably was under the "View" tab.

    Cambyses II: command line ftw!
    Therapy helps, but screaming obscenities is cheaper.

  6. #6
    Amphibious Trebuchet Salesman Member Whacker's Avatar
    Join Date
    Nov 2006
    Location
    in ur city killin ur militias
    Posts
    2,934

    Thumbs up Re: Removing File Associations

    REAL men use the command line.

    *sheds a tear of pride*


    "Justice is the firm and continuous desire to render to everyone
    that which is his due."
    - Justinian I

  7. #7

    Post Re: Removing File Associations

    Thanks Cambyses, but that fails to work either - the association peculiarly remains intact. I may be doing something wrong though. Is this the correct method?
    Last edited by Omanes Alexandrapolites; 10-06-2007 at 14:21.
    Dawn is nature's way of telling you to go back to bed

  8. #8
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: Removing File Associations

    That looks like vista; try running cmd as an admin and doing that again (shift+right click on the program, run as administrator)
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  9. #9

    Default Re: Removing File Associations

    That should have worked, your console output is normal and does point to it working. Try doing:

    Code:
    assoc .pub
    Post the output.

    -edit: Sapi makes a good point, are you logged in as an administrator?

    -edit2: BTW you can run the group policy result tool to find out (hopefully this still works in Vista), or you can check in the control panel, users. To run gpresult do the following from the console:

    Code:
    gpresult
    Look at the bottom of the report and it will show the user groups you are a member of.

    To go down the control panel route:

    Code:
    control userpasswords
    or

    Code:
    control userpasswords2
    for the better version.
    Last edited by caravel; 10-06-2007 at 15:03.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  10. #10

    Post Re: Removing File Associations

    Quote Originally Posted by Cambyses II
    -edit: Sapi makes a good point, are you logged in as an administrator?
    Yes, although when running it didn't go through User Account Control security permissions - probably signifying that I am technically speaking running it as a standard user. I'll try running it from its location on the hard drive as an admin. Thanks sapi for bringing this up.

    -edit-
    Sadly, it still has no effect.

    When typing "assoc .pub" the console responds with the words ".pub=".


    Last edited by Omanes Alexandrapolites; 10-06-2007 at 15:25.
    Dawn is nature's way of telling you to go back to bed

  11. #11

    Default Re: Removing File Associations

    Have you tried double clicking on a .pub file since doing this?
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  12. #12

    Post Re: Removing File Associations

    Yes, although everything is the same as it was before - it opens up in Word along with a combination of strangely unreadable symbols.
    Dawn is nature's way of telling you to go back to bed

  13. #13

    Default Re: Removing File Associations

    Ok Omanes,

    Ensuring you're logged in as an administrator, let's go into the registry and try to fix it. Go to start, run and enter

    Code:
    regedit
    browse to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

    Find the key called ".pub" and subkey "openwithprogids" and click on it and provide a screenshot of the right pane. Then do the same for "openwithlist" if it exists.

    -Edit: openwithlist is probably the most relevant in your case come to think of it.
    Last edited by caravel; 10-06-2007 at 15:22.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  14. #14

    Post Re: Removing File Associations

    Selecting "openwithprogids" provides me with this:




    Opening "openwithlists" shows me this:


    Dawn is nature's way of telling you to go back to bed

  15. #15

    Default Re: Removing File Associations

    Delete the .pub key and it's contents, be careful not to delete anything else. Produce a registry backup first if in doubt.

    Next go to "HKEY_CLASSES_ROOT\.pub" and delete it - just the .pub key nothing else. (If you look at it you should see it is a "pub_auto_file".). Exit regedit when you're done and reboot.

    The next time you double click a .pub file it should ask you which program you want to open it with, you can cancel this as you don't have publisher installed.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  16. #16

    Post Re: Removing File Associations

    Thanks ever so much Cambyses, both for your patience and your assistance. It's working perfectly
    Last edited by Omanes Alexandrapolites; 10-06-2007 at 16:33.
    Dawn is nature's way of telling you to go back to bed

  17. #17
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Removing File Associations

    Now that's settled, may I ask a pressing question? Who the hell uses Microsoft Publisher?

  18. #18

    Default Re: Removing File Associations

    Quote Originally Posted by Lemur
    Now that's settled, may I ask a pressing question? Who the hell uses Microsoft Publisher?
    Those that can't afford QuarkXpress perhaps. Though of course vector programs such as Adobe Illustrator or CorelDraw can do anything better than Publisher can, that's still at a cost.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  19. #19
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Removing File Associations

    Las I checked Adobe was practically giving away InDesign, part of their bid to unseat Quark as the reigning champion. The "upgrade" version can be bought almost anywhere for under two bills, and I'm pretty sure it's loose on the definition of "upgrade."

    Anyway, I'm sure there are upstanding members of society who pay their taxes and love their pets who also use Microsoft Publisher. I just had to take a poke.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO