-
Notifications
You must be signed in to change notification settings - Fork 196
Description
Installing IIS Website via WiX# / Bootstrapper Application (BA) – Set ProgramData Permissions & web.config Values
Good morning,
I am currently developing a Bootstrapper Application (BA) installer using WiX#.
My installer needs to:
Install an ASP.NET MVC + WebAPI website into IIS
Create a directory under
C:\ProgramData\MyWebsite
Set Windows access permissions on that directory:
Grant Read / Modify / Delete rights to:
IIS_IUSRS
IIS AppPool\MyWebsite
Modify certain values inside web.config
Optionally install PostgreSQL (including pgAdmin4) if selected by the administrator
Because of the optional PostgreSQL installation, I must use a Bootstrapper Application (BA). As far as I know, this cannot be done properly in a single MSI package.
My Questions
What is the recommended approach to:
Create and configure an IIS website from a BA?
Set NTFS permissions on ProgramData\MyWebsite for IIS_IUSRS and a specific AppPool identity?
Modify web.config values during installation?
Should this be done:
Inside a custom MSI?
Via PowerShell custom actions?
Directly from the BA?
Is there a best practice example for this scenario?
The website is ASP.NET MVC (.NET Framework 4.8), hosted in IIS.
Any guidance or example implementation would be greatly appreciated.
Thank you.