I would like to know if the directory exists in the user installation location selected by the user in the GUI. I tried the following:
<Property Id="DIRECTORY_PATH"> <DirectorySearch Id="DirectorySearch" Path="[INSTALLDIR]\MyDirectory" /> </Property>
But this does not work, because DirectorySearch occurs during AppSearch. Although INSTALLDIR is installed later during InstallDirDlg. Because INSTALLDIR is not set for AppSearch, DIRECTORY_PATH is not set correctly to "\ MyDirectory".
I tried to change when AppSearch happens with InstallUISequence and InstallExecuteSequence installation, but this will only let AppSearch exit before CostInitialize, no later.
So, how do I look for a directory in the user-selected INSTALLDIR location?
source share