Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 03 12:46 am)
Or just search through all directories (with FindFirst) for poser.exe; if you find more than one, ask the user which one to use for this purpose.
My python page
My ShareCG freebies
Don't forget that some people have multiple installations of Poser (Poser 3, Poser 4, Poser 5) for testing and such. You may not be able to determine which is the correct one to install to without asking the user. Perhaps you need something like the DAZ installers that list all your Poser installations, and ask which one you want to install to. I suspect they do this by scanning your directories for "Poser.exe"; I think that's why they take so long sometimes. I suspect Jcleaver's approach of just asking once would be fine. You might need an option, though, that says "Ask me again," in case you want to install to another directory. Lynn Grant Castle Development Group
Browse your own registry, find the key .pz3 under HKEY_CLASSES_ROOT. It's "Default" data points to some other key. That is the key you need to use to identify which program will open up when clicking on a pz3 file. Find it (probably called poserFile or something like that) It should have a few sub-keys Shell->Open->Command . Command has, as it's default value, the fully qualified program and any default arguments that are called. As stated above, there are those who have multiple installations. This solution only finds that one that opens up when you double click a 'Poser File'. One additional word of concern. Thanks to user levels (something I actually agree with windows 2000 & XP), you might not have permission to do much with these keys (though you should be able to read them....I would hope). Visual C++ should enable you to get there, but I have never stepped outside of a programs own allocated registry space in VB, so I can't guarantee anything for VB.) Does this make any sense? (I tend to ramble :) eric
Yes...very important for those of us whose primary drive is not C:. The DAZ installers seem to check all the drives. The down side is that they take forever to do so if you have large drives. An option that says "Use the same path you used last time" or "Let me just tell you what path to use" would be nice. And I agree...letting the user OK the final choice is a must.
Yes...very important for those of us whose primary drive is not C:. The DAZ installers seem to check all the drives. The down side is that they take forever to do so if you have large drives. An option that says "Use the same path you used last time" or "Let me just tell you what path to use" would be nice. And I agree...letting the user OK the final choice is a must.
You should be able to get it using win32 API calls. I Don't have access to sdk info at the moment (I'm home now), ut I imagine borland offers some documentation on how to access those dlls. By the way, the registry key in question is: HKEY_CLASSES_ROOTpz3file It will reflect the installation which is invoked when a user opens (via dbl click or context menu) a pz3 file. I've often wondered why all the tools require you to show them where it is installed (even vue4 does this). I guess it has to do with multiple installations. If you do use the registry for this info, you probably should allow the user to over-ride that location, in case they do use different runtime directories for different projects. eric
I dont use borland, so a step by step I cant provide..however, I can offer you some tips poser does not require itself to be in the registry for it to run. I have it on my e drive, and have many times reformatted the c drive. Poser still runs flawlessly, even tho its not registered. my suggestion would be to allow the user the options: let the program search for poser (by looking at the registry) if it fails to find it..ask the user about a recursive search of the entire computer, or give them the option to find poser themselves and give them the 'find it themselves' option right up front. This would cover all bases. as for a good way to find info, when I write code..I use the internet and simply search for what Im interested in. There is so much info on programming on the web that you can do anything. Perhaps a search for "borland programming and reading the windows registry" or something similar. luck BT
ASK the user where to put the files. Under Poser5 my "Runtime" isn;t even int he same folder as poser.exe... and in Poser4 I at times have had multiple installations. I have 3 local drives and 6 network connected shares.... if you try and "search" them for Poser I will end your task and never touch it again... I promise :) If you want to "search" to help people who don;t know, make sure you ask me first.
My suggestion would be (aren't you tired of all of these ideas :) Poll the registry (a quick and easy solution. Brycetech is correct. Look especially in the VB sections of the web. Lots of shared code there, even though you will have to modify it for C++) Also provide the option to search or let the user make the selection via text box and directory search (like the common dialogs allow) this should be available even if you find the entry in the registry. For a few months, I had installed poser on an ntfs partition, to see if it would perform better. The registry pointed to that section, but I was too lazy to move all the other stuff, so I eventually changed it and deleted the other installation. I have 5 or 6 partitions (more if you count 3-4 linux ones, but windows can't see those :)), and a DAZ installation takes many (5-10?) minutes to scoure my machine's contents. I much prefer telling the installation where to put stuff (though I prefer them to make a suggestion in order to minimize my typing) eric
Eric (and others) You know..if you click cancel when the DAZ installer is searching, it comes up with a blank field in wich you can browse to your Poser directory. Easy and much faster than having it searching a huge drive. It takes forever to search thru a couple of 80Gb drives, trust me... :o)
FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
Using Poser since 2002. Currently at Version 11.1 - Win 10.
The quick solution is to ask. I have 3 versions of Poser on my machine, and actually use them all. You can check the registry, but that can give an error on a multple registration, or you could search the drives for "poser.exe", but that's darn time consuming. If you use ernyoka1's idea, tell then up front you can cancel and do a manual search. With most software, checking the registry is the best idea, but with so many people running multiple versions of Poser, I'd do the manual method. Besides, it cuts down on your programming time.
Attached Link: http://www.wotsit.org/search.asp?page=2&s=windows
For an offbeat method, assuming Poser in in the programs menu: 1. Grab the Windows drive using the api GetWindowsDirectory. 2. Search in Documents and SettingsAll UsersStart MenuProgramsCurious labsPoser 4 for Poser 4.lnk Or the Poser 5 equivalents 3. Use the IShellLink (see "lnk" in link provided) interface to get the location of Poser.exe from the shortcut. Only takes a second, but I'm not sure of the location of the programs shortcuts in Win98 or XP, I'm using Win2K. This assumes, of course that they installed in the standard Curious LabsPoser... directory structure."Democracy is a pathetic belief in the collective wisdom of individual ignorance." - H. L. Mencken
Yeah, I was afraid the locations would vary, though I imagine most folks use the standard CL folder. The SHGetSpecialFolderLocation api call will get you the programs folder but you'd have to search from there to find the Poser shortcut(s) - still faster than searching the entire system. Ultimately, manual location is the only "foolproof" way of getting the correct reference but a fast way to present the most likely candidates is nice to have. Of course, someone won't have it on the menu, someone else will have the shortcut renamed for some perverse reason, etc. Makes life interesting :-)
"Democracy is a pathetic belief in the collective wisdom of individual ignorance." - H. L. Mencken
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I am writing a PC program that makes a sort of Poser model. That program will create the model's .OBJ and .CR2 files. Please how could that program, by looking in the registry, or in some other way, find what folder that computer's user has put his Poser installation in? (I put my Poser installation in c:Poser4 )