Resolving environment variables in updates config URLs - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Resolving environment variables in updates config URLs

Hi Advanced Installer Support Team,

Could you please tell me whether environment variables - like %programdata% - may be used in URL fields of update configuration files?

For example let´s check the following scenario:
1. I have a valid exe file under c:/programdata/updates/sample.exe.
2. Launching the exe is possible from command prompt by using the following command: "%programdata%\updates\sample.exe", environment variable is being resolved in this way.
3. However using the same environment variable at URL field of our update config file is complaining about "missing resource file".

This line does not work:
URL = file://%ProgramData%\Therefore\Updates\Setup.exe
while this line works:
URL = file://c:\ProgramData\Therefore\Updates\Setup.exe

Would it be possible for you to resolve potential environment variables at your side while reading the URL? This improvement is very important for us to achieve our goal!

Thanks in advance for the answer!

Regards,
Zsolt Kollarits
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Resolving environment variables in updates config URLs

Hello Zsolt,

I opened a ticket to our dev team in order to further investigate this improvement based on your suggestion. As soon as I have a conclusive answer, I'll get back to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Resolving environment variables in updates config URLs

Hi Dan,

Thank you very much for your quick response!

Regards,
Zsolt

Return to “Common Problems”