configuration-files

Config transformation in WIX setup

不打扰是莪最后的温柔 提交于 2019-12-06 13:31:04
I'm creating a MSI setup with WIX for my Web Application. This works correct. The only thing that I don't get to work is to enabling the config transformation of the standard web application publish method. I understand that you can add the using tag for existing target files. I try'ed to add the TransformXml to the AfterBuild Target in the project file of the WIX installer but that doesn't work. <TransformXml Source="Web.Config" Transform="Web.$(Configuration).config" Destination="Web.Config" /> Can someone help me? I created a test project for this called WebApplicationWix I didn't see any

Having WiX upgrade a config file with missing items

主宰稳场 提交于 2019-12-06 11:33:50
I am just starting to use WiX as my installation framework for my existing application. The application has an App.Config file that controls various customer-specific settings. The majority of these settings are modified in-house, and are not user-controllable. An example of such a config file would be: [...snip] <applicationSettings> <setting name="DatabaseConnectionString" serializeAs="String"> <value>Data Source=localhost;Initial Catalog=CustomersDatabase;Persist Security Info=True;Integrated Security=True</value> </setting> </applicationSettings> [snip...] When a newer version of the

File permissions across user profiles

允我心安 提交于 2019-12-06 06:57:14
问题 I am using ClickOnce deployment for a Windows Forms application and I need configuration information on a machine basis that persists across deployments and across user profiles. As such, per user configuration does not help. I would also like the configuration file to be easily accessible with a text editor in a well known location on each machine (well known, that is, by the organization). The problem I have is that ClickOnce overwrites the app.config on each deployment. I am aware of the

PHP GoDaddy maximum execution time not working

青春壹個敷衍的年華 提交于 2019-12-06 06:43:53
问题 The default maximun_execution_time is 120 seconds. I have followed all instructions to create php.ini file and placed in correct location public_html. I ran phpinfo() and found that the maximun_execution_time has successfully adjusted to 600 seconds. But the problem is it still not able to execute the script which more than 120 seconds. It will return error code 500 Internal server error after 2 minutes of execution time. sleep.php file: <?php $sleepTime = isset($_POST['sleepTime'])? intval($

Reading and writing values in.NET .config files

人走茶凉 提交于 2019-12-06 06:39:44
I want to use a custom path for a user.config file, rather than have .NET read it from the default location. I am opening the file like this: ExeConfigurationFileMap configMap = new ExeConfigurationFileMap(); configMap.ExeConfigFilename = String.Format("{0}\\user.config",AppDataPath); Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.PerUserRoamingAndLocal); But I can't figure out how to actually read settings out of it, I get a compile error saying that the values are inaccessible when I try to get a value through AppData or

yii2 - how to set currency in main config

旧街凉风 提交于 2019-12-06 06:11:33
问题 I need to set currency format as default in config. Now when I change language in frontend the currency is changing too. How can I set it by default 回答1: In Config/main.php eg: 'component' => [ .......... 'formatter' => [ 'class' => 'yii\i18n\Formatter', 'dateFormat' => 'dd.MM.yyyy', 'decimalSeparator' => ',', 'thousandSeparator' => ' ', 'currencyCode' => 'EUR', 'nullDisplay' => '', ], 来源: https://stackoverflow.com/questions/31201293/yii2-how-to-set-currency-in-main-config

Adding a Custom Configuration file in C# application

拥有回忆 提交于 2019-12-06 05:29:37
Is it possible to create a custom configuration file (other than app.config) that can be processed by classes in the System.Configuration namespace? I have seen a ton of articles that talk about custom sections (inside the app.config file) but I would like to make an entirely new config file. Is there any decent documentation that covers this topic? thanks You do not state what you want to achieve by having a separate file, but there are a couple of different things you can do. If you want to "modularize" you configuration, you can break out certain config sections to separate files, using the

Programatically check if there is a configuration profile installed or not on an iPhone

拥有回忆 提交于 2019-12-06 05:20:43
问题 I need to develop an application that programatically checks if there is a configuration profile (called "X", for example) installed on the phone or not. I tried the solution already on this link but it didn't work. I also posted a question already related to this solution, but there has been no answer. 回答1: This is very hard to do. If you are asking in the context of an MDM solution then your app on the device could ask the server for what is installed (assuming you, or your company, develop

Check if a configuration profile is installed on iOS

时光毁灭记忆、已成空白 提交于 2019-12-06 05:04:35
I'm trying to check if .mobileconfig file installed on the iOS device. I've tried an approach which described by this link http://blog.markhorgan.com/?p=701 , but I'm fail with it. Maybe someone have other ideas or whatever ... ? Thank in advance. Why do you need to know if a configuration profile is installed on the device? Apple doesn't provide API to check if configuration profiles are installed as it would be a privacy invasion of the app into the user's setup (unless the configuration profile was installed by the app, which is usually vended through specific API like Network Extension).

Schema (XSD) for Microsoft .NET configuration file

旧城冷巷雨未停 提交于 2019-12-06 02:38:19
问题 I'm searching the XSD (XML Schema) for the Microsoft .NET application configuration files. Till now I found only this: Configuration File Schema for the .NET Framework but I'm more interested in the XSD. Or - asked in general - I search also XSDs in general for .NET configuration files listed here. I've Visual Studio 2008 and don't see such files as in the first answer... 回答1: DotNetConfig.xsd updated by Peter Ritchie based on C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas