mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
Add dummy admin properties file in Windows installer
This commit is contained in:
13
dist/common/config.properties
vendored
Normal file
13
dist/common/config.properties
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# This is the Cryptomator administrative configuration file.
|
||||
# It is a simple key-value pair file.
|
||||
# Lines starting with '#' are comments and will be ignored.
|
||||
#
|
||||
# There are some shorthands for well known folders:
|
||||
# Substitution Key | Variable Value
|
||||
# @{appdir} | The application installation directory.
|
||||
# @{appdata} | %APPDATA% (Windows only).
|
||||
# @{localappdata} | %LOCALAPPDATA% (Windows only).
|
||||
# @{userhome} | The user's home directory.
|
||||
#
|
||||
# Example:
|
||||
# cryptomator.pluginDir=@{appdata}/Cryptomator/Plugins #Sets a plugin directory and enables plugin loading
|
||||
30
dist/win/resources/main.wxs
vendored
30
dist/win/resources/main.wxs
vendored
@@ -87,7 +87,7 @@
|
||||
|
||||
<!-- Non-Opening ProgID -->
|
||||
<ns0:DirectoryRef Id="INSTALLDIR">
|
||||
<ns0:Component Bitness="always64" Id="nonStartingProgID" >
|
||||
<ns0:Component Bitness="always64" Id="nonStartingProgID">
|
||||
<ns0:File Id="IconFileForEncryptedData" KeyPath="yes" Source="$(env.JP_WIXWIZARD_RESOURCES)\$(var.IconFileEncryptedData)" Name="$(var.IconFileEncryptedData)"/>
|
||||
<ns0:ProgId Id="$(var.JpAppName).Encrypted.1" Description="$(var.JpAppName) Encrypted Data" Icon="IconFileForEncryptedData" IconIndex="0">
|
||||
<ns0:Extension Id="c9r" Advertise="no" ContentType="$(var.ProgIdContentType)">
|
||||
@@ -99,6 +99,32 @@
|
||||
</ns0:Component>
|
||||
</ns0:DirectoryRef>
|
||||
|
||||
<ns0:StandardDirectory Id="CommonAppDataFolder">
|
||||
<ns0:Directory Id="CryptomatorDesktopProgramData" Name="Cryptomator">
|
||||
<ns0:Component Id="AdminPropertiesDir" Guid="c078b7da-ba6e-4069-a5ab-5c0f0f9856a0">
|
||||
<ns0:CreateFolder>
|
||||
<util:PermissionEx
|
||||
User="SYSTEM"
|
||||
GenericAll="yes"/>
|
||||
<util:PermissionEx
|
||||
User="Administrators"
|
||||
GenericAll="yes"/>
|
||||
<util:PermissionEx
|
||||
User="Users"
|
||||
GenericRead="yes"
|
||||
GenericExecute="yes"/>
|
||||
</ns0:CreateFolder>
|
||||
</ns0:Component>
|
||||
<ns0:Component Id="AdminPropertiesFile" NeverOverwrite="yes" Permanent="yes">
|
||||
<ns0:File Id="EmptyAdminConfig" Source="$(env.JP_WIXWIZARD_RESOURCES)\..\..\common\config.properties" Name="config.properties" KeyPath="yes">
|
||||
<util:PermissionEx User="SYSTEM" GenericAll="yes"/>
|
||||
<util:PermissionEx User="Administrators" GenericAll="yes"/>
|
||||
<util:PermissionEx User="Users" GenericRead="yes" GenericExecute="yes"/>
|
||||
</ns0:File>
|
||||
</ns0:Component>
|
||||
</ns0:Directory>
|
||||
</ns0:StandardDirectory>
|
||||
|
||||
<!-- Standard required root -->
|
||||
|
||||
<ns0:Feature Id="DefaultFeature" Title="!(loc.MainFeatureTitle)" Level="1">
|
||||
@@ -107,6 +133,8 @@
|
||||
<ns0:ComponentGroupRef Id="FileAssociations"/>
|
||||
<!-- Ref to additional ProgIDs -->
|
||||
<ns0:ComponentRef Id="nonStartingProgID" />
|
||||
<ns0:ComponentRef Id="AdminPropertiesDir" />
|
||||
<ns0:ComponentRef Id="AdminPropertiesFile" />
|
||||
</ns0:Feature>
|
||||
|
||||
<ns0:CustomAction Id="JpSetARPINSTALLLOCATION" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
|
||||
|
||||
Reference in New Issue
Block a user