|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 6
|
Help with Locate function
Hi,
Im making an installer for a mod right now and i need to be able to search for a directory on the users PC and set that directory as the Installation Directory. Is there any way I could use the Locate function to do this |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
if you want the user to select a directory,
look for "Page directory" in NSIS Help File or !insertmacro MUI_PAGE_DIRECTORY in MUI ReadMe file if you want to search for a specific existing directory, you will need to tell us more about what you want My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2008
Posts: 6
|
I dont want the user to select it, i wanna search the users computer for a certain directory and if it exist install there, if not, quit the installation. The game must be installed for the mod to be installed
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
usually the best thing is to get the directory from the registry, under the "Uninstall" key for example
My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#5 |
|
Senior Member
|
if its a game then there should be a registry key pointing to the folder where its installed.............if u dont know where the key is located the snnop around the registry or google it
What some invent the rest enlarge |
|
|
|
|
|
#6 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
@ Vino87,
following example will search in all available HDDs for a given directory, code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2008
Posts: 6
|
Thanks
|
|
|
|
|
|
#8 |
|
Senior Member
|
Red Wine's function is quite good but u should expect the user to change the name of the folder..........i admit that not many will but it will be safer to read the location from the registry............the game's official site should have a section like this
What some invent the rest enlarge |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|