Use %ProgramFiles% instead of specifying c:\latex.
Haven't added support for other environments, yet.
Copyediting.