Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / testers needed

Author
Message
Silverman
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 2nd Aug 2009 13:36 Edited at: 4th Aug 2009 11:12
Hi all,

can you tell me if this code returns the correct path on your PC ?




AMD Athlon(tm)XP 3200+ (2.2GHz) / DDR pc3200 (1024Mo) / Nvidia 6800GT (driver 178.24 WHQL)/ XP Pro SP3 / DirectX 9.0c (march 2008)/ DBClassic v1.13 / DBPro v7.1
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2009 14:54
Quote: "Runtime Warning at line 34. File does not exist at line 34."


What is it supposed to do?

TheComet


Make the path of your enemies easier with Waypoint Pro!
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 2nd Aug 2009 15:51 Edited at: 2nd Aug 2009 15:52
Quote: ""HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall3D Games Creator""

The problem is that the product name "3D Games Creator" is only used in France, so unless the user has the French version installed on their system, this registry key will most probably not exist.



Quote: "What is it supposed to do?"

This is supposed to find the install folders of DBC and DBP.

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 2nd Aug 2009 16:07
I know this doesn't work but still i'm paraniod why is it

Windows\CurrentVersion\Uninstall\

that says uninstall?? i might be dumb in not knowing what it is but i don't like to run programs that do things with folders that say "Uninstall" lol

New Site! Check it out \/
Silverman
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 2nd Aug 2009 16:23 Edited at: 4th Aug 2009 11:15
thank you for the feedback!


Quote: "Runtime Warning at line 34. File does not exist at line 34."

TheComet : May be that access to your regitry is blocked by your firewall or windows.


Quote: "This is supposed to find the install folders of DBC and DBP."

empty : You are quite right.


I thought everyone had the same product name ... what is your product name ?


Quote: "Folder_Name$="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\3D Games Creator"
"

is the only key that I found to find the installation directory of DBClassic.

AMD Athlon(tm)XP 3200+ (2.2GHz) / DDR pc3200 (1024Mo) / Nvidia 6800GT (driver 178.24 WHQL)/ XP Pro SP3 / DirectX 9.0c (march 2008)/ DBClassic v1.13 / DBPro v7.1
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 2nd Aug 2009 16:32
Quote: "May be that access to your regitry is blocked by your firewall or windows."

I think it doesn't create a file because they registry folder does not exist.


Quote: "what is your product name ?"

I've copied my DBC folder to each new computer I got over the time and therefore haven't run the installer for ages. So no reg key at all .

BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 3rd Aug 2009 00:20
Quote: "I've copied my DBC folder to each new computer I got over the time and therefore haven't run the installer for ages. So no reg key at all ."


I did the same thing, mostly cause I lost the cd and lost my computer to a virus. Fortunately, I had DBC installed on another computer and was able to bring it back onto my re-formatted pc again.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Aug 2009 04:38
DB is always on my E: drive, and never seems to need installing when I format C:.

empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 3rd Aug 2009 15:21
@Silverman
It works for DBPro here. BTW, this forum likes to eat backslashes once you've edited your message, so the code in your first post will not work at all anymore.

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Aug 2009 01:05
For dbp it the default install is:

C:/Program Files/The Game Creators/Dark Basic Pro/

i am pretty sure, and the DBC default install path is:

C:/Program Files/Dark Basic Software/Dark Basic/

Those are the install paths.

New Site! Check it out \/
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Aug 2009 01:57
@Silverman

Instead of querying the registry, you can can check and return the path to the running exe (the module in the process list) through the kernel32 dll.

The return path will be from the application that made the inquiry, in this case, it should be from the DB executable:



Enjoy your day.
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 4th Aug 2009 02:18
I believe he wants to get the path of the actual DarkBASIC installation.

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Aug 2009 03:02 Edited at: 4th Aug 2009 03:02
Ah, I see.

Enjoy your day.
Silverman
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 4th Aug 2009 11:13 Edited at: 4th Aug 2009 11:18
Quote: "this forum likes to eat backslashes once you've edited your message"

sorry, I did not know. I rewrote my post.

thanks all!

AMD Athlon(tm)XP 3200+ (2.2GHz) / DDR pc3200 (1024Mo) / Nvidia 6800GT (driver 178.24 WHQL)/ XP Pro SP3 / DirectX 9.0c (march 2008)/ DBClassic v1.13 / DBPro v7.1

Login to post a reply

Server time is: 2024-05-20 08:52:13
Your offset time is: 2024-05-20 08:52:13