In Install Parameters -> Properties I've got ADDINS_DIR = c:\program files\
During the course of setup the user specifies: PROGRAM_DIR = c:\program files\MyApp
After the user specifies the program directory I append the following: ADDINS_DIR = c:\program files\MyApp\AddIns
- This happens during the InstallExecuteSequence -> FindRelatedProducts -> Custom Action Properties. Property: ADDINS_DIR Formatted Text: [PROGRAM_DIR]\AddIns
myDll.Dll gets place into the c:\program files\AddIns directory instead of c:\program files\MyApp\AddIns directory along with all the other files.
- - - - - - - - - -
Additionally myDll.Dll is different based on other criteria (same filename but different versions). I have the second copy in a subdirectory that has "Install folder content into the parent folder"
The two versions of myDll.Dll are in two different Features that I use as appropriate to get the version I want. Like this:
Session.FeatureRequestState("DW32") = msiInstallStateAbsent
Session.FeatureRequestState("DW33") = msiInstallStateLocal
The problem is when I try to install the version located in the "Install folder content into the parent folder" subdirectory. The "parent folder" it gets dropped into is: c:\program files\ and not c:\program files\MyApp\AddIns. Interestingly all the other files correctly go into the c:\program files\MyApp\AddIns directory and not c:\program files\AddIns.
How can I bake the path in the UI phase so it gets installed correctly in the Install phase?
Thanks
FOLLOW US
Get the latest news in Application Packaging