invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Files Not Getting Copied to Correct Location(s)

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
Daniel
Posts: 8281
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Files Not Getting Copied to Correct Location(s)

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”