asp.net - How to find the physical directory of an application on IIS with NSIS -


i'm building installer nsis install multiple asp.net applications @ same time. need find physical directory of these applications on server install files.

nsisiis provides functions return: web sites, virtual directory , app pools, nothing return list of applications , properties.

i know name of these applications, physical directories varies server server.

i wondering if had solution problem.

thx

to solve problem, can use appcmd.exe, can job you. call nsis this:

section "test"     nsexec::exectostack 'c:\windows\system32\inetsrv\appcmd list vdir "default web site/virtual_path" /text:physicalpath'     pop $0 ;return value     pop $1 ;printed text     detailprint "output command: $1" sectionend 

you must after call pop twice, because exectostack stores return value (%errorlevel%) above text returned executed command.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -