[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Self installing exe for maps

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Wed Jun 18, 2025 10:48 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Apr 26, 2005 2:22 am 
Offline

Joined: Tue Nov 02, 2004 12:00 am
Posts: 773
Location: Mars
Not sure where this belongs, so sorry if it is in the wrong place.

Ok I am trying to make a self extracting/installing exe for destribution of maps. I want the installer to automatically detect the correct BF installtion directory. the windows regisrty key that holds this info is

HKEY_LOCAL_MACHINE\Software\EA Games\Battlefield 1942\GAMEDIR

How can I query the registry and make an install exe that uses the proper BF path no matter which system it's being ran on?

_________________
DCon Dev
http://desert-conflict.org



I refuse to buy more garbage from EA. 2142 has crossed the line. If you are with me, copy this into your sig too.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 3:46 am 
Offline

Joined: Sat Mar 12, 2005 12:00 am
Posts: 267
Location: Houston,Tx
u might have already tried this but just in case u havent

http://toolazy2p.com/modules.php?name=F ... 98b91a4d9d


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 4:01 am 
Offline

Joined: Tue Nov 02, 2004 12:00 am
Posts: 773
Location: Mars
I have similar programs that do that. I can set a defualt path, but that is not always the right place to install to. The above link tells you how to make a SFX archive for one specific path (the default), but if some one installs BF to another foler or dirve (like me) then the default path is no good. That is where the regkey comes in. That has my (or any path for that matter) to the BF installation. Like when you installed DC and DCF it automatically deteced the right folder to install to. I would like to do that with my map(s).

_________________
DCon Dev
http://desert-conflict.org



I refuse to buy more garbage from EA. 2142 has crossed the line. If you are with me, copy this into your sig too.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 4:18 am 
Offline

Joined: Sat Mar 12, 2005 12:00 am
Posts: 267
Location: Houston,Tx
o then i have no idea


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 4:25 am 
Offline

Joined: Tue Nov 02, 2004 12:00 am
Posts: 773
Location: Mars
that's maybe some one will,

if not being able to give the default BF path is better than nothing, cause if you changed you BF path then you will probably realize it and make the proper change anyway. Its just nice not to have to. :wink:

_________________
DCon Dev
http://desert-conflict.org



I refuse to buy more garbage from EA. 2142 has crossed the line. If you are with me, copy this into your sig too.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 4:53 am 
Offline

Joined: Mon Feb 14, 2005 12:00 am
Posts: 167
You could just add a "Browse to game folder" to the install script.
*shrug*


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 4:55 am 
Offline

Joined: Tue Nov 02, 2004 12:00 am
Posts: 773
Location: Mars
ya I have that, but a lot of people dont know where ther bf folder is (usualy the default in that case though) but I would like automatically use thier folder. Anyway I'll keep looking.

_________________
DCon Dev
http://desert-conflict.org



I refuse to buy more garbage from EA. 2142 has crossed the line. If you are with me, copy this into your sig too.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 5:25 am 
Offline

Joined: Fri Aug 20, 2004 12:00 am
Posts: 495
Location: Seattle, WA USA
Most people who move their drive letter upon installation of BF are the types to know where to install applications. Everyone else will have it in the default folder.

I understand why you would want this if it is not too hard to figure out, but I would not worry to much about it. Simply use an installer that allows the user to browse.


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 31 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

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group