wix - Old Property with RegSearch is affecting Product upgrade (new version without this prop) -


i've inherited project msi created in wix , i'm trying solve of issues unfortunately exist.

there's remember property pattern used found specific directory saved in registry entry:

<property id="auto_found_dir" secure="yes" admin="yes">       <registrysearch id="regsrch_auto_found_dir"                       root="hkcu"                       key="$(var.regpath)"                       name="$(var.specifickey)"                       type="raw"       /> </property> 

the specifickey value saved in auto_found_dir property.

then black magic appears. separate component holding (among other stuff) shortcut located in programmenufolder (non-advertised) main executable.

i've been told usage of util:removefolderex workaround old issue shortcut orphaned , hasn't been removed during uninstall:

<feature> <directoryref id="programmenudir">       <component id="cmp_programmenudir" guid="{0e8bd13a-guid-is-here-6e5092eca9ef}">         <createfolder />         <removefolder id='programmenudir' on='uninstall' />         <registrykey id='reg_specifickeyid' root='hkcu' key='$(var.regpath)' forcecreateoninstall="yes">           <registryvalue type='string' name='$(var.specifickey)' value='[programmenudir]'/>         </registrykey>         <!-- other content: shortcut programmenufolder , other stuff -->         <util:removefolderex id="rm_dirid" on="install" property="auto_found_dir"/>       </component>     </directoryref> </feature> 

the problem is: don't need workaround (and usage of auto_found_dir property well. i've removed code during upgrade (major, product , package guids set "*", upgradecode has same value previous version) can see in verbose log msi auto_found_dir exists, registrysearch reads key value specific directory , result util:removefolderex removes directory , components there located.

my question is: how can detect why old property being used during upgrade , how rid of it?

additional information: install scope permachine, allusers set 1. msi upgraded version has property removed.

without close @ complete verbose log see what's going on, remember upgrade uninstall of older installed product. means lot of logic in older installed product happen during upgrade. see registrysearch running older product uninstalls, setting auto_found_dir, , see removefolder runs during uninstall.

so it's not clear if have issue if you're seeing uninstall activity of older product being uninstalled. activity embedded in installed product.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -