This was actually a bug in the IIS custom actions. It should be fixed in the latest build : 3.5.1714.00. Please give it a try. -Eric
> From: houssam.ham...@netiks.com > To: wix-users@lists.sourceforge.net > Date: Thu, 6 May 2010 12:03:46 +0300 > Subject: Re: [WiX-users] IIS error during Repair Installation? > > I recommend you to set the ConfigureIfExists="no" attribute for > <iis:website> tag then update the website settings using C#/C++ custom > action. > > Regards, > Houssam Hamdan > > -----Original Message----- > From: Yan, Lu (Shanghai) [mailto:l...@husky.ca] > Sent: Thursday, May 06, 2010 5:31 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] IIS error during Repair Installation? > > I have build a sample Wix project which sets up a IIS website on Windows > 2008 server IIS7.0.6 > > > > It is OK for a fresh install, and the IIS is well configured as I > expected. But if I am doing a maintenance installation(repair) > > The install ends because of errors. > > Here is the log message: > > MSI (s) (B8:C0) [10:08:38:983]: Executing op: > ActionStart(Name=CommitIIS7ConfigTransaction,Description=Committing IIS > Config Transaction,) > > Action 10:08:38: CommitIIS7ConfigTransaction. Committing IIS Config > Transaction > > MSI (s) (B8:C0) [10:08:38:986]: Executing op: > CustomActionSchedule(Action=CommitIIS7ConfigTransaction,ActionType=11777 > ,Source=BinaryData,Target=**********,CustomActionData=**********) > > MSI (s) (B8:C0) [10:08:38:987]: Executing op: > ActionStart(Name=WriteIIS7ConfigChanges,Description=Installing Config > Keys and Values,) > > Action 10:08:38: WriteIIS7ConfigChanges. Installing Config Keys and > Values > > MSI (s) (B8:C0) [10:08:38:989]: Executing op: > CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Sour > ce=BinaryData,Target=**********,CustomActionData=**********) > > MSI (s) (B8:10) [10:08:38:995]: Invoking remote custom action. DLL: > C:\Windows\Installer\MSID0AF.tmp, Entrypoint: WriteIIS7ConfigChanges > > WriteIIS7ConfigChanges: Error 0x800700b7: Failed add application VDir > element > > WriteIIS7ConfigChanges: Error 0x800700b7: Failed to create vdir for > application > > WriteIIS7ConfigChanges: Error 0x800700b7: Failed to configure IIS VDir. > > WriteIIS7ConfigChanges: Error 0x800700b7: WriteIIS7ConfigChanges > Failed. > > Action ended 10:08:39: InstallFinalize. Return value 3. > > MSI (s) (B8:C0) [10:08:39:093]: User policy value 'DisableRollback' is 0 > > MSI (s) (B8:C0) [10:08:39:093]: Machine policy value 'DisableRollback' > is 0 > > MSI (s) (B8:C0) [10:08:39:095]: Executing op: > Header(Signature=1397708873,Version=405,Timestamp=1017532692,LangId=1033 > ,Platform=0,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,Scri > ptAttributes=0) > > MSI (s) (B8:C0) [10:08:39:096]: Executing op: > DialogInfo(Type=0,Argument=1033) > > MSI (s) (B8:C0) [10:08:39:096]: Executing op: > DialogInfo(Type=1,Argument=Foobar 1.0) > > MSI (s) (B8:C0) [10:08:39:096]: Executing op: > RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back > action:,RollbackTemplate= > > > > It seems reconfigure an existing IIS webapp/webdir fails. > > I have tried on Wix version 3.5.1602 and 3.5.1623, and neither works. > > > > Here is my sample code: > > <Directory Id='TARGETDIR' Name='SourceDir'> > > <Directory Id='ProgramFilesFolder' Name='PFiles'> > > <Directory Id='InstallDir' Name='Acme'> > > <Component Id='default.htmlComponent' > Guid='{C134F063-3A6F-43a5-97EE-9F3FFC67B7C6}'> > > <File Id='default.htmFile' Name='default.htm' KeyPath='yes' > DiskId='1' Source='default.htm' /> > > </Component> > > </Directory> > > </Directory> > > <Component Id='TestWebVirtualDirComponent' > Guid='{D9821C11-BB9B-4c77-9289-B0128AF5F9C9}'> > > <IIS:WebVirtualDir Id='TestWebVirtualDir' Alias='Test' > Directory='InstallDir' WebSite='DefaultWebSite'> > > <IIS:WebApplication Id='TestWebApplication' Name='Test' /> > > </IIS:WebVirtualDir> > > </Component> > > </Directory> > > <IIS:WebSite Id='DefaultWebSite' Description='Default Web Site'> > > <IIS:WebAddress Id='AllUnassigned' Port='80' /> > > </IIS:WebSite> > > ---------------------------------------------------------------------------- > -- > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users