Removing file from Merge Module - Advanced Installer Community

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!

bonestroo
Posts: 1
Joined: Mon Oct 11, 2010 8:40 am

Removing file from Merge Module

I am trying to remove a file (a .link file in the Startup menu) that was created by a Merge Module I use in my installer. Under 'Resources->Files and Folders', I created a File Removal Operation. However, the file removal operation is now performed before installing the Merge Module, so the end result is that the file is still there. Is there a way to control the order in which the file removal actions are performed, so that I can remove the file after the Merge Module is installed?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Removing file from Merge Module

Hi,

The file removal operation is triggered by the component to which you attach it, so here is what you can try:
-- attach the file removal to a component that contains a single file, for example EXE or DLL
-- add the merge module
-- build the MSI
-- now use Orca to open the MSI and go to File table
-- locate the file associated with the component attached to the removal operation
-- edit the sequence column so the file has the greatest sequence from the table
-- save and test the package

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”