Append configurable merge module variable to path. - 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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Append configurable merge module variable to path.

Is this possible? I can append a value that is set in the merge module to the path but if I make the value configurable then it seems to overwrite the path. Obviously I can set this path in the main installer as a workaround but I would prefer the merge module to do it as it's one less thing to remember.


Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Append configurable merge module variable to path.

Hi Phil,

I'm not sure what you mean. Can you please give me an exact example of what you are trying to achieve?( maybe attach a screenshot )

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Append configurable merge module variable to path.

1. Use the Edit Environment Variable dialog to Append to the Path Variable as described in http://www.advancedinstaller.com/user-g ... ialog.html. This works when the merge module is added to a project.
2. Select the variable that you have just created, right click and select configurable/Value. This brings up the Edit Substitution Parameter Dialog as described in http://www.advancedinstaller.com/user-g ... meter.html. When the parameter is specified in the merge module properties then the existing Path environment variable is replaced by this parameter and not appended as specified.

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Append configurable merge module variable to path.

Hi Phil,

Can you please send a sample merge module along with its main project( .AIPs ) that reproduce this behavior to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Append configurable merge module variable to path.

OK! Files sent.

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Append configurable merge module variable to path.

Hi Phil,

I have looked into your projects and it seems this behavior is caused by a bug in Advanced Installer. I have notified the development team and a fix will be available in a future version of Advanced Installer.

Meanwhile, you can have the following workaround if you want to append a value to a existing environment variable:
- in your merge module project add a constant before your InstallPath parameter
- the constant value should be set to:

Code: Select all

[~];
This way when you install the main project the environment variable set from the merge module will be appended to the existing one on the target machine.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”