PDA

View Full Version : How to find out default window directory?



piyush
05-19-2004, 02:24 AM
I want to create an .exe using Install Shield.During the running of .exe I wnat to install few files in default windows folder.
Can anybody help me in this?

BugKiller
05-19-2004, 05:50 AM
Use API Function GetWinDir!

Here is an example for GetCurrentDirectory
//***********************************************
prototype kernel32.GetCurrentDirectory ( NUMBER, BYREF STRING);


STRING szP;
GetCurrentDirectory(512, szP);
//***********************************************

Hope that helps

BugKiller

BugKiller
05-19-2004, 05:52 AM
Look also the following link

http://community.installshield.com/showthread.php?s=&threadid=133774

RobertDickau
05-19-2004, 08:00 AM
The Windows platform-specific code also provides the $D(os_main) string resolver to identify the Windows directory.

BugKiller
05-19-2004, 08:08 AM
Hi Robert.

Thanks for response.

I do my first steps in Multiinstaller.
Nice to see this.

"$D(os_main) "

Can you tell me where i can find all values for this array $D?

BugKiller

RobertDickau
05-19-2004, 09:32 AM
Please see the Universal help page "Named Directories & Platform Pack Resolution" for a table of $D names and typical values.

BugKiller
05-19-2004, 09:35 AM
thanks! I have found it.