Wix install location -
i have wix setup allows user select install location. when uninstalling, need run custom action should activate file in install location. tried getting install location session["installdir"]
results in default path , not 1 given user.
how can reach location?
i've done in own installer - following should work.
this adds property retrieve install location value registry.
<property id="installdir"> <registrysearch id='registry' type='raw' root='hkcu' key='software\$(var.manufacturer)\$(var.productname)' name='location' /> </property>
this sets install location in registry.
<component id="registry" guid="*"> <registrykey root="hkcu" key="software\$(var.manufacturer)\$(var.productname)"> <registryvalue name="location" type="string" value="[installdir]" action="write" keypath="yes" /> </registrykey> <util:removefolderex on="uninstall" property="installdir" />
Comments
Post a Comment