manishc_dbi
Posts: 7
Joined: Mon Apr 17, 2006 10:13 am

Keeping the source folder external.

Hi,

I have a folder with several sub-folders and files of size about 100MB. I want to copy it to the programs files/<companyname> folder. But I do not want my MSI to get inflated and want to keep the folder in question externally at the same location as MSI.

If I use a custom action to copy this folder, how do I get the path of where my MSI is located.
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

This topic had been discussed before on the Advanced Installer forums.
For more details please see the following post:
http://www.advancedinstaller.com/forums ... php?t=1137

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
manishc_dbi
Posts: 7
Joined: Mon Apr 17, 2006 10:13 am

Thanx Ciprian,

I found out that before getting teh SourceDir Property using the MsiGetProperty, I need to call the ResolveSource Action . Please tell me how to do so. My custom actions are in a c++ DLL.

Thanx in advance

Manish
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Manish,

The source path of the package is also stored in the [SOURCEDIR] property (different from [SourceDir]) This property is set under the "ProcessComponents" standard action and it's value is available until the installation is finished.

So if you schedule your custom action after ProcessComponents you could use this property and there would be no need the call the ResolveSource action.

Please let me know if you encounter any problems.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”