Adding PATH results in corrupt Variable - 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!

twoersd
Posts: 3
Joined: Tue Feb 22, 2011 9:29 am

Adding PATH results in corrupt Variable

When adding a PATH Variable via Environment, the existing content is overwritten with special characters, the value is appended correct, but the hole variable by itself is corrupt...

R.
Thomas
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: Adding PATH results in corrupt Variable

Hello Thomas and welcome to Advanced Installer Forums,

Can you please give us more details regarding the platform on which you are encountering this behavior and the version of Advanced Installer you are using? Also have you tried to reproduce this issue on another clean machine?

If the problem still persist please send us the AIP project to support at advancedinstaller dot com so we can further investigate this issue.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twoersd
Posts: 3
Joined: Tue Feb 22, 2011 9:29 am

Re: Adding PATH results in corrupt Variable

;C:\Program Files\Krebis\centura\

Thats the result, tested now on two different servers, english, MUI german / english / swedish, windows server 2003 SP2, AI latest version

R.
Thomas
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: Adding PATH results in corrupt Variable

Hello,

Can you please specify what are you trying to achieve? Are you trying to create a new Environmental variable, to replace the contents or to append/prepend to an existing one ?
Also, can please send the AIP project to support at advancedinstaller dot com so we can investigate this problem?

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: Adding PATH results in corrupt Variable

Hello,

We received the project file you submitted and after a few tests we managed to pin-point the exact problem and why you are encountering the behaviour explained earlier:

-the problem lies in this registry key :

Code: Select all

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
where you defined a registry value "Path" having the following content in the Data field: "?㩃作慲汣履牏屡䥂屎┻祓瑳浥潒瑯尥祳瑳浥㈳┻祓瑳浥潒瑯㬥匥獹整剭潯╴卜獹整㍭尲扗浥䌻尺牐杯慲楆敬屳牋扥獩䍜湥畴慲". Can you please tell us, how did this registry value get there?

- When installing the package Windows Installer will overwrite the PATH environment variable with the value specified above.
- Since the above characters are not in a standard format recognized by Windows, they will be replaced with unknown characters. Next, it will append the value you specified for the PATH environment variable in the "Environment Page".

Besides the obvious fact of loosing all the information stored in the PATH variable (because of the overwrite), when uninstalling the package the PATH variable is deleted altogether since Windows Installer will delete all the registry it created. As a best practice it is recommended to manipulate Environment Variables from the "Environment" Page and not from the registry.

In order to solve your problem, delete the above mentioned key from the "Registry" Page.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twoersd
Posts: 3
Joined: Tue Feb 22, 2011 9:29 am

Re: Adding PATH results in corrupt Variable

You are right, there was an error in the imported Registry file.

Thanks in advance for your help. This rapid service is not usual today !

R.
Thomas
vishal
Posts: 1
Joined: Wed Oct 17, 2012 9:08 am

Re: Adding PATH results in corrupt Variable

I had a problem where I was performing some internal update on my system. After rebooting my machine there were sevral commands not working, reason being exactly the same as above. I checked the path variable and found it as:

PATH=???????????????????????; ........

the path variable has changed to bunch of "?" followed by a few valid entries. Most of the entries present before the reboot are missing now.

Could the reason here be as well the language settings?

If yes, in what all locations we must make sure about these language settings before we can be sure that such a problem will not occur in future?

Thanks n Regards
Vishal.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding PATH results in corrupt Variable

Hello Vishal and welcome to Advanced Installer forums,

I'm not sure why you are encountering this behavior. If the related issue is generated by an installation package created using Advanced Installer, then you should give us more details about your scenario. Also, please keep in mind that in order to clearly report an issue you can take a look on our How to report a problem for a faster resolution article.

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

Return to “Common Problems”