This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: How to execute custom action in a merge module from main module?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 08, 2009
07:22 AM
How to execute custom action in a merge module from main module?
Hi all,
I have a merge module, that copies certain files and executes a custom action. The files should be copied to a location specified by user and then, from those files, a batch file should be executed.
For copying the files to a customized location, i am using TARGETDIR as the destination for the components in the merge module. However since i cannot execute a custom action in a merge module, i am executing it from the main module. The problem is i am unable to hand over the variable TARGETDIR (that contains the user specified installation location)to the main module. It is throwing an error.
How can i retrieve the path that user has specified, in the main module?
I have a merge module, that copies certain files and executes a custom action. The files should be copied to a location specified by user and then, from those files, a batch file should be executed.
For copying the files to a customized location, i am using TARGETDIR as the destination for the components in the merge module. However since i cannot execute a custom action in a merge module, i am executing it from the main module. The problem is i am unable to hand over the variable TARGETDIR (that contains the user specified installation location)to the main module. It is throwing an error.
How can i retrieve the path that user has specified, in the main module?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 21, 2009
03:28 PM
Use the Advertised variables feature in your MergeModule.
Then when you import your merge module, you can set variables from the parent to the mm.
Then when you import your merge module, you can set variables from the parent to the mm.