Jump to content

Recommended Posts

Posted

In Windows 7:

Autoit can get windows environment variables like USERNAME

Autoit can get jpsoft tcc environment variables like tccPath

Recently in Windows 10:

Autoit can get windows environment variables like USERNAME

autoit CANNOT get jpsoft tcc environment variables like tccPath

 

testing script is;

 

Local $un = EnvGet("USERNAME")

MsgBox(0,"info", "USERNAME is: >" &$un & "<")

Local $tccp = EnvGet("tccPath")

MsgBox(0,"info", "tcc Path is: >" &$tccp  & "<")

Tested from a tcc window in windows 10:

result OK for USERNAME --> USERNAME is: >[My username]<

result NOT OK for tcc Path --> "tcc Path is:>< with nothing between ><

Tested from a tcc window in windows 7:

result OK for USERNAME --> USERNAME is: >[My username]<

result OK for tcc Path --> "tcc Path is:>C:\tcc\TCC20<

tried on 2 different computer under windows 10, same result, It used to work in windows10 ,it is still working in Windows 7, i am a bit baffled !!!

 

 

Posted
---------------------------
tcc.exe - System Error
---------------------------
The code execution cannot proceed because MFPlat.DLL was not found. Reinstalling the program may fix this problem. 
---------------------------
OK   
---------------------------

The tccPath is not there to start with. The install takes a long time and after reboot it don't even run.

55 minutes ago, Mik987 said:

i am a bit baffled !!!

Is not an AutoIt problem.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Than youArgumentum

reinstalling tcc has no impact.

installing Media Feature Pack has no impact.

restarting computer no effect.

sfc /scannow no effect

restart no effect

Posted

 

4 hours ago, Mik987 said:

Tested from a tcc window in windows 7: result OK for tcc Path --> "tcc Path is:>C:\tcc\TCC20<

I tried the free version of version 35 but I believe you're using version 20 and that may be having trouble in Win10. 

If the environment variable is all you need, you can add it yourself and solve that, if that is all that you need to solve.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

It was tcc 20 on Windows 7 but tcc 26 and tcc 31 on a windows 10 computer.

The problem is as an old c++ and java programmer I do not like hard coded.

So I am reading from a properties file containing

autoPath=<Path to autoit>

autoPgm=Autoit3_x64.exe

autoVer=3.3.18

and populate tcc variables with  a program

after that if I do set a I will see

autoPgm=Autoit3_x64

autoVer=3.3.18

then in a au3 file I do

$autoPgm = EnvGet("autoPgm")

It is very flexible if i want to test AutoVer=3.3.14

I just have to modify the properties file

so setx I believe is not helping but thanks  anyway

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...