예제 #1
0
        /// <summary>
        /// Enables source resiliency for the installer.
        /// Creates a symbolic link/hard link or makes a copy of the original MSI package in the specified location and points SOURCELIST to it.
        /// </summary>
        /// <param name="project">The project.</param>
        /// </summary>
        public static void EnableResilientPackage(this Project project)
        {
            project.EnableResilientPackage("{$ResilientPackageIstallDir}");

            project.WixSourceFormated += (ref string content) =>
            {
                content = content.Replace("{$ResilientPackageIstallDir}", project.ActualInstallDirId);
            };
        }