SOURCEDIR not working in an exe build - Advanced Installer Community
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

SOURCEDIR not working in an exe build

I am using Advanced Installer 8.9 Professional.

I have a project with 2 builds in it - Exe Build (interactive installer) and Active Directory Build (silent GPO installer). Both installers have to copy a user-specific INI file (server.ini) from the directory in which installer is running to APPDIR. For that, I followed the steps given in http://www.advancedinstaller.com/user-g ... -file.html.

But then I face following peculiar problem: if I use SOURCEDIR, the user-specific file gets copied properly in AD build but not in Exe build! And if I use SETUPEXEDIR, copy works in Exe build but not in AD build (as expected). I cannot add multiple File Operations because the name of the user-specific file is fixed.

Does SOURCEDIR not work for Exe builds?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SOURCEDIR not working in an exe build

I'm afraid not. However the solution is quite simple as you can actually create two identical copy operations, as it is explained in this article.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

Re: SOURCEDIR not working in an exe build

Oh ok.

Thanks a lot for the solution - it worked for the problem we were trying to solve.

Regards,
- Ankur.

Return to “Common Problems”