Rewriting Essays How To Write A Good Introduction Essay Paragraph How To Write A Good Self Introduction Essay Write On Blank Paper Online Write On Old Paper Online Research Papers Websites List Research Paper Website Citations Research Paper Website Evaluation Research Paper Website Development Writing Academic Essays Pdf Writing College Essays I Have To Write An Essay On Love My College Paper Write My College Paper For Me Domyhomework Higher English Reflective Essay Help Buy Business Plans Online Buy And Sell Business Plans Personal Pronouns Academic Writing Homework Help For Science Homework Help For Earth Science Best Essay Writing Service Uk I Need To Buy A Research Paper Write An Essay On Patriotism Write An Essay On Mac Write An Essay On Why You Want To Be A Nurse Write An Essay On Iphone Homework Help Paper Research Paper Homework Help Essay Writing Process Essay Writing Problem Solution Essay Writing Proposal Essay Writing Profile How To Write A Research Report Write A Winning Research Report Cheap Paper Writing Service Persuasive Essay Writing Prompts For High School Writing Psychology Papers Apa Rosnow Rosnow Writing Papers Psychology Essay Resume Writing Buy An Essay Paper Buy Essay Papers Cheap Buy Essay Research Paper Top Common App Essays Good Common App Essay Length Essay Pay Help With My Personal Statement For College Help With My Personal Statement For My Cv Write An Essay In An Hour Write An Essay In 1 Hour Write An Essay In 3 Hours Write An Essay In 12 Hours How To Write An Essay In Under An Hour 5 Paragraph Essay Writing Ppt Write An Essay Introduction Qualitative Report Writing Qualitative Data Report Writing Famous Essay Writers Best Essay Writers Personal Narrative Essay For College Narrative Essay College Life Order Term Paper Essays Common Application Essays Comparing Two Things Papers Writing Service College Papers Writing Service Online Essay Help Online Essay Review Report Writing In English Report Writing In English Cbse Dissertation Ghostwriter Dissertation Ghostwriter Kosten Ghostwriter Dissertation Strafbar Ghostwriter Dissertation Preise Help With Essays Assignments Custom Essay Service Uk Make An Essay Longer Make An Essay Online Make An Essay About Yourself Finance Homework Help Online Professional Paper Writing Services Where To Submit Research Papers Phd Thesis Writing Help India Phd Thesis Writers India Should My Application Essay Be Double Spaced Mechanical Engineering Homework Help Environmental Engineering Homework Help Personal Statement For Scholarships Applications College Papers For Money Submit College Papers For Money Writing And Essay Writing And Essay Plan Best Place To Buy Research Paper Homework Help Lapl Homework Help Business Law Homework Help Salt Lake City Best Essay Writing Company Good Essay Writing Company Report Writing School Report Writing School Level Report Writing School Sports Day Report Writing School Students I Will Pay You To Write My Paper Pay You To Write My Paper Common App Essay Help Common App Supplement Essay Help Higher English Essay Help Higher English Essay Writing Do My Report For Me Do My Lab Report Do I Report My Student Loan As Income Do I Report My Roth Ira On Taxes Sell Term Papers Sell Term Papers Online Why Do Websites Sell Term Papers Essay Or Research Paper Essay Research Paper Difference English Online Past Papers Article Writing Services Uk Article Writing Services Email Type Up Essay Online Essay Help Writing Purchase Compare And Contrast Essay Homework Help Service Can Someone Do My Homework For Me Can Someone Do My Accounting Homework Mba Admission Essay Writers Research Papers On Abortion Research Papers In Education Research Papers On Autism Essay Sites Kids Sites Essay Writing Write Lab Report Write Lab Report Kids Write Lab Report Middle School Affordable Essays Assignment Writing Services Assignment Writing Services In Malaysia Assignment Writing Services Pakistan Essay Writing In English Best Thesis Writing Service Write Your Essay Online Essay Writing Service Uk Best Middle School Homework Helper Middle School Homework Help Social Studies Online Middle School Homework Help Research Paper Editing Services Write One Paragraph Essay Write A 5 Paragraph Essay Write A 3 Paragraph Essay Buying Papers Online Wrong Purchase Papers Online Buying Rolling Papers Online Writers Help Online Writers Help Access Card-(online) Does My College Essay Have To Be Exactly 500 Words Does My College Essay Have To Be 500 Words Writing Research Reports Writing Research Reports Ppt Writing Research Reports In Psychology Writing Business Reports Resume Writing Services For Teachers Professional Resume Writing Service For Teachers Writing Custom Essays Essays Written By Kids Essays Written By College Students Good Essays Written By Students Custom Research Papers Online Content Writing Companies Uk Web Content Writing Services Uk Writing Academic Essays Writing Academic Essays Esl Do My Term Paper For Me Who To Write Essay In English Homework Helpline Number Homework Help Hotline Phone Number Big Y Homework Help Number Business Writing Services Business Plan Writing Services Welcome Homework Help And Answers Slader Writing Essay For College Entrance Logic Homework Helper Visual Logic Homework Help Symbolic Logic Homework Help Intro To Logic Homework Help Websites That Write Essays For You Is There A Website That Writes Essays For You Pay To Complete Homework Help Assignment Help Assignment Australia Help Assignment 3 Photography Institute Microeconomics Homework Help Write My Book Report For Me Write My Summary For Me Papers Written About Yourself Should I Do My Homework Now Or In The Morning I Need To Do My Homework Right Now I Should Be Doing My Homework Right Now How To Help Kids With Homework How To Help Students With Homework College Entrance Essay Writing Service Legitimate Essay Writing Sites Dissertation Writing Services Dissertation Writing Dissertation Writing Retreat Essay Revision Help Online Essay Homework Help Online Buy College Transcript Paper Essay Writing Help For High School Students Who Can Help Me Do Assignment Website Essay Reference Website Essay Citing Website Essay Writing Essay Website For Sale Pay For A Paper Average Pay For A Paper Round Average Pay For A Paperboy Pay For Paper Recycling Will You Help Me With My Homework Carl Will You Help Me With My Homework After School Helping Others Essay Points Best Essay Writing Service Uk Review Dental Personal Statement Writing Services Dental School Personal Statement Service Show Me How To Write A Research Paper Buying College Essays Buy My Essay Custom Personal Essays Best Term Paper Service Best Essay 4 You An Essay For Your Best Friend Essay For Apply College Paper Writing Service Nyc Help With Writing A Thesis Help With Writing A Thesis Statement For A Research Paper Help With Developing A Thesis Statement Help With Thesis Paper Help Writing Thesis Proposal Best Website To Buy A Research Paper Help With Science Homework Ks3 Help With Science Homework Ks4 Write For Money Online Uk Write Stories For Money Online Do My Essay For Cheap What Are The Best Resume Writing Services What Is The Best Resume Writing Service Online Essay Writing Services Toronto Writing Business Reports In English Writing Business Reports Phrases Buy Business Essays Which Is The Best Essay Writing Service Buy Essay Writing Write A Good Essay Plan Write My Essay Please Please Write My Paper Pitch Perfect How To Write A Successful College Admission Essay English Writing A Report English Writing Report Card Comments Online Help For Homework Online Help For Geometry Homework Order Of A Lab Report Order Of Things In A Lab Report Order Of Reaction Lab Report Order Of Psychology Lab Report Research Papers Writing Help Best College Essay Writing Services College Essay Writing Services Scholarships Without Essays For High School Students Write Incident Report Write Security Incident Report Write Good Incident Report Best Custom Writing Companies Assignment Helpers Perth Report Writing For School Report Writing For School Teachers Content Writing Services Content Writing Services India Write My Essays For Me Essay Best Day Of My Life Essay Best Essay Best Trip Marketing Homework Help Do My Homework Online Do My Algebra Homework Online Alabama Homework Help Alabama Virtual Library Homework Help Fun Writing Assignments For High School Students What Is The Best Custom Essay Service 123 Help Essay Writing Essays Writing Services Uk Essay Writing Services Australia Website To Write Essays Help With A Research Paper Help With Research Paper Thesis Statement Thesis Papers On Education Customs Essay Customs Essay Order Essay Customs And Traditions Essay Customs And Courtesies Old Customs Essay

Extending Nullsoft Installer to talk to IIS

June 30, 2010

Talk to IIS from a Nullsoft Installer

A new Nullsoft installer plug-in provides access to IIS during an installation

Summary

An example of how the the Nullsoft installer plug-in, NsisIIS (http://nsis.sourceforge.net/NsisIIS_plug-in) , allows you to read from the IIS metabase when your installer is run.

Manipulating IIS from NSIS

One of the things we use the Nullsoft Installer (aka NSIS) is to deploy IIS based intranet applications. Just recently I’ve found a new IIS plug-in, NsisIIS which allows you to (in the authors words)

“to create/edit/delete/getinfo Microsoft IIS virtual directories and manage it’s service status”

I’ve often wished for just such a plug-in so I was really pleased to find someone had written it for me !

Sample Script

As soon as I saw this it seemed like a great idea. Unfortunately the current release doesn’t include any sample scripts (or it does I can’t find them) so I’ve written one.

My sample script, NSI_GetVirDirExample.nsi, dumps the details of a hard-coded virtual directory to the details panel of the installer like this :

NsisIIS Example Script

NsisIIS Example Script

The script that produces this output is a very simple NSIS script which looks like this (I’ve also made it available at http://pastie.org/1024393 to help with copy/pasting).

;This Nullsoft Installer System (NSIS) script illustrates
;the use of the NsisIIS plugin at version 1.0.0
;(http://nsis.sourceforge.net/NsisIIS_plug-in)
;
;This script uses a hardcoded virtual directory
;present in the default web site within IIS and
;dumps some configuration details to the NSIS
;details panel

;Output file name
OutFile "NSI_GetVDirExample.exe"
;'Show Details' panel open by default
ShowInstDetails show
section -
 ;variable to contain Virtual Directory name
 Var /GLOBAL vdName
 ;initialise to name of Virtual Directory of Interest
 StrCpy $vdName "DRS"
 ;warn the user what Virtual Directory they're pointing at
 ;because you end up with a very ugly crash if it doesn't exist
 MessageBox MB_OK "You are reviewing the details of Virtual Directory : $vdName ."

 ;call the GetVDir function from the NsisIIS plugin
 ;Registers are updated as follows:
 ;$0 Physical Path
 ;$1 Application Pool
 ;$2 Access Flags
 ;$3 Default Documents in comma delim list
 ;$4 IP Security Details
 ;$5 SSL Details (not working in this release)
 ;
 ;See NsisIIS documentation for more details
 NsisIIS::GetVDir $vdName

 ;dump the Virtual Directory config details from registers
 ;$0 to $5 out the the details panel
 DetailPrint "Config Details for Virtual Directory : $vdName"
 DetailPrint "Physical Path :$0"
 DetailPrint "App Pool :$1"
 DetailPrint "Access Flags :$2"
 DetailPrint "Default Docs :$3"
 DetailPrint "IP Security :$4"
 DetailPrint "SSL Flags :$5"
sectionend

Warnings !

Hardcoded Virtual Directory Name

To use my example script yourself you’ll need to amend the line which initialises the variable containing the virtual directory name, for instance if your virtual directory is called “Accounts” you would need to amend :

 StrCpy $vdName "DRS"

to read

 StrCpy $vdName "Accounts"

Error Handling

There’s no error handling in my example script (as you can see). If you specify a virtual directory that doesn’t exist or that you’re not allowed to access when you run NSI_GetVDirExample.exe it will crash and burn.

Default Web Site

As far as I can tell NsisIIS will only access the default web site. For 95% of IIS users that would be just fine but if you have a virtual directory on a non-default website you’re going to have to wait for a later release

NsisIIS Documentation

To take this any further you’ll want to read the documentation which you can find in a Word For Windows document here.

Leave a Reply