I would suggest the following:
Replace all manually generated GUIDs with '*' wherever possible.  WiX can
autogenerate GUIDs for you in most situations (where you have a source file
I believe, it possibly works with RegistryKeys as well.. I can't remember).

You've also got duplicated RegistryKey entries.. you have two entries, each
with the same name and path, but just with Win64 set differently.
Since any one particular .MSI can only be EITHER 32bit/64bit you shouldn't
really have both like that.

I believe most people are even moving away from labelling individual
components Win64, and are just using the appropriate arch flag to the WiX
tools at compile-time.
I tend to just use the higher package level setting (which again I can't
remember off the top of my head).

You will need to perform an installation on a completely fresh machine.  If
this works, then it's not a problem with the installer, but with your
machines configuration.
Perhaps you changed around components etc resulting in a component having
been installed at a previous time and not removed (if you ever did a minor
upgrade, where the UPGRADE code stays the same, but the PRODUCT code changes
and you haven't indicated that MajorUpgrades are to be performed).

Try the fresh VM / PC install and uninstall and let us know the results.


Bevan

============================================================================
=====================================
Date: Tue, 25 Mar 2014 20:09:19 +0530
From: Suvrajyoti Panda <suvrajyo...@contata.co.in>
Subject: Re: [WiX-users] (Gentle Reminder)Creating directory under
        C:\Programdata same as what the user specified in the UI dialogue
To: wix-users@lists.sourceforge.net

Hi Bevan,

I have modified my source file as below. In the custom dialogs that i am
using i have disabled the edit control that shows C:\Energy Solution
International path(that part is not attached here). That's the way i thought
of restricting the user and in the next dialog i am allowing the user to
change the folder that is mapped to [MYFOLDER] property.

<Product Id="*" Name="$(var.pgmName)" Language="1033" 
Version="$(var.SvnVersionBuild)" Manufacturer='$(var.ManufacturerName)' 
UpgradeCode="C54B7D5D-0E66-43E8-A770-C9750693F057">
     <Package Id="*" Keywords="Installer" Description="Installer 1.0" 
Comments='Installer' InstallerVersion='300' Languages='1033' 
Compressed='yes' SummaryCodepage='1252' InstallScope='perMachine' 
Platform='x64'/>

     <WixVariable Id="WixUILicenseRtf" Value="$(var.LicensePath)" />

     <Media Id='1' Cabinet='Tort.cab' EmbedCab='yes' DiskPrompt="CD-ROM
#1"/>
     <Property Id='DiskPrompt' Value="Tort Installation [1]" />

     <Directory Id='TARGETDIR' Name='SourceDir'>
       <Directory Id ="DESTINATIONDIR" Name=".">
       </Directory>
         <Directory Id='ENERGYSOLUTIONS'>
             <Directory Id='TORT' Name='.'>
               <Component Id="x86RegEntPLODbPath" 
Guid="A407D5B4-61F5-4CD6-8E76-3BD1C3949FE9" Win64="no">
                 <RegistryValue Id="x86DbPathRegValue" Root="HKLM" 
Key="SOFTWARE\$(var.RegKeyEntry)" Name="$(var.dbRegName)" 
Value="[TORT]$(var.DBFolder)" Type="string" />
               </Component>
               <Component Id="x64RegEntPLODbPath" 
Guid="56AE5376-4855-4C06-BB85-F669BB0C83F4" Win64="yes">
                 <RegistryValue Id="x64DbPathRegValue" Root="HKLM" 
Key="SOFTWARE\$(var.RegKeyEntry)" Name="$(var.dbRegName)" 
Value="[TORT]$(var.DBFolder)" Type="string" />
               </Component>
               <Component Id="x86RegEntPLODataPath" 
Guid="97403372-06ED-468A-9EB6-CC34FF2279A0" Win64="no">
                 <RegistryValue Id="x86DataPathRegValue" Root="HKLM" 
Key="SOFTWARE\$(var.RegKeyEntry)" Name="$(var.dataRegName)" 
Value="[TORT]$(var.DataFolder)" Type="string" />
               </Component>
               <Component Id="x64RegEntPLODataPath" 
Guid="877F685E-97C1-4E9E-A7E0-F7342CA01BB9" Win64="yes">
                 <RegistryValue Id="x64DataPathRegValue" Root="HKLM" 
Key="SOFTWARE\$(var.RegKeyEntry)" Name="$(var.dataRegName)" 
Value="[TORT]$(var.DataFolder)" Type="string" />
               </Component>
         </Directory>
       </Directory>
     </Directory>

     <Component Id="PreferencesFile" 
Guid="{A4E1FFCE-1534-43BF-AA2B-CDFD39381720}" Directory="TARGETDIR">
       <File Id='preferences' 
Source='$(var.GuiPath)\screens\preferences.xml' KeyPath='yes'>
         <CopyFile Id='Copy_Prefs' DestinationProperty='DESTINATIONDIR'/>
       </File>
     </Component>

     <SetDirectory Id="ENERGYSOLUTIONS" 
Value="[WindowsVolume]$(var.rootFolder)"/>

     <Feature Id='Complete' Title='Tort Installer' Description='Tort
Installer' Level='1'>
       <ComponentGroupRef Id='db'/>
       <ComponentGroupRef Id='data'/>
       <ComponentGroupRef Id='engine'/>
       <ComponentGroupRef Id='security'/>
       <ComponentGroupRef Id='gui'/>
       <ComponentRef Id="x86RegEntPLODbPath"/>
       <ComponentRef Id="x64RegEntPLODbPath" />
       <ComponentRef Id="x86RegEntPLODataPath"/>
       <ComponentRef Id="x64RegEntPLODataPath" />
       <ComponentRef Id="PreferencesFile" />
     </Feature>

     <Property Id="WIXUI_INSTALLDIR" Value="ENERGYSOLUTIONS"/>
     <Property Id="MYFOLDER" Value="PipelineOptimizer 6.0.0"/>
     <Property Id="APPNAME" Value="Energy Solutions International"/>

     <!--<UIRef Id="WixUI_InstallDir" />-->
     <UIRef Id="MyWebUI" />
     <CustomAction Id="AssignDestDir" Directory="TORT" 
Value="[WindowsVolume][APPNAME]\[MYFOLDER]"/>
     <CustomAction Id="AssignProgDataDir" Directory="DESTINATIONDIR" 
Value="[CommonAppDataFolder][APPNAME]\[MYFOLDER]"/>

     <InstallExecuteSequence>
       <Custom Action="AssignDestDir" After="CostFinalize"></Custom>
       <Custom Action="AssignProgDataDir" After="CostFinalize"></Custom>
     </InstallExecuteSequence>

   </Product>

I am now able to create the structure under the programdata folder as i
desired. But however while i am uninstalling the folders that get created on
install such as db, gui,security, do not get removed although the registry
keys get removed. On inspecting the log file i could find the below error.

Action start 14:29:08: CostFinalize.
MSI (s) (88:78) [14:29:08:578]: Disallowing uninstallation of component: 
{A5A114B9-ECE4-4EFE-8DE7-DA07E024554A} since another client exists

I however could not find any other installation on my system. Could you or
someone please help on this. Its urgent.

Regards,
Suvra Jyoti

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to