We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BCh
Posts: 63
Joined: Wed Jan 17, 2007 6:32 am
Location: Australia

Where to place custom action to copy files

Have install process that needs to cater for three options:
1) Install c:\App
2) Upgrade from c:\App
3) Install from c:\App and copy files from c:\Program Files\Company\App

Have created a file Search that looks for version of pre-install application file and users these values int custom actions. I then call a different custom action depending on the search values.

Options (1) and (2) works OK and while I can get (3) to install OK I cannot copy files from C:\Program FIles\Comapny\App to new c:\App.
The vbscript I have created works (or says it does by giving Message Box which I have placed in the script but the files are copied over by the install process. Script works OK if I run it manually from windows,

I have tried a custom action on InstallFinalize and Commit and Install under InstallExecuteSequence.

Where can I place this script so the files are copied after the install process. I also have a program which runs under InstallFinalize no problems.

Thanks
Brian
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Where to place custom action to copy files

Hi Brian,

The custom action can be placed under "Install". However, make sure it runs as "Deferred with no impersonation". This is required in order to run with full Administrator privileges.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”