Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created WCF web service and created setup using InstallAware so that our customer just run the setup and it will deploy web service in IIS. My setup create virtual directory under "Default Website" in IIS. Every thing is work fine, my setup create the virtual directory under "Default Website" and point to the correct path but only it gives error before setup finished. Following is the code which create the virtual directory in IIS.
if Variable SUCCESS not Equals ERROR
  if Variable SUCCESS not Equals CANCEL
    Run Program $SUPPORTDIR$\InsertToken1.bat  (WAIT)
    Get IIS Index for Site "Default Web Site" into DEFAULTWEBSITEINDEXVAR
    Create Virtual Folder "WebService" in IIS Site #$DEFAULTWEBSITEINDEXVAR$, pointing to physical location $WWWROOTDIR$WebService
    Get System Setting IIS Anonymous User Account into INETUSR
    Set Read Permissions on File System Object "$WWWROOTDIR$\WebService" for $INETUSR$
  end
end
After debugging MSI Code I found that the when following line execute it gives the error
Create Virtual Folder "WebService" in IIS Site #$DEFAULTWEBSITEINDEXVAR$, pointing to physical location $WWWROOTDIR$WebService
It gives following error
"Service API has stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available."
Please see the image: [^]

What I have tried:

After debugging MSI Code I found that the when following line execute it gives the error
Create Virtual Folder "WebService" in IIS Site #$DEFAULTWEBSITEINDEXVAR$, pointing to physical location $WWWROOTDIR$WebService
Posted
Updated 2-Jan-18 8:00am

1 solution

You're probably going to have to find a forum dedicate to InstallAware to get this answered.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900