Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #82 from adobe/pflynn/windows-installer2
Browse files Browse the repository at this point in the history
Initial commit of Wix installer scripts & assets from build machine.
  • Loading branch information
gruehle committed Aug 28, 2012
2 parents e529914 + 3a53c0e commit f28761a
Show file tree
Hide file tree
Showing 25 changed files with 2,160 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Expand Up @@ -29,4 +29,9 @@ libcef_dll
tools

/installer/mac/staging/
/installer/win/staging/

/installer/win/staging/
*.wixpdb
*.wixobj
bracketsharvestmanager.wxs
fr-fr.mst
90 changes: 90 additions & 0 deletions installer/win/Brackets.wxs
@@ -0,0 +1,90 @@
<?xml version='1.0' encoding="UTF-8"?>

<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'
xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">


<Product Id='*' UpgradeCode='330ed78b-1b84-4a2d-87a6-34970c9baab7' Name='Brackets Sprint 13' Language='1033'
Version='0.13' Manufacturer='brackets.io' >

<Package Description='Brackets'
Comments='Installer for Brackets'
Manufacturer='Adobe Systems Inc.'
InstallerVersion='300'
Compressed='yes'
Languages="1033,1036"/>

<Media Id='1' Cabinet='product.cab' EmbedCab='yes' />


<Property Id="ARPPRODUCTICON" Value="brackets.ico"/>
<Icon Id="brackets.ico" SourceFile="brackets.ico"/>
<Property Id="ALLUSERS" Value="1" />


<DirectoryRef Id="INSTALLDIR">
</DirectoryRef>

<DirectoryRef Id="ProgramMenuFolder">
<Component Id="StartMenuShortcut" Guid="{C90B75F4-7E02-43A9-9A2C-FC1A251349EC}" Win64="no" >
<Shortcut Id="AppShortcut" Name="Brackets Sprint 13"
Description="Shortcut to Brackets"
Target="[INSTALLDIR]\Brackets.exe" />
<RegistryValue Root="HKCU" Key="Software\Adobe\Brackets"
Name="Adobe Brackets ShortcutInstalled" Type="integer"
Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>

<!-- Start Menu Shortcuts-->
<UIRef Id="WixUI_MyInstallDir" />
<UIRef Id="WixUI_ErrorProgressText" />


<!-- Launch app after install -->

<Property Id="LAUNCHAPPONEXIT" Value="1" />
<Property Id="WixShellExecTarget" Value="[#fil7EE01D0693DA0F92C26C5F3007D1BF2C]" />
<CustomAction Id="LaunchApplication" FileKey="fil7EE01D0693DA0F92C26C5F3007D1BF2C" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" />

<UI>
<Publish Dialog="MyExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="MyExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchApplication">LAUNCHAPPONEXIT=1 and NOT INSTALLED AND NOT REMOVE="ALL"</Publish>

</UI>


<!-- Add custom eula -->
<!-- Commenting out eula for shadow because we don't plan to include it in installser -->
<!-- <WixVariable Id="WixUILicenseRtf" Value="!(loc.LicenseRtf)" /> -->

<!-- Delete app prefs folder during uninstall -->

<!-- Add image assets -->
<WixVariable Id="WixUIDialogBmp" Value="shadow_beta_win_installer_bg_003.jpg" />
<WixVariable Id="WixUIBannerBmp" Value="shadow_win_install_tile_003.jpg" />

<!--Setup Folder Structure -->
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder'>
<Directory Id='INSTALLDIR' Name='Brackets Sprint 13'/>
</Directory>
<Directory Id="ProgramMenuFolder">
<!-- <Directory Id="ProgramMenuProductFolder" Name="Brackets Sprint 13" /> -->
</Directory>
</Directory>

<!-- Set default install location -->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<!-- Install Files -->
<Feature Id="MainApplication" Title="Main Application" Level="1">
<!-- From devmanager.wxs -->
<ComponentGroupRef Id='BRACKETSHARVESTMANAGER'/>

<ComponentRef Id='StartMenuShortcut' />
</Feature>
</Product>
</Wix>

<!-- filD0C88F09CF264F61C7551B69762FB244 -->

20 changes: 20 additions & 0 deletions installer/win/Brackets_en-us.wxl
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="LicenseRtf" Overridable="yes">EULA_en-us.rtf</String>
<String Id="MaintenanceTypeDlgTitle" Overridable="yes">{\WixUI_Font_Title}Remove installation</String>
<String Id="ShortcutDescription">Shortcut to Brackets</String>
<String Id="ExitDialogLaunchApp">Launch Brackets when setup exits.</String>
<String Id="UserExitTitle" Overridable="yes">{\WixUI_Font_Title}[ProductName] Setup Wizard was interrupted</String>
<String Id="ExitDialogTitle" Overridable="yes">{\WixUI_Font_Title}Completed the [ProductName] Setup Wizard</String>
</WixLocalization>
24 changes: 24 additions & 0 deletions installer/win/Brackets_fr-fr.wxl
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<WixLocalization Culture="fr-fr" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="LicenseRtf" Overridable="yes">EULA_fr-fr.rtf</String>

<String Id="MaintenanceTypeDlgTitle" Overridable="yes">{\WixUI_Font_Title}Supprimer le logiciel installé</String>
<String Id="XpNotSupported">Cette application n’est prise en charge que sous Windows Vista, Windows Server 2008 et versions ultérieures.</String>
<String Id="ExitDialogBonjour">REMARQUE : l’application Bonjour est introuvable sur cet ordinateur. Reportez-vous au guide d’installation pour savoir comment installer ce logiciel.</String>
<String Id="ExitDialogCheckInstallGuide">Reportez-vous au guide d’installation pour savoir comment installer l’extension Chrome.</String>
<String Id="ShortcutDescription">[Lo] !é=Shortcut to Brackets=!</String>
<String Id="ExitDialogLaunchApp">[Ll] !é=Launch Brackets when setup exits.=!</String>
<String Id="UserExitTitle" Overridable="yes">[Ly] !é=[ProductName] Setup Wizard was interrupted=!</String>
<String Id="ExitDialogTitle" Overridable="yes">[Lx] !é=Completed the [ProductName] Setup Wizard=!</String>
</WixLocalization>
44 changes: 44 additions & 0 deletions installer/win/ExitDialog.wxs
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="MyExitDialog" Width="370" Height="270" Title="!(loc.ExitDialog_Title)">
<Control Id="Finish" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="DescriptionRemove" Type="Text" X="25" Y="70" Hidden="yes" Width="320" Height="80" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogDescription)" >
<Condition Action="show">Installed</Condition>
</Control>
<Control Id="DescriptionInstall" Hidden="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Transparent="yes" NoPrefix="yes"
Text="!(loc.UserExitDescription2)" >
<Condition Action="show">NOT Installed</Condition>
</Control>


<Control Id="Title" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogTitle)" />
<Control Id="LaunchCheckBox" Type="CheckBox" X="10" Y="243" Width="170" Height="17" Property="LAUNCHAPPONEXIT" Hidden="yes" CheckBoxValue="1" Text=" !(loc.ExitDialogLaunchApp)">
<Condition Action="show">NOT Installed</Condition>
</Control>
</Dialog>

<InstallUISequence>
<Show Dialog="MyExitDialog" OnExit="success" Overridable="yes" />
</InstallUISequence>

<AdminUISequence>
<Show Dialog="MyExitDialog" OnExit="success" Overridable="yes" />
</AdminUISequence>
</UI>
</Fragment>
</Wix>
36 changes: 36 additions & 0 deletions installer/win/InstallDirDlg.wxs
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="MyInstallDirDlg" Width="370" Height="270" Title="!(loc.InstallDirDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
<!-- <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> -->
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>

<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgTitle)" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />

<Control Id="FolderLabel" Type="Text" X="20" Y="60" Width="290" Height="30" NoPrefix="yes" Text="!(loc.InstallDirDlgFolderLabel)" />
<Control Id="Folder" Type="PathEdit" X="20" Y="100" Width="320" Height="18" Property="WIXUI_INSTALLDIR" Indirect="yes" />
<Control Id="ChangeFolder" Type="PushButton" X="20" Y="120" Width="56" Height="17" Text="!(loc.InstallDirDlgChange)" />
</Dialog>
</UI>

</Fragment>
</Wix>
44 changes: 44 additions & 0 deletions installer/win/LicenseAgreementDlg.wxs
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="MyLicenseAgreementDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.LicenseAgreementDlgLicenseAcceptedCheckBox)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1</Publish>
<Condition Action="disable"><![CDATA[LicenseAccepted <> "1"]]></Condition>
<Condition Action="enable">LicenseAccepted = "1"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no">
<Text SourceFile="!(loc.LicenseRtf)" />
</Control>
<!--
<Control Id="Print" Type="PushButton" X="112" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)">
<Publish Event="DoAction" Value="WixUIPrintEula">1</Publish>
</Control>
-->
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgTitle)" />
</Dialog>
</UI>


</Fragment>
</Wix>
52 changes: 52 additions & 0 deletions installer/win/MaintenanceWelcomeDlg.wxs
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="MyMaintenanceWelcomeDlg" Width="370" Height="270" Title="!(loc.MaintenanceWelcomeDlg_Title)">
<Control Id="Remove" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
<Condition Action="show">Installed AND ALLUSERS</Condition>
<Condition Action="enable">Installed</Condition>
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="RemoveNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
<Condition Action="show">Installed AND NOT ALLUSERS</Condition>
<Condition Action="enable">Installed</Condition>
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="RemoveTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgRemoveTitle)">
<Condition Action="show">Installed</Condition>
</Control>
<Control Id="RemoveText" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgRemoveText)">
<Condition Action="show">Installed</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.VerifyReadyDlgBannerBitmap)" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
</Dialog>
</UI>
</Fragment>
</Wix>

0 comments on commit f28761a

Please sign in to comment.