dave6237
Posts: 6
Joined: Wed Dec 07, 2011 11:26 pm

PATH variabe Prepend problems

I am writing my first AI project. I am creating a subfolder under the main installation folder as part of the install. I want to add this new folder in to existing system PATH variable. I want to add it at the front (i.e. Prepend) to ensure it comes before left over installation folders from previous versions.

I am seeing two problems.

1. I go to the Environment section of the install and add a shange for the PATH variable. I select that it is a system variable and that the new value should be Prepended to the existing value. However, if I move to another area of the project (or close and re-open the project) and then go back to look at the properties of this Environment variable action, the properties dialog for this action has changes to "Append." I cannot get this item to stick at Prepend.

2. When run this install (after ensuring that the PATH property change action is set to Prepend) I find that the value was added at both ends of the existing PATH variable value. I.e., it seemd to both Prepend and Append the new value. If I uninstall my product, the value at the end of the PATH does not get removed. If I run the install again, I now have the folder at the beginning of PATH and *TWICE* at the end.

What am I doung wrong?

Thank you.

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

Re: PATH variabe Prepend problems

Hi Dave and welcome to Advanced Installer forums,

This behavior seems to be caused by a bug in Advanced Installer. Thank you for bringing it to our attention.

I have discussed with the development team and they begun their investigation. Hopefully the fix will be included in 8.8 release which should be by the end of this year.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dave6237
Posts: 6
Joined: Wed Dec 07, 2011 11:26 pm

Re: PATH variabe Prepend problems

We are now running 8.8.1 of Advanced Installer and are still seing this problem. Is the fix supposed to be in this version?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: PATH variabe Prepend problems

Hello,

I have tested the issue with version 8.8.1 and "Prepend" behavior setting seems to be saved accordingly in the Environment page for "Path" environment variable.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dave6237
Posts: 6
Joined: Wed Dec 07, 2011 11:26 pm

Re: PATH variabe Prepend problems

I apologize for the false alarm. We had another problem with PATH that I thought was being caused by this issue. It turns out that the other problem is coming from a third praty product that gets installed by our product.

This issue with Advanced Installer is fixed, as far as I can tell.

Thank you for your support.

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

Re: PATH variabe Prepend problems

No problem and you're welcome, Dave.
Abbas
Posts: 15
Joined: Fri Dec 06, 2013 6:21 am

Re: PATH variabe Prepend problems

Hi,

I am using Advanced Installer 11.1 to create my installer project. I want to PREPEND my application folder to the existing system PATH variable to ensure it comes before left over installation folders from previous versions. But despite the fact that I have set the "When Existing" behaviour to "Prepend", I still get the application folder appended to my path.

Do I need to do anything more than setting the "When Existing" behaviour?

Thanks,
Abbas
dave@lexis
Posts: 2
Joined: Thu Oct 10, 2013 4:16 am

Re: PATH variabe Prepend problems

Abbas,

As you can see from this message thread, we have been using AI since version 8. We are currently using version 11.0. In that version, I am not seeing this option that you refer to as "when existing." Either it is new if V11.1 or I am not familiar with that option. Possibly this was named "Create only if it doesn't exist" in version 11.0.

We have been using the option "Create or update" for a few years now, and that seems to work for us. I have heard no complaints about our application's path segment being added multiple times. Is this the problem that you are seeing - the new PATH segment is added multiple times across multiple runs of the installation?

Dave
Abbas
Posts: 15
Joined: Fri Dec 06, 2013 6:21 am

Re: PATH variabe Prepend problems

Hi Dave,

Please see the attached screenshot which shows the "When Existing" Behavior option in the Advanced Installer 11.1. And I'm pretty sure that this is not new to 11.1 as I remember that in version 11.0 as well.

My problem is not what you described. It's a simple problem: I want to prepend a value to the "path" environment variable, but it gets appended.

Thanks,
Abbas
Attachments
AI_Prepend.png
AI_Prepend.png (71.84 KiB) Viewed 7461 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: PATH variabe Prepend problems

Hello Abbas,

I've tested your scenario using version 11.1 of Advanced Installer, but I cannot replicate the behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Also, as a side note, I've observed that you have unchecked the "System variable" check box for your "Path" variable. Please keep in mind that in this case the "Path" variable will be installed as an user variable, instead of as a system variable.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”