wix - How to use properties to set the installation path? -


I want to know how to set the installation path of copied files using properties. So, please explain the answer to someone.

If you are using a bootstrapper, you get a variable such as:

< Pre> & lt; Variable name = "INSTALLFOLDER" child: overdrabile = "yes" type = "string" value = "[program fileflorld]" />

The programfile folder in this variable is in the form of default, but it can be overwritten. You can also set it in the process. As the parameter (when bootstrapper is called by an xe) - if you have programmed a GUI on your bootstrap - you set the variable in GUI-code.

In MsiPackage, you have to set the variable to MsiProperty INSTALLLOCATION, which you define in the product.wxs of MSI-project. Hope this will help you.

  & lt; MsiPackage Id = 'SetupPackage' SourceFile = '. Resources \ Setup.msi 'Permanent =' No 'cache =' Yes' DisplayInternalUI = 'No' Important = 'Yes' Compressed =' Yes' Enable Feature Selection = 'No' DisplayName = 'MySetup' & gt; & Lt; MsiProperty name = "INSTALLLOCATION" value = "[INSTALLFOLDER]" /> & Lt; / MsiPackage & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -