Old 28th December 2009, 15:52   #1
Laplandia
Junior Member
 
Join Date: Dec 2009
Posts: 4
ExecWait Problem

Hi there.

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

code:
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?
Laplandia is offline   Reply With Quote
Old 28th December 2009, 16:24   #2
Laplandia
Junior Member
 
Join Date: Dec 2009
Posts: 4
Disregard that. It just works only on my machine. On other computers I can run
code:
%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
or
code:
%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.
Laplandia is offline   Reply With Quote
Old 29th December 2009, 12:48   #3
Laplandia
Junior Member
 
Join Date: Dec 2009
Posts: 4
Is
code:
ExecWait '"$%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i'

a proper syntaxis at all?
Laplandia is offline   Reply With Quote
Old 30th December 2009, 06:29   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th January 2010, 10:07   #5
Laplandia
Junior Member
 
Join Date: Dec 2009
Posts: 4
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.
Laplandia is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump