I got the answer: <Custom Action="CA_SetProperty_MACHINENAME" After="CostFinalize" /><Custom Action="CA_SetProperty_SDK_MACHINE" After="CA_SetProperty_MACHINENAME" />
I have to remove *NOT Installed* condition form the custom action. BTW thanks for your responses. On Fri, Jun 15, 2012 at 2:22 PM, Ravi Raj <raviraj.callin...@gmail.com>wrote: > I was checking the conditions for the registry entry and added a new > component: > > <Component Id="System_Name_RegistryEntries" > Guid="833D44E7-EECA-476F-BD06-9045692EE2A1"> > <Condition>Not Installed</Condition> <RegistryKey Root="HKCU" > Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> > <RegistryValue Type="string" Name="MachineName" Value="[MACHINENAME]" > KeyPath="yes"/> </RegistryKey></Component> > > its a simple registry entry for storing ComputerName. I preformed the > Repair via Maintenance mode, and I saw that now both registry entries gets > deleted. > > This is pretty strange. Is it happening because of: > > <Custom Action="CA_SetProperty_MACHINENAME" After="CostFinalize">NOT > Installed</Custom><Custom Action="CA_SetProperty_SDK_MACHINE" > After="CA_SetProperty_MACHINENAME">NOT Installed</Custom> > <Custom Action="CA_SetProperty_SDKMACHINE" > After="AppSearch">Installed</Custom><Custom > Action="CA_SetProperty_INSTALLPATH" > After="CA_SetProperty_SDKMACHINE">Installed</Custom> > > > > On Fri, Jun 15, 2012 at 11:43 AM, Ravi Raj <raviraj.callin...@gmail.com>wrote: > >> The three components are: >> >> <Component Id="Default_RegistryEntries" Guid="GUID"> >> >> <Condition>Not Installed</Condition> <RegistryKey Root="HKCU" >> Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> >> <RegistryValue Type="string" Value="Default Value"/> >> </RegistryKey></Component> >> <Component Id="SDK_Machine_RegistryEntries" Guid="GUID >> >> >> "> <Condition>Not Installed</Condition> <RegistryKey Root="HKCU" >> Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> >> <RegistryValue Type="string" Name="ServiceMachine" >> Value="[INSTALLMACHINE]" KeyPath="yes"/> </RegistryKey></Component> >> <Component Id="Install_Path_RegistryEntries" Guid="GUID >> >> >> "> <Condition>Not Installed</Condition> <RegistryKey Root="HKCU" >> Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> >> <RegistryValue Type="string" Name="InstallPath" Value="[INSTALLDIR]" >> KeyPath="yes"/> </RegistryKey></Component> >> >> First and last component remains the same but middle one gets flushed. I >> have this following log: >> MSI (s) (80:C8) [17:42:54:941]: Executing op: CacheSizeFlush(,) >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> ActionStart(Name=WriteRegistryValues,Description=Writing system registry >> values,Template=Key: [1], Name: [2], Value: [3]) >> Action 17:42:54: WriteRegistryValues. Writing system registry values >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> ProgressTotal(Total=4,Type=1,ByteEquivalent=13200) >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> RegOpenKey(Root=-2147483647,Key=Software\MyServer\MyServer >> Management ,,BinaryType=0,,) >> MSI (s) (80:C8) [17:42:54:941]: Executing op: RegAddValue(,Value=Default >> Value,) >> WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name: >> , Value: Default Value >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> RegAddValue(Name=ServiceMachine,,) >> WriteRegistryValues: Key: \Software\MyServer\MyServer UCS Management Pack >> 2012, Name: SDKServiceMachine, Value: >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> RegAddValue(Name=InstallPath,Value=C:\Program Files (x86)\MyServer\MyServer >> Management\,) >> WriteRegistryValues: Key: \Software\MyServer\MyServer Management, Name: >> InstallPath, Value: C:\Program Files (x86)\MyServer\MyServer Management\ >> MSI (s) (80:C8) [17:42:54:941]: Executing op: >> RegAddValue(Name=Virtualization,,) >> WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name: >> Virtualization, Value: >> >> The Virtualization value is not populated because checkbox is not set a >> value for it, this is normal but i am worried about ServiceMachine value. >> >> >> On Fri, Jun 15, 2012 at 11:29 AM, Hoover, Jacob < >> jacob.hoo...@greenheck.com> wrote: >> >>> Would it be possible to provide the 3 components which describe the 3 >>> values in question? In addition, since I assume you are rewriting these >>> values during a repair it would be interesting to see how you are >>> populating the property values. Have you searched the log files after >>> re-invoking the installer with a /l*v <logfilename>.log? >>> >>> If I had to guess, you are missing the loading of the property in >>> maintenance mode and the installer is deleting it cause it has no value. >>> Verbose logging would tell you the value of the properties and the changes >>> to the components. >>> >>> >>> -----Original Message----- >>> From: Ravi Raj [mailto:raviraj.callin...@gmail.com] >>> Sent: Friday, June 15, 2012 12:31 AM >>> To: General discussion for Windows Installer XML toolset. >>> Subject: Re: [WiX-users] Only one Registry Entry gets deleted while >>> Repair >>> >>> Ok to test Repair I manually delete some files and rerun the installer. >>> It puts back all the file at the same places again (great, I guess). But >>> even if i don't delete or touch any files and just simply runs the repair. >>> Same thing happens. the registry gets deleted but other two remains the >>> same and this only happens on Maintenance mode repair else Right-click >>> repair has normal behavior? >>> >>> I am unable to track this behavior. >>> >>> On Fri, Jun 15, 2012 at 10:49 AM, Hoover, Jacob >>> <jacob.hoo...@greenheck.com>wrote: >>> >>> > >From msiexec /?, >>> > >>> > Repair Options >>> > /f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode> >>> > Repairs a product >>> > p - only if file is missing >>> > o - if file is missing or an older version is installed >>> > (default) >>> > e - if file is missing or an equal or older version is >>> > installed >>> > d - if file is missing or a different version is >>> installed >>> > c - if file is missing or checksum does not match the >>> > calculated value >>> > a - forces all files to be reinstalled >>> > u - all required user-specific registry entries >>> (default) >>> > m - all required computer-specific registry entries >>> > (default) >>> > s - all existing shortcuts (default) >>> > v - runs from source and recaches local package >>> > >>> > I guess the real question is what are you expecting the repair to do >>> > that it isn't doing? (I see the comment of deleted files.) Are you >>> > saying you do an install, then manually delete files and do a repair >>> > and it isn't detecting the missing files? If so, could you provide a >>> > sample of the component in which said files reside? >>> > >>> > Jacob >>> > >>> > -----Original Message----- >>> > From: Ravi Raj [mailto:raviraj.callin...@gmail.com] >>> > Sent: Friday, June 15, 2012 12:08 AM >>> > To: General discussion for Windows Installer XML toolset. >>> > Subject: Re: [WiX-users] Only one Registry Entry gets deleted while >>> > Repair >>> > >>> > I have seen log for those valus and they are: >>> > MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALLMODE >>> > property. Its value is 'ecmus'. >>> > MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding SECONDSEQUENCE >>> > property. Its value is '1'. >>> > MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALL >>> property. >>> > Its value is 'ProductFeature,Complete'. >>> > >>> > What should I do to resolve this issue? >>> > >>> > On Fri, Jun 15, 2012 at 10:16 AM, Hoover, Jacob >>> > <jacob.hoo...@greenheck.com>wrote: >>> > >>> > > Hmm, >>> > > I'd bet that if you compare the REINSTALL and REINSTALLMODE >>> > > properties of the log files from both would show a difference. I'm a >>> > > bit confused as to why you are expecting key path (registry) entries >>> > > to be deleted. If the key path is saying the component is there and >>> > > a repair happens and the feature is selected, it should skip any >>> > > further >>> > checks of other "objects" >>> > > within said component. >>> > > >>> > > Jacob >>> > > >>> > > >>> > > -----Original Message----- >>> > > From: Ravi Raj [mailto:raviraj.callin...@gmail.com] >>> > > Sent: Thursday, June 14, 2012 10:38 PM >>> > > To: General discussion for Windows Installer XML toolset. >>> > > Subject: [WiX-users] Only one Registry Entry gets deleted while >>> > > Repair >>> > > >>> > > I am seeing this strange behavior of my installer while performing >>> > Repair. >>> > > When I do Right-click -> Repair, things happens great. I get back my >>> > > missing (deleted) files. and also custom action preforms great. >>> > > But when I double-click the installer and perform repair via >>> > > Maintenance Mode, things happen OK but only one registry value gets >>> > > deleted while rest other two remains the same. I am not sure why >>> > > this >>> > happens? >>> > > >>> > > <InstallUISequence> <Custom Action="CA_SetProperty_MACHINENAME" >>> > > After="CostFinalize">NOT Installed</Custom> <Custom >>> > > Action="CA_SetProperty_SDK_MACHINE" >>> > > After="CA_SetProperty_MACHINENAME">NOT Installed</Custom> >>> > > <!--For Uninstall--> <Custom Action="CA_SetProperty_SDKMACHINE" >>> > > After="AppSearch">Installed</Custom> <Custom >>> > > Action="CA_SetProperty_INSTALLPATH" >>> > > After="CA_SetProperty_SDKMACHINE">Installed</Custom></InstallUISeque >>> > > nc >>> > > e> <InstallExecuteSequence> <!--Set properties for Installation--> >>> > > <Custom Action="CA_SetProperty_MACHINENAME" After="CostFinalize">NOT >>> > > Installed</Custom> <Custom Action="CA_SetProperty_SDK_MACHINE" >>> > > After="CA_SetProperty_MACHINENAME">NOT Installed</Custom> >>> > > <!--For Repair--> <Custom Action="CA_SetBase_Repair" >>> > > Before="CA_Install">Installed AND NOT (REMOVE="ALL")</Custom> >>> > > <!--Set properties for Uninstall--> <Custom >>> > > Action="CA_SetProperty_SDKMACHINE" >>> > > After="AppSearch">Installed</Custom> <Custom >>> > > Action="CA_SetProperty_INSTALLPATH" >>> > > After="CA_SetProperty_SDKMACHINE">Installed</Custom> >>> > > <!--For UnInstall--> <Custom Action="CA_SetBase_UnInstall" >>> > > Before="CA_UnInstall">Installed</Custom> <Custom >>> Action="CA_UnInstall" >>> > > After="MsiUnpublishAssemblies">Installed AND >>> > > REMOVE="ALL"</Custom></InstallExecuteSequence> >>> > > <!--This is how I populate registry--><Component >>> > > Id="SDK_Machine_RegistryEntries" >>> > > Guid="4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6"> <Condition>Not >>> > > Installed</Condition> <RegistryKey Root="HKCU" >>> > > Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> >>> > > <RegistryValue Type="string" Name="SDKServiceMachine" >>> > > Value="[INSTALLMACHINE]" KeyPath="yes"/> </RegistryKey></Component> >>> > > <!--Custom action to populate regstry--><CustomAction >>> > > Id="CA_SetProperty_SDK_MACHINE" Property="INSTALLMACHINE" >>> > > Value="[SDK_MACHINE]" Execute="firstSequence" /> <!--Getting the >>> > > value for registry--><!--Search for Operations Manager SDK machine >>> > > name from >>> > > Registry--><Property Id="SDK_MACHINE" >>> > > Secure="yes"> <RegistrySearch Id="SDK_Machine" >>> > > Root="HKCU" Key="Software\....\....\...." >>> > > Name="ServiceMachine" Type="raw" /></Property> >>> > > >>> > > >>> > > -- >>> > > Thanks and Regards, >>> > > Ravi Raj >>> > > >>> > > -------------------------------------------------------------------- >>> > > -- >>> > > -------- >>> > > Live Security Virtual Conference >>> > > Exclusive live event will cover all the ways today's security and >>> > > threat landscape has changed and how IT managers can respond. >>> > > Discussions will include endpoint security, mobile security and the >>> > > latest in malware threats. >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > _______________________________________________ >>> > > WiX-users mailing list >>> > > WiX-users@lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/wix-users >>> > > >>> > > >>> > > -------------------------------------------------------------------- >>> > > -- >>> > > -------- >>> > > Live Security Virtual Conference >>> > > Exclusive live event will cover all the ways today's security and >>> > > threat landscape has changed and how IT managers can respond. >>> > > Discussions will include endpoint security, mobile security and the >>> > > latest in malware threats. >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > _______________________________________________ >>> > > WiX-users mailing list >>> > > WiX-users@lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/wix-users >>> > > >>> > >>> > >>> > >>> > -- >>> > Thanks and Regards, >>> > Ravi Raj >>> > >>> > ---------------------------------------------------------------------- >>> > -------- >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. >>> > Discussions will include endpoint security, mobile security and the >>> > latest in malware threats. >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > WiX-users mailing list >>> > WiX-users@lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/wix-users >>> > >>> > >>> > ---------------------------------------------------------------------- >>> > -------- >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. >>> > Discussions will include endpoint security, mobile security and the >>> > latest in malware threats. >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > WiX-users mailing list >>> > WiX-users@lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/wix-users >>> > >>> >>> >>> >>> -- >>> Thanks and Regards, >>> Ravi Raj >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and threat >>> landscape has changed and how IT managers can respond. Discussions will >>> include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >> >> >> >> -- >> Thanks and Regards, >> Ravi Raj >> >> > > > -- > Thanks and Regards, > Ravi Raj > > -- Thanks and Regards, Ravi Raj ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users