|
From: Rob M. <ro...@ro...> - 2011-02-19 17:24:15
|
Yep, store as a string. Windows Installer has a nasty habit of adding the "#" in front of integers. On Fri, Feb 18, 2011 at 4:38 PM, Paul Reynolds < PRe...@pl...> wrote: > Hi Rob > > The install log indicates the following: > > MSI (s) (84!9C) [13:29:59:613]: PROPERTY CHANGE: Adding ConfigureIIs7Exec > property. Its value is > 'ConfigureIIs€1€0€0€2€1€0€0€2€1€17€1€AppPool€1€Name€1€Component_€1€Attributes€2€User_€1€RecycleMinutes€2€RecycleRequests€2€RecycleTimes€1€VirtualMemory€2€PrivateMemory€2€IdleTimeout€2€QueueLimit€2€CPUMon€1€MaxProc€2€ManagedRuntimeVersion€1€ISInstalled€2€ISAction€2€3€AppPool€Year > View1€WebVirtualDirComponent€16€€0€-2147483648€€-2147483648€-2147483648€0€-2147483648€0€-2147483648€v4.0€2€3€4€2€1€2€72€Component€1€Attributes€2€3€WebVirtualDirComponent€0€4€3€PersistWebSiteValues€4€4€3€cmpCBE03EE0AF9F6B0841326F548614EE48€0€4€3€cmp93645FCD1A13835D0DFCD156CF2C6C64€0€4€3€cmpECB93C0A0BCC99CFF4F7F86911E011A0€0€4€3€cmp613C806AB0AE5AA7AC14BEA422234BEE€0€4€3€cmpFB33635B7D7AF5906B5DFB25D7E4F343€0€4€3€cmp8349F34D6A091B3EC41C3FBDDBC9BD18€0€4€3€cmp9C9BF9D1042FA6EC5ED4930EF8B8FB22€0€4€3€cmpCFFE550301C5C4C31FC0C99957544FC3€0€4€3€cmpFC57B0C1E00D38E8780C465303D67AC5€0€4€3€cmpDCFF70F39D6356727B05BC8667003152€0€4€3€cmpDEC4EFB7A53E8998622E73D30FB37FE3€0€4€3€cmp90A0520362E97A01F17FE43C62B37A3A€0€4€3€cmpB30A35764A30 > MSI (s) (84!9C) [13:29:59:613]: Doing action: ConfigureIIs7Exec > > The uninstall log shows: > > MSI (s) (DC!80) [10:55:03:463]: PROPERTY CHANGE: Adding ConfigureIIs7Exec > property. Its value is > 'ConfigureIIs€1€0€0€2€1€0€0€2€1€17€1€AppPool€1€Name€1€Component_€1€Attributes€2€User_€1€RecycleMinutes€2€RecycleRequests€2€RecycleTimes€1€VirtualMemory€2€PrivateMemory€2€IdleTimeout€2€QueueLimit€2€CPUMon€1€MaxProc€2€ManagedRuntimeVersion€1€ISInstalled€2€ISAction€2€3€AppPool€Year > View#1€WebVirtualDirComponent€16€€0€-2147483648€€-2147483648€-2147483648€0€-2147483648€0€-2147483648€v4.0€3€2€4€2€1€2€72€Component€1€Attributes€2€3€WebVirtualDirComponent€0€4€3€PersistWebSiteValues€4€4€3€cmpCBE03EE0AF9F6B0841326F548614EE48€0€4€3€cmp93645FCD1A13835D0DFCD156CF2C6C64€0€4€3€cmpECB93C0A0BCC99CFF4F7F86911E011A0€0€4€3€cmp613C806AB0AE5AA7AC14BEA422234BEE€0€4€3€cmpFB33635B7D7AF5906B5DFB25D7E4F343€0€4€3€cmp8349F34D6A091B3EC41C3FBDDBC9BD18€0€4€3€cmp9C9BF9D1042FA6EC5ED4930EF8B8FB22€0€4€3€cmpCFFE550301C5C4C31FC0C99957544FC3€0€4€3€cmpFC57B0C1E00D38E8780C465303D67AC5€0€4€3€cmpDCFF70F39D6356727B05BC8667003152€0€4€3€cmpDEC4EFB7A53E8998622E73D30FB37FE3€0€4€3€cmp90A0520362E97A01F17FE43C62B37A3A€0€4€3€cmpB30A35764A3 > Action ended 10:55:03: CommitIIS7ConfigTransaction. Return value 1. > > So I can see a difference here where the uninstall gets a # between the > View and the 1...?! > > Would this indicate a type conversion issue with the way I save/read/use > the values to/from the registry? > > Loading at startup (so the value we get for uninstall): > > <Property Id="WEBSITE_ID"> > <RegistrySearch Id="WebSiteID" Name="WebSiteID" Root="HKLM" > Key="SOFTWARE\!(loc.CompanyName)\!(loc.ProductName)\Install" Type="raw" /> > </Property> > > Saving after install: > > <Component Id="PersistWebSiteValues" > Guid="C3DAE2E2-FB49-48ba-ACB0-B2B5B726AE65"> > <RegistryKey Action="create" Root="HKLM" > > Key="SOFTWARE\!(loc.CompanyName)\!(loc.ProductName)\Install"> > <RegistryValue Name="WebSiteID" > Type="integer" Value="[WEBSITE_ID]"/> > > Maybe I should just be storing as a string? > > Paul > > -----Original Message----- > From: Rob Mensching [mailto:ro...@ro...] > Sent: Saturday, 19 February 2011 12:31 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] WIX 3.5 AppPool is not uninstalled on Windows 7 > > Verbose log file usually tells all. First thing I would double check is the > Name of the the WebAppPool data being passed to the custom action. > > On Thu, Feb 17, 2011 at 4:07 PM, Paul Reynolds < > PRe...@pl...> wrote: > > > Hi > > > > On my dev box (win7 64bit), I'm finding that when I uninstall my web > > application, everything gets properly removed EXCEPT the AppPool. > > > > I found a related thread: > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem- > > with-Application-pools-in-IIS-on-Windows-7-2008-td5438654.html > > > > But no answer was contained there, so I'm hoping for some pointers?! > > > > Here's the structure: > > > > > > <Directory Id='TARGETDIR' Name='SourceDir'> > > <Directory Id="IISMain" Name='inetpub'> > > <Directory Id="WWWMain" Name='wwwroot' > > ComponentGuidGenerationSeed='CA19CA4A-C69B-4CDB-BCBD-6C3C5E9A3EDC'> > > <Directory Id='INSTALLLOCATION' Name='!(loc.ProductName)'> > > > > <!-- The component to define the Virtual Directory.--> > > <Component Id="WebVirtualDirComponent" > > Guid="A720C1C9-1D8D-4941-976D-FB1C5C9EF8BB"> > > > > <!-- Define App Pool - identity if not set defaults to: > > ApplicationPoolIdentity --> > > <iis:WebAppPool Id="AppPool" Name="[VD][WEBSITE_ID]" > > ManagedRuntimeVersion="v4.0" IdleTimeout="0" RecycleMinutes="0" > > ManagedPipelineMode="integrated"> > > </iis:WebAppPool> > > > > <iis:WebVirtualDir Id="VDir" Alias="[VD]" > > Directory="INSTALLLOCATION" WebSite="SelectedWebSite"> > > <iis:WebApplication Id="YearViewApplication" > > WebAppPool="AppPool" Name="[VD][WEBSITE_ID]" /> > > <iis:WebDirProperties Id="MyWebSite_Properties" > > AnonymousAccess="yes" WindowsAuthentication="no" > > DefaultDocuments="Default.aspx" /> > > </iis:WebVirtualDir> > > > > > > As stated before, the VD gets removed fine...so this proves (?!) that > > [VD][WEBSITE_ID] are valid... > > > > I'm persisting the variables to the registry (and can see them there!) > > and reading from at startup. > > > > The Feature is defined at: > > > > <Feature Id="ProductFeature" Title="!(loc.ProductName)" Level="1"> > > <ComponentRef Id='WebVirtualDirComponent' /> > > <ComponentGroupRef Id="Product.Generated" /> > > <ComponentRef Id="PersistWebSiteValues" /> > > </Feature> > > > > I'm clearly missing something really simple/obvious?! > > TIA > > Paul. > > > > > > ---------------------------------------------------------------------- > > -------- The ultimate all-in-one performance toolkit: Intel(R) > > Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > _______________________________________________ > > WiX-users mailing list > > WiX...@li... > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > -- > virtually, Rob Mensching - http://RobMensching.com LLC > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > WiX-users mailing list > WiX...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > WiX-users mailing list > WiX...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC |