-
-
Notifications
You must be signed in to change notification settings - Fork 4
[API] Modernization fixes #82
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,8 +22,8 @@ | |
| <WixVariable Id="WixStdbaThemeXml" Value="BundleTheme.xml" /> | ||
| <WixVariable Id="WixStdbaThemeWxl" Value="BundleTheme.wxl" /> | ||
| <Chain> | ||
| <PackageGroupRef Id="NetFx48Web" /> | ||
| <PackageGroupRef Id="vcredists" /> | ||
| <PackageGroupRef Id="FwNetFx48Web" /> | ||
| <PackageGroupRef Id="prerequisites" /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can |
||
| <RollbackBoundary /> | ||
| <PackageGroupRef Id='AppPackageGroup'/> | ||
| </Chain> | ||
|
|
@@ -53,8 +53,8 @@ | |
| <WixVariable Id="NetFx48WebInstallCondition" Value="" Overridable="yes" /> | ||
| <WixVariable Id="NetFx48WebPackageDirectory" Value="redist\" Overridable="yes" /> | ||
|
|
||
| <PackageGroup Id="NetFx48Web"> | ||
| <ExePackage Id="NetFx48Web" | ||
| <PackageGroup Id="FwNetFx48Web"> | ||
| <ExePackage Id="FwNetFx48Web" | ||
| InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html"" | ||
| RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html"" | ||
| UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx48FullLog].html"" | ||
|
|
@@ -78,7 +78,7 @@ | |
| </PackageGroup> | ||
| </Fragment> | ||
|
|
||
| <?if $(sys.BUILDARCH)="x86"?> | ||
| <?if $(var.BuildArch)="x86"?> | ||
| <!-- 32bit VC++ redistributable download section --> | ||
| <!-- When updating or adding a redistributable you can generate the RemotePayload with the WIX's heat tool --> | ||
| <!-- e.g. "%WIX%\bin\heat" payload C:\fwroot\fw\PatchableInstaller\libs\vcredist_2008_x64.exe -o c:\Repositories\fw\PatchableInstaller\VC2008Frag.wxs --> | ||
|
|
@@ -200,7 +200,7 @@ | |
| </ExePackage> | ||
| </PackageGroup> | ||
| </Fragment> | ||
| <?elseif $(sys.BUILDARCH)="x64"?> | ||
| <?elseif $(var.BuildArch)="x64"?> | ||
| <!-- 64bit VC++ redistributable download section --> | ||
| <!-- When updating or adding a redistributable you can generate the RemotePayload with the WIX's heat tool --> | ||
| <!-- e.g. "%WIX%\bin\heat" payload C:\fwroot\fw\PatchableInstaller\libs\vcredist_2008_x64.exe -o c:\Repositories\fw\PatchableInstaller\VC2008Frag.wxs --> | ||
|
|
@@ -334,7 +334,7 @@ | |
| DownloadUrl="$(var.VC15to19RedistWebLink)" | ||
| InstallCommand="/quiet /norestart" | ||
| DetectCondition="!(wix.CPP14DetectCondition)"> | ||
| <RemotePayload | ||
| <RemotePayload | ||
| Size="25169400" | ||
| Version="14.29.30040.0" | ||
| ProductName="Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.28.29914" | ||
|
|
@@ -345,7 +345,7 @@ | |
| </PackageGroup> | ||
| </Fragment> | ||
| <?else?> | ||
| <?error Unsupported value of sys.BUILDARCH=$(sys.BUILDARCH)?> | ||
| <?error Unsupported value of BuildArch=$(var.BuildArch)?> | ||
| <?endif?> | ||
| <?include ../Common/Redistributables.wxi?> | ||
| </Wix> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,12 +3,12 @@ call setVars.bat %* | |
|
|
||
| REM build the ONLINE EXE bundle. | ||
| ( | ||
| candle.exe -v -arch %Arch% -dApplicationName=%AppName% -dSafeApplicationName=%SafeAppName% -dYear=%CopyrightYear% -dManufacturer=%Manufacturer% -dSafeManufacturer=%SafeManufacturer% -dVersionNumber=%Version% -dUpgradeCode=%UPGRADECODEGUID% -dTruncatedVersion=%TRUNCATEDVERSION% -ext WixFirewallExtension -ext WixUtilExtension -ext WixBalExtension -ext WixUIExtension -ext WixNetFxExtension -ext WixDependencyExtension Bundle.wxs | ||
| candle.exe -v -arch %Arch% -dBuildArch=%Arch% -dApplicationName=%AppName% -dSafeApplicationName=%SafeAppName% -dYear=%CopyrightYear% -dManufacturer=%Manufacturer% -dSafeManufacturer=%SafeManufacturer% -dVersionNumber=%Version% -dUpgradeCode=%UPGRADECODEGUID% -dTruncatedVersion=%TRUNCATEDVERSION% -ext WixFirewallExtension -ext WixUtilExtension -ext WixBalExtension -ext WixUIExtension -ext WixNetFxExtension -ext WixDependencyExtension Bundle.wxs | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Passing %arch% twice isn't a problem per se, but it seems redundant. I think |
||
| ) && ( | ||
| light.exe -v Bundle.wixobj -ext WixFirewallExtension -ext WixUIExtension -ext WixBalExtension -ext WixUtilExtension -ext WixNetFxExtension -ext WixDependencyExtension %SuppressICE% -out %SafeAppName%_%Version%_Online.exe | ||
| ) && ( | ||
| @REM build the OFFLINE EXE bundle. | ||
| candle.exe -v -arch %Arch% -dApplicationName=%AppName% -dSafeApplicationName=%SafeAppName% -dYear=%CopyrightYear% -dManufacturer=%Manufacturer% -dSafeManufacturer=%SafeManufacturer% -dVersionNumber=%Version% -dUpgradeCode=%UPGRADECODEGUID% -dTruncatedVersion=%TRUNCATEDVERSION% -ext WixFirewallExtension -ext WixUtilExtension -ext WixBalExtension -ext WixUIExtension -ext WixNetFxExtension -ext WixDependencyExtension OfflineBundle.wxs | ||
| candle.exe -v -arch %Arch% -dBuildArch=%Arch% -dApplicationName=%AppName% -dSafeApplicationName=%SafeAppName% -dYear=%CopyrightYear% -dManufacturer=%Manufacturer% -dSafeManufacturer=%SafeManufacturer% -dVersionNumber=%Version% -dUpgradeCode=%UPGRADECODEGUID% -dTruncatedVersion=%TRUNCATEDVERSION% -ext WixFirewallExtension -ext WixUtilExtension -ext WixBalExtension -ext WixUIExtension -ext WixNetFxExtension -ext WixDependencyExtension OfflineBundle.wxs | ||
| ) && ( | ||
| light.exe -v OfflineBundle.wixobj -ext WixFirewallExtension -ext WixUIExtension -ext WixBalExtension -ext WixUtilExtension -ext WixNetFxExtension -ext WixDependencyExtension %SuppressICE% -out %SafeAppName%_%Version%_Offline.exe | ||
| ) && ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,16 +32,29 @@ SHIFT | |
| SET SafeManufacturer=%1 | ||
| SHIFT | ||
| SET Arch=%1 | ||
| if "%Arch%" == "" set Arch=x86 | ||
| if "%Arch%" == "" set Arch=x64 | ||
| if /I not "%Arch%"=="x64" ( | ||
| echo ERROR: Unsupported architecture "%Arch%". FieldWorks installer builds are x64-only. | ||
| exit /b 1 | ||
| ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can change the default Arch to x64 (preferably in a follow-up PR with other breaking changes), but we shouldn't demand x64, since FLEx Bridge, which also uses the genericinstaller, is x86. |
||
|
|
||
| REM ICE validation must be run with admin privileges. The jenkins user is not an admin. Suppress ICE validation so it doesn't fail. | ||
| REM For some reason, ICE08 works without admin, and the quickest way to suppress everything else on the command line is to specify one ICE to run. | ||
| C:\Windows\System32\whoami /groups | find "BUILTIN\Administrators" > nul 2> nul | ||
| if errorlevel 1 set SuppressICE=-ice:ICE08 | ||
|
|
||
| REM Default WIX if not already set | ||
| if "%WIX%"=="" if exist "%LOCALAPPDATA%\FieldWorksTools\Wix314\heat.exe" set WIX=%LOCALAPPDATA%\FieldWorksTools\Wix314 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's let the client do this |
||
|
|
||
| REM Ensure WiX tools are on the PATH | ||
| where heat >nul 2>nul | ||
| if not %errorlevel% == 0 set PATH=%WIX%/bin;%PATH% | ||
| if %errorlevel% == 0 goto :WixPathReady | ||
| if exist "%WIX%\bin\heat.exe" ( | ||
| set PATH=%WIX%\bin;%PATH% | ||
| ) else ( | ||
| if exist "%WIX%\heat.exe" set PATH=%WIX%;%PATH% | ||
| ) | ||
| :WixPathReady | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On second thought, let's not change this at all (unless you can think of a specific case when %WIX%\heat.exe exists); the client is always welcome to put WiX on the PATH before calling this script. The error with |
||
|
|
||
| REM single quotes, since we expect %msbuild% is already double giquoted | ||
| if '%msbuild%' == '' set msbuild=msbuild | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Include> | ||
| <!-- Must be paired with an <CustomAction Id='LaunchFile'..> in Overrides.wxi --> | ||
| <!-- <Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom> --> | ||
| <Custom Action='LaunchUnicodeCharEditor' After='InstallFinalize'>NOT Installed</Custom> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops (this change was made by the FLEx build process) |
||
| </Include> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Fw" doesn't sound very generic. I don't think this should be renamed.