Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default installation folder not set unless opening options page #4211

Closed
wixbot opened this issue Nov 28, 2013 · 4 comments
Closed

Default installation folder not set unless opening options page #4211

wixbot opened this issue Nov 28, 2013 · 4 comments
Assignees
Milestone

Comments

@wixbot
Copy link

wixbot commented Nov 28, 2013

When using the built in burn UI, it seems as if the default InstallFolder configured in XML is ignored unless you actually view it in the options page.

When you do view the options page the default installation path as configured in your xml file is shown and used by the installer. But if you don't open the options page and just click next/install, it uses "program files/product name". In my example it ignores the manufacturer folder if i don't open the options page.

Below you have a copy of the XML of my bootstrapper:

 <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="product namer" Version="1.0.0.0" Manufacturer="manufacturer" UpgradeCode="f35a5272-1a82-4100-b728-e6b254bde159">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
  <bal:WixStandardBootstrapperApplication
    LicenseUrl=""
    xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" />
</BootstrapperApplicationRef>

<Variable Name="InstallFolder" Type="string" Value="[ProgramFilesFolder][WixBundleManufacturer]\[WixBundleName]" />

<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033" Value="SP" Variable="vcredist" />

<Chain>
  <ExePackage
      PerMachine="yes"
      Permanent="yes"
      Vital="yes"
      DetectCondition="vcredist AND (vcredist >= 1)"
      InstallCommand="/q"
      SourceFile="vcredist_x86.exe"/>
  <PackageGroupRef Id="NetFx40Redist"/>
  <MsiPackage Id="MyApplication" 
              SourceFile="$(var.Setup.TargetPath)"
            Compressed="yes"
            Vital="yes">
      <MsiProperty Name="INSTALLDIR" Value="[InstallFolder]" />
  </MsiPackage>
</Chain>
</Bundle>
</Wix>

Originally opened by stijnvano

@wixbot
Copy link
Author

wixbot commented Dec 5, 2013

Originally changed by barnson
AssignedTo set to robmen
Release changed from v3.x to v3.9

@wixbot
Copy link
Author

wixbot commented Dec 5, 2013

I can confirm that the [WixBundleManufacturer] variable gets resolved to blank. The other variables in the InstallFolder variable are updated. Only the manufacturer variable is resolved to blank.

For example, notice INSTALLFOLDER assignment below:

[1C3C:5E94][2013-12-05T13:24:25]i301: Applying execute package: SetupProject1.msi, action: Install, path: C:\ProgramData\Package Cache\{E3E0F966-4370-4FB4-BBC7-26E99B1AA05F}v1.0.0.0\SetupProject1.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLFOLDER="C:\Program Files (x86)\\Bootstrapper1"'

Originally posted by robmen
AssignedTo changed from robmen to
Releasechanged fromv3.9tov3.x

@wixbot
Copy link
Author

wixbot commented Apr 15, 2015

Originally changed by rseanhall
AssignedTo set to shall

@wixbot
Copy link
Author

wixbot commented Apr 15, 2015

same root cause as 4630

Originally posted by rseanhall
Release changed from v3.x to v3.10
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added this to the v3.10 milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants