I'm using Inno Setup 6 as an installer creator. I have an ASP.NET code that I need to extract on a local computer that is running Windows 10 and create a web application pointing to that extract on a local IIS 10.
I tried an answer from 10 years ago but that seems to be too old as it apply to IIS 6 and throws an exception in Windows 10.
I tried having Inno Setup script:
[Run]
Filename: "powershell.exe"; Description: "Deploy WebApi"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\webapi\webapi_deploy.ps1 {app}\webapi"""; WorkingDir: {app}\webapi ; Flags: nowait postinstall skipifsilent
execute a powershell script:
New-WebApplication -Name "my-webap" -Site "Default Web Site" -PhysicalPath $webapiPhysicalPath -ApplicationPool "DefaultAppPool" -force
but the physical path does not pass from inno setup to the powershell script.
- Is there an installer, Inno setup or other that deploys code to IIS as a web application?
- Is there a way in Inno Setup to pass the extracted code path to the powershell script?