Page 1 of 1

"Run program as" environment parameter issue

Posted: Mon Jan 09, 2017 11:14 am
by Damien
I can't make "Run program as" work with environment parameter.

I have tested it with custom exe, batch file, with a single parameter, with getting all environment variables (as documentation says), no way to make it work.
Nothing append when using Environment setting in "Run Program As" configuration window.
Same code works when I remove this parameter.

This is the simpliest sample which should work:

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{93210668-AF77-4757-B381-09F17FDBAE03}~
~Result~
~code: $Result$~
~0~
~1~
~~
~Run Program As~
~{AC0B4AA3-A111-427B-A42B-E98A686E956D}~
~cmd.exe~
~~
~/k echo myVar value: %myVar%~
~0~
~~
~~
~~
~Result~
~TRUE~
~myVar=aValue~
~Set Variable~
~{45B0388D-B4BD-42C7-ACFF-9D373D6E3C48}~
~result$MYAH$MYAH$FALSE~
~~


Nothing append and exit code is -11.

A thread talk about his, but the question was "detourned" and still no response :| viewtopic.php?f=2&t=10343&p=39112&hilit=run+program+as+environment#p39112

Re: "Run program as" environment parameter issue

Posted: Mon Jan 09, 2017 1:18 pm
by FrancescoT
Dear Damien,

I have reported the problem to our dev team ...for now I cannot anticipate so much about this.

Regards

Re: "Run program as" environment parameter issue

Posted: Wed Jan 11, 2017 5:25 am
by Damien
Thanks a lot!

Re: "Run program as" environment parameter issue

Posted: Fri Jan 20, 2017 9:05 am
by Damien
Hi Francesco,
Is there some news?
Should I try to find a workaround?
This feature can be really helpful for my case:
As environment variables are not really accessible unless finishing installation and leaving IA, I want to use it to send new environment variable to a program I want to run.

Thanks.

Re: "Run program as" environment parameter issue

Posted: Fri Jan 20, 2017 2:17 pm
by FrancescoT
Dear Damien,

unfortunately there are no updates on this.

Regards