"Run program as" environment parameter issue

Got a problem you cannot solve? Try here.
Damien
Posts: 14
Joined: Wed Dec 02, 2015 10:36 am

"Run program as" environment parameter issue

Postby Damien » Mon Jan 09, 2017 11:14 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: "Run program as" environment parameter issue

Postby FrancescoT » Mon Jan 09, 2017 1:18 pm

Dear Damien,

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

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Damien
Posts: 14
Joined: Wed Dec 02, 2015 10:36 am

Re: "Run program as" environment parameter issue

Postby Damien » Wed Jan 11, 2017 5:25 am

Thanks a lot!

Damien
Posts: 14
Joined: Wed Dec 02, 2015 10:36 am

Re: "Run program as" environment parameter issue

Postby Damien » Fri Jan 20, 2017 9:05 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: "Run program as" environment parameter issue

Postby FrancescoT » Fri Jan 20, 2017 2:17 pm

Dear Damien,

unfortunately there are no updates on this.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 47 guests