aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2014-07-10 14:45:54 +0300
committerDamian Minkov <damencho@jitsi.org>2014-07-10 14:45:54 +0300
commitc515f9bd00bfa10396a5f1cd9a8cb3d92a354b41 (patch)
tree511bf8f63d0afe341d8d047eae2b6dfec499dc26 /resources
parent6c3318349bf7b2fc15b917d2b96505e04e23cc6b (diff)
downloadjitsi-c515f9bd00bfa10396a5f1cd9a8cb3d92a354b41.zip
jitsi-c515f9bd00bfa10396a5f1cd9a8cb3d92a354b41.tar.gz
jitsi-c515f9bd00bfa10396a5f1cd9a8cb3d92a354b41.tar.bz2
Adds option to disable check for updates on startup in windows installer.
Diffstat (limited to 'resources')
-rw-r--r--resources/install/build.xml1
-rw-r--r--resources/install/windows/DefaultOverridesProps.wxi.template24
-rw-r--r--resources/install/windows/en-us.wxl2
-rw-r--r--resources/install/windows/fr-fr.wxl2
-rw-r--r--resources/install/windows/installer-windows.wxs47
5 files changed, 68 insertions, 8 deletions
diff --git a/resources/install/build.xml b/resources/install/build.xml
index 4036c35..6cb6a24 100644
--- a/resources/install/build.xml
+++ b/resources/install/build.xml
@@ -582,6 +582,7 @@
<filterchain>
<tokenfilter>
<replacestring from="@@lib" to="${wix.heat.jitsi.lib.dir}" />
+ <replacestring from="@APP_NAME@" to="${application.name}" />
</tokenfilter>
</filterchain>
</copy>
diff --git a/resources/install/windows/DefaultOverridesProps.wxi.template b/resources/install/windows/DefaultOverridesProps.wxi.template
index 222bd64..d4f6557 100644
--- a/resources/install/windows/DefaultOverridesProps.wxi.template
+++ b/resources/install/windows/DefaultOverridesProps.wxi.template
@@ -8,6 +8,30 @@
-->
<Fragment>
<ComponentGroup Id="ComponentGroup_DefaultOverrides">
+ <Component
+ Id="ComponentGroup_DefaultOverrides_Disable_Updates_Check"
+ Directory="@@lib"
+ Guid="F09D26F0-402F-4CC1-AD28-9D88B9316AC1"
+ Win64="$(var.Win64)">
+ <Condition><![CDATA[DISABLE_UPDATES = 1 OR CREATE_DISABLE_UPDATES_CHECK = 1]]></Condition>
+ <IniFile
+ Id="DefaultOverrides_DisableUpdatesCheck"
+ Action="addLine"
+ Directory="@@lib"
+ Name="jitsi-default-overrides.properties"
+ Section="#dummy"
+ Key="net.java.sip.communicator.plugin.updatechecker.ENABLED"
+ Value="false"
+ />
+ <RegistryValue
+ Key="Software\Microsoft\@APP_NAME@"
+ KeyPath="yes"
+ Name="DisableUpdatesCheck"
+ Root="HKCU"
+ Type="integer"
+ Value="1" />
+ <CreateFolder/>
+ </Component>
<Component
Id="ComponentGroup_DefaultOverrides_Provisioning_Method"
Directory="@@lib"
diff --git a/resources/install/windows/en-us.wxl b/resources/install/windows/en-us.wxl
index c64ea72..d248f3b 100644
--- a/resources/install/windows/en-us.wxl
+++ b/resources/install/windows/en-us.wxl
@@ -18,6 +18,8 @@
<String Id="ShortcutsAndRegistryDlg_CreateAutoStart" Overridable="yes">&amp;Auto-start when computer restarts or reboots</String>
<String Id="ShortcutsAndRegistryDlg_AssociateProtocols" Overridable="yes">&amp;Associate Protocols</String>
<String Id="ShortcutsAndRegistryDlg_DefaultIMApp" Overridable="yes">M&amp;ake [ProductName] the default Instant Messaging Provider (Outlook integration)</String>
+ <String Id="ShortcutsAndRegistryDlg_DisableUpdates" Overridable="yes">&amp;Disable check for updates on startup</String>
+ <String Id="ShortcutsAndRegistryDlg_VariousSettings" Overridable="yes">&amp;Various Settings</String>
<String Id="WelcomeText1" Overridable="yes"><![CDATA[@WelcomeText1@]]></String>
<String Id="WelcomeText2" Overridable="yes"><![CDATA[@WelcomeText2@]]></String>
diff --git a/resources/install/windows/fr-fr.wxl b/resources/install/windows/fr-fr.wxl
index 76f7da7..4dcf621 100644
--- a/resources/install/windows/fr-fr.wxl
+++ b/resources/install/windows/fr-fr.wxl
@@ -18,6 +18,8 @@
<String Id="ShortcutsAndRegistryDlg_CreateAutoStart" Overridable="yes">Lancer automatiquement quand l’ordinateur démarre</String>
<String Id="ShortcutsAndRegistryDlg_AssociateProtocols" Overridable="yes">&amp;Protocoles associés</String>
<String Id="ShortcutsAndRegistryDlg_DefaultIMApp" Overridable="yes">M&amp;ake [ProductName] the default Instant Messaging Provider (Outlook integration)</String>
+ <String Id="ShortcutsAndRegistryDlg_DisableUpdates" Overridable="yes">&amp;Disable check for updates on startup</String>
+ <String Id="ShortcutsAndRegistryDlg_VariousSettings" Overridable="yes">&amp;Various Settings</String>
<String Id="WelcomeText1" Overridable="yes"><![CDATA[Ce logiciel est developpé par la communauté de [ProductName] ]]></String>
<String Id="WelcomeText2" Overridable="yes"><![CDATA[Découvrir notre site : @APP_WEB@]]></String>
diff --git a/resources/install/windows/installer-windows.wxs b/resources/install/windows/installer-windows.wxs
index 1e31d2e..3f4f07b 100644
--- a/resources/install/windows/installer-windows.wxs
+++ b/resources/install/windows/installer-windows.wxs
@@ -193,15 +193,18 @@
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.ShortcutsAndRegistryDlgDescription)" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
- <Control Id="ShortcutGroup" Type="GroupBox" X="20" Y="60" Width="330" Height="90" Text="!(loc.ShortcutsAndRegistryDlg_CreateShortcuts)" />
- <Control Id="StartMenuShortcutCheckBox" Type="CheckBox" X="25" Y="75" Width="320" Height="15" Property="CREATE_START_MENU_SHORTCUT" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateStartMenu)" />
- <Control Id="DesktopShortcutCheckBox" Type="CheckBox" X="25" Y="90" Width="320" Height="15" Property="CREATE_DESKTOP_SHORTCUT" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateDesktop)" />
- <Control Id="StartupShortcutCheckBox" Type="CheckBox" X="25" Y="105" Width="320" Height="15" Property="HAS_STARTUP_REGISTRY" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateAutoStart)" />
- <Control Id="DefaultIMApplicationCheckBox" Type="CheckBox" X="25" Y="120" Width="320" Height="25" Property="SET_DEFAULT_IM_APP" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_DefaultIMApp)" />
+ <Control Id="ShortcutGroup" Type="GroupBox" X="20" Y="50" Width="330" Height="50" Text="!(loc.ShortcutsAndRegistryDlg_CreateShortcuts)" />
+ <Control Id="StartMenuShortcutCheckBox" Type="CheckBox" X="25" Y="65" Width="320" Height="15" Property="CREATE_START_MENU_SHORTCUT" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateStartMenu)" />
+ <Control Id="DesktopShortcutCheckBox" Type="CheckBox" X="25" Y="80" Width="320" Height="15" Property="CREATE_DESKTOP_SHORTCUT" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateDesktop)" />
- <Control Id="RegistryGroup" Type="GroupBox" X="20" Y="155" Width="330" Height="50" Text="!(loc.ShortcutsAndRegistryDlg_AssociateProtocols)" />
- <Control Id="SipRegistryEntriesCheckBox" Type="CheckBox" X="25" Y="170" Width="320" Height="15" Property="CREATE_SIP_REGISTRY_ENTRIES" CheckBoxValue="1" Text="&amp;SIP" />
- <Control Id="XmppRegistryEntriesCheckBox" Type="CheckBox" X="25" Y="185" Width="320" Height="15" Property="CREATE_XMPP_REGISTRY_ENTRIES" CheckBoxValue="1" Text="&amp;XMPP" />
+ <Control Id="VeriousGroup" Type="GroupBox" X="20" Y="105" Width="330" Height="75" Text="!(loc.ShortcutsAndRegistryDlg_VariousSettings)" />
+ <Control Id="StartupShortcutCheckBox" Type="CheckBox" X="25" Y="120" Width="320" Height="15" Property="HAS_STARTUP_REGISTRY" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_CreateAutoStart)" />
+ <Control Id="DisableUpdatesCheckCheckBox" Type="CheckBox" X="25" Y="135" Width="320" Height="15" Property="CREATE_DISABLE_UPDATES_CHECK" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_DisableUpdates)" />
+ <Control Id="DefaultIMApplicationCheckBox" Type="CheckBox" X="25" Y="150" Width="320" Height="25" Property="SET_DEFAULT_IM_APP" CheckBoxValue="1" Text="!(loc.ShortcutsAndRegistryDlg_DefaultIMApp)" />
+
+ <Control Id="RegistryGroup" Type="GroupBox" X="20" Y="185" Width="330" Height="45" Text="!(loc.ShortcutsAndRegistryDlg_AssociateProtocols)" />
+ <Control Id="SipRegistryEntriesCheckBox" Type="CheckBox" X="25" Y="200" Width="320" Height="15" Property="CREATE_SIP_REGISTRY_ENTRIES" CheckBoxValue="1" Text="&amp;SIP" />
+ <Control Id="XmppRegistryEntriesCheckBox" Type="CheckBox" X="25" Y="215" Width="320" Height="15" Property="CREATE_XMPP_REGISTRY_ENTRIES" CheckBoxValue="1" Text="&amp;XMPP" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
@@ -294,6 +297,12 @@
<Custom Action="UnsetCREATE_STARTUP_REGISTRY" After="SetINSTALLDIR">
<![CDATA[NOT HAS_STARTUP_REGISTRY AND NOT (HAS_STARTUP_REGISTRY = "#1")]]>
</Custom>
+ <Custom Action="SetCREATE_DISABLE_UPDATES_CHECK" After="SetINSTALLDIR">
+ <![CDATA[HAS_DISABLE_UPDATES_CHECK_REGISTRY = "#1"]]>
+ </Custom>
+ <Custom Action="UnsetCREATE_DISABLE_UPDATES_CHECK" After="SetINSTALLDIR">
+ <![CDATA[NOT HAS_DISABLE_UPDATES_CHECK_REGISTRY]]>
+ </Custom>
<?ifdef JRESetup ?>
<Custom Action="SetWIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" After="AppSearch">
@@ -334,6 +343,14 @@
Property="CREATE_STARTUP_REGISTRY"
Value="1" />
<CustomAction
+ Id="SetCREATE_DISABLE_UPDATES_CHECK"
+ Property="CREATE_DISABLE_UPDATES_CHECK"
+ Value="1" />
+<CustomAction
+ Id="UnsetCREATE_DISABLE_UPDATES_CHECK"
+ Property="CREATE_DISABLE_UPDATES_CHECK"
+ Value="0" />
+<CustomAction
Id="SetINSTALLDIR"
Property="INSTALLDIR"
Value="[SIP_COMMUNICATOR_AUTOUPDATE_INSTALLDIR]" />
@@ -400,6 +417,12 @@
<Custom Action="UnsetCREATE_STARTUP_REGISTRY" After="SetINSTALLDIR">
<![CDATA[NOT HAS_STARTUP_REGISTRY AND NOT (HAS_STARTUP_REGISTRY = "#1")]]>
</Custom>
+ <Custom Action="SetCREATE_DISABLE_UPDATES_CHECK" After="SetINSTALLDIR">
+ <![CDATA[HAS_DISABLE_UPDATES_CHECK_REGISTRY AND HAS_DISABLE_UPDATES_CHECK_REGISTRY = "#1"]]>
+ </Custom>
+ <Custom Action="UnsetCREATE_DISABLE_UPDATES_CHECK" After="SetINSTALLDIR">
+ <![CDATA[NOT HAS_DISABLE_UPDATES_CHECK_REGISTRY]]>
+ </Custom>
<?ifdef JRESetup ?>
<Custom Action="SetWIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" After="AppSearch">
@@ -443,6 +466,14 @@
<SetProperty Id="HAS_STARTUP_REGISTRY" After="AppSearch" Value="[HAS_STARTUP_SHORTCUT]">
HAS_STARTUP_SHORTCUT
</SetProperty>
+<Property Id="HAS_DISABLE_UPDATES_CHECK_REGISTRY" Value="#0">
+ <RegistrySearch
+ Id="RegistrySearch_HasDisableUpdatesCheckRegistry"
+ Key="Software\Microsoft\@APP_NAME@"
+ Name="DisableUpdatesCheck"
+ Root="HKCU"
+ Type="raw" />
+</Property>
<Property Id="IS_DEFAULT_IM_APP">
<RegistrySearch
Id="RegistrySearch_IsDefaultIMApp"