[wix-users] Install many files in local app data folder

Gary M garym at oedata.com
Wed May 18 19:48:59 PDT 2016


I recently installed a product with 3400-3600 files.  I used heat to
generate the wxs files. Heat will create a component for each file and a
component group for easy referencing.
These are my heat config settings (sorry I use maven)
                  <configuration>
                      <executable>heat</executable>

<workingDirectory>${fom.resource.dir}</workingDirectory>
                      <arguments>
                        <!-- Specify the directory to harvest, -->
                        <argument>dir</argument>
                        <argument>Support_Files</argument>
                        <!-- Generate guids now. All components are given a
guid when heat is run. -->
                        <argument>-gg</argument>
                        <!-- Keep empty directories. -->
                        <argument>-ke</argument>
                         <!-- Suppress generation of fragments for
directories and components. -->
                        <argument>-sfrag</argument>
                       <!-- Substitute File/@Source="SourceDir" with a
preprocessor
                        or a wix variable (e.g. -var var.MySource will
become
                        File/@Source="$(var.MySource)\myfile.txt"  -->
                        <argument>-var</argument>
                        <argument>var.SupportSourceDir</argument>
                        <!-- Directory reference to root directories
(cannot contains spaces). -->
                        <argument>-dr</argument>
                        <argument>IMA.INSTALL.DIR</argument>
                        <!-- Component group name (cannot contain spaces
e.g -cg MyComponentGroup). -->
                        <argument>-cg</argument>
                        <argument>Support</argument>
                        <!-- Specify output file (default: write to current
directory). -->
                        <argument>-out</argument>

<argument>${wix.generated.sources.dest}\support-files.wxs</argument>
                      </arguments>
                  </configuration>


On Wed, May 18, 2016 at 5:49 PM, Sukhitha jayathilake <sukhij25 at gmail.com>
wrote:

> Hi,
>
> We are trying to install a Demo application and all the Demo data needs to
> be installed in the UserProfile AppData Local folder. Does every component
> that gets installed in UserProfile needs to have a RegistryKey KeyPath? I
> do generate all the components that needs to be installed using heat.exe.
> So they are generated with KeyPath="Yes" in the file element. There are
> like hundreds of files. Do all of those FileElements needs to have a
> RegistryKey KeyPath?
>
> I have worked around this when I was working with a Powershell module
> installer. Where I was able to change the INSTALLDIR to
> UserProfile\WindowsPowerShell folder during the installation, and install
> there without any RegistryKey Keypaths. And it Uninstalls fine too. Do I
> need to do something like that here, like setting the Install directory for
> the demo data during the installation?
>
> I'm fairly new to using wix and making windows installers. Please Help.
> Thank you!
>
> --
> Sukhi
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list