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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -