Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am reading microsoft documentation for Windows Installer. I am reading the topic "An Installation Example", in which i got an example specifying directory structure as given below

Directory	        Directory_Parent	DefaultDir

TARGETDIR		                        SourceDir
ProgramFilesFolder	TARGETDIR	        .

.................
.................
end of table


Now as far as I understood is that TARGETDIR is location where application will be
installed and it can be changed during installation using a User Interface. And the ProgramFilesFolder is a property that points to program files folder of the system.
But what does it mean by TARGETDIR is the parent of ProgramFilesFolder property? That entry makes the directory structure illogical.

Please, guide me in this confusion.

What I have tried:

I have googled the Windows Installer directory structure but could not find any thing meaningful.
Posted
Updated 1-May-19 23:11pm

TARGETDIR is a constant which is needed to provided by the setup. It will be used to compute the installation directory and system settings like registry keys.

Meta-Code:
C++
String app_installation_directory = ProgramFilesFolder* + TARGETDIR
*system variable of the target machine
 
Share this answer
 
Comments
irfankhan200 2-May-19 6:48am    
please give me some example in detail
Not sure what you're reading, but i don't think it means that. The target dir is typically a child of the program files folder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900