Hello,
I`m using IA X2 (soon will upgrade to latest X3 when our new dedicated VM will be ready).
We are IA customers for almost 5 years now and recently the need to create web/iis application auto deplyment has become crucial.
I created a project from your sample "Create IIS" and it looks nice. we liked that you are able to select an existing site or enter a new name and it will be created.
we need your assistence with the following issues and action items
1. How do we take a zipped web application package i.e myapp.WebApi.zip and deploy it to a newly created site?
2. How can we create/deploy a site or application as "Web application"(i only see an option to create virtual folders and in IIS we can use "Conver to web application" but we hope its built in)?
3. How can we create/deploy each web application or site to its own dedicated Applicationpoll? i tried using the "Application protection" set to (Medium(pooled)) with no luck.
Basically we need to know that IA is cable of providing IIS Web deployment tool functionality OOTB or if you have any samples that other implemented we be happy to get more information.
Thanks in advance.
Shlomi Dayan
Shamir Optical Industry Ltd.
IIS Deployment
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: IIS Deployment
Dear Shlomi,
all you are asking is already illustrated by the "IIS Web Sites and Folder" sample.
If you use such sample as starting point;
1) the "Create IIS Virtual Folder" command uses the project TARGETDIR pre-defined variable as full path to the physical file system folder that contains the files to be served as part of the virtual folder (Code line #299 of the main script file).
That said, all the files installed under TARGETDIR will be exposed within the path of the virtual folder ("$FOLDER$") created by the command.
2) if you run the sample and enter a New Site Name when asked during setup interview, the given name will be then used by the "Create IIS Site" command (Code line #295 of the main script file) to create the NEW SITE under IIS.
3) By default the sample doesn't create any "Application pool" at runtime. Anyway you can enter the name of the one you want to create in the "Create or Use Pool" parameter of the "Create IIS Virtual Folder" command.
"Unless Do Not Create Application is specified in the Application Protection field, sets the virtual folder to become part of the named application pool. If the named application pool does not already exist, it will be created.".
Please note, that creation of custom application pools is available with IIS 6 and later. It is not available with earlier IIS versions.
Hope this helps you.
Regards
all you are asking is already illustrated by the "IIS Web Sites and Folder" sample.
If you use such sample as starting point;
1) the "Create IIS Virtual Folder" command uses the project TARGETDIR pre-defined variable as full path to the physical file system folder that contains the files to be served as part of the virtual folder (Code line #299 of the main script file).
That said, all the files installed under TARGETDIR will be exposed within the path of the virtual folder ("$FOLDER$") created by the command.
2) if you run the sample and enter a New Site Name when asked during setup interview, the given name will be then used by the "Create IIS Site" command (Code line #295 of the main script file) to create the NEW SITE under IIS.
3) By default the sample doesn't create any "Application pool" at runtime. Anyway you can enter the name of the one you want to create in the "Create or Use Pool" parameter of the "Create IIS Virtual Folder" command.
"Unless Do Not Create Application is specified in the Application Protection field, sets the virtual folder to become part of the named application pool. If the named application pool does not already exist, it will be created.".
Please note, that creation of custom application pools is available with IIS 6 and later. It is not available with earlier IIS versions.
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: IIS Deployment
Thank you Francesco for the quick reply.
I was able to get the result i wanted from the installation project(based on your sample of IIS) for the POC i`m working on but i have an issue where
i get a newly created site after enter a site name in the Wizard under "Create New Site" with all the virtual forlders/web application created and it does point to the right folder but the final resutls in IIS if we
look at the hierarchy is as follows(also a screen shot is attached):
1. A new site is created and bounded to port 80 & 443.
2. virtual folders/Web applications are created under it and each web application is pointing to the application folder in $TARGETDIR$
3. For each virtual folder/web application an app pool with the application name is created and each application is working against it own app pool so we ok here.
also i have created it in the following convention:
<SITENAME>
- <Application> --> set to work against app pool <SITENAME>.<VIRTUAL FOLDER/APPLICATION NAME>
4. When expanding the site view in IIS Management console i see both the web applications and the folders which the web applications points to(see attached screenshot).
is there a way to hide or tell installaware to "convert it to application" if its already exists? i get "double view" in the end result which is confusing and dont look professional.
what am i doing wrong? please advise.
thanks,
Shlomi
This is my Apply install code:
I was able to get the result i wanted from the installation project(based on your sample of IIS) for the POC i`m working on but i have an issue where
i get a newly created site after enter a site name in the Wizard under "Create New Site" with all the virtual forlders/web application created and it does point to the right folder but the final resutls in IIS if we
look at the hierarchy is as follows(also a screen shot is attached):
1. A new site is created and bounded to port 80 & 443.
2. virtual folders/Web applications are created under it and each web application is pointing to the application folder in $TARGETDIR$
3. For each virtual folder/web application an app pool with the application name is created and each application is working against it own app pool so we ok here.
also i have created it in the following convention:
<SITENAME>
- <Application> --> set to work against app pool <SITENAME>.<VIRTUAL FOLDER/APPLICATION NAME>
4. When expanding the site view in IIS Management console i see both the web applications and the folders which the web applications points to(see attached screenshot).
is there a way to hide or tell installaware to "convert it to application" if its already exists? i get "double view" in the end result which is confusing and dont look professional.
what am i doing wrong? please advise.
thanks,
Shlomi
This is my Apply install code:
Code: Select all
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Comment: Update the IIS metabase only if the main setup feature has been selected
if Variable SELECTED Equals TRUE
Get IIS Index for Site "$WEBSITE$" into WEBSITEINDEXVAR
if Variable WEBSITEINDEXVAR Equals 0
Comment: Create the new website only if it doesn't already exist
Create IIS Site "$WEBSITE$"
Get IIS Index for Site "$WEBSITE$" into WEBSITEINDEXVAR
end
Comment: Create the virtual folder
Create Virtual Folder "$FOLDER$" in IIS Site #$WEBSITEINDEXVAR$, pointing to physical location $TARGETDIR$
Get Component WebApi Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Create Virtual Folder "$FOLDER$Api" in IIS Site #$WEBSITEINDEXVAR$, pointing to physical location $TARGETDIR$\SolApi
end
Get Component Bundles Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Create Virtual Folder "$FOLDER$Bundles" in IIS Site #$WEBSITEINDEXVAR$, pointing to physical location $TARGETDIR$\SolBundles
end
Get Component Front Site Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Create Virtual Folder "$FOLDER$Front" in IIS Site #$WEBSITEINDEXVAR$, pointing to physical location $TARGETDIR$\SolFront
end
Get Component BackOffice Site Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Create Virtual Folder "$FOLDER$BackOffice" in IIS Site #$WEBSITEINDEXVAR$, pointing to physical location $TARGETDIR$\SolBackOffice
end
Comment: Obtain the IIS anonymous account user name
Get System Setting IIS Anonymous User Account into INETUSR
Comment: Set read permissions on the physical target folder of the new virtual folder
Set Read Permissions on File System Object "$TARGETDIR$" for $INETUSR$
end
end
end
Re: IIS Deployment
Update:
I solved the duplicated virtual folders by giving the Application and Virtual Folder the same name.
Now i see my 4 web applications whice points to the relevant folders without duplication.

I solved the duplicated virtual folders by giving the Application and Virtual Folder the same name.
Now i see my 4 web applications whice points to the relevant folders without duplication.

- Attachments
-
- Capture.PNG (9.86 KiB) Viewed 6139 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: IIS Deployment
Happy you solved!
Regards
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: IIS Deployment
Thanks Francesco.
What about the zip packages(when I publish my web app as a deployment package)? is there a way to deploy them using InstallAware OOTB functionality?
do I have to use custom actions?
thanks,
Shlomi
What about the zip packages(when I publish my web app as a deployment package)? is there a way to deploy them using InstallAware OOTB functionality?
do I have to use custom actions?
thanks,
Shlomi
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: IIS Deployment
Dear Shlomi,
can you please describe a little bit more your question?
Regards
can you please describe a little bit more your question?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 122 guests