Archive: ExecWait Problem


ExecWait Problem
Hi there.

I need to register asp.net in iis, so I run aspnet_regiis.

ExecWait '"$%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i' 
ExecWait '"$%systemroot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe" -i'


Now, the second line works fine on x64 windows, but the first line never works. What am I doing wrong?

Disregard that. It just works only on my machine. On other computers I can run

%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
or
%systemroot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
from cmd, so these files do exist, but somehow setup doesn't execute them.

Is

ExecWait '"$%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i'

a proper syntaxis at all?

Try using $WINDIR instead of %SYSTEMROOT%. Also, you should get that path from the registry or somewhere else instead of hardcoding it. You can probably find a wiki article on how to get it.


Thank you kichik, it worked.
In previous versions I've obtained that path from registry, but then I've found out that v2.0.50727 is the only folder where stable version of second framework can be located.