$WINSYSDIR$ not working

Got a problem you cannot solve? Try here.
Post Reply
cmclendon
Posts: 3
Joined: Thu Oct 06, 2005 11:39 am

$WINSYSDIR$ not working

Post by cmclendon »

I am using the Second Edition build, and when using the .NET Framework 2.0 template the version checking was not working. I inserted the following code to check the result:

Get File Version $WINSYSDIR$\\mscoree.dll into Variable MSCOREVER

What I got back was 0.0.0.0

However, if I change it to a hard coded path:

Get File Version c:\\windows\\system32\\mscoree.dll into Variable MSCOREVER

I get back the expected version.

Is this is a known issue?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Please make sure $WINSYSDIR$ is initialized beforehand.

Easiest way: search for WINSYSDIR in the script (type CTRL+F and type in WINSYSDIR), then copy-paste the line that initializes it right above your call for the runtime.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Note: The sample script already performs this initialization for you. Please double-check that you did not accidentally delete the code (or are overwriting the variable later on).
Post Reply