Accès au fichier de configuration.xml

Bonjour,
En utilisant un exemple de projet de labview, le fichier de configuration .xml du programme créé se trouve dans le dossier du programme.
Cela ne pose pas de problème tant qu'on est en mode développement mais lorsque l'on créé un exécutable et un installeur, ce fichier de configuration se trouve dans le dossier "Programme Files".
Sous Windows7, par défaut il est donc impossible de modifier ce fichier et donc de sauvegarder un changement de paramètres dans ce fichier.
Quelle est votre soution pour contourner ce problème?
Modifier à la main les autorisations du fichier de configuration du programme?
Déplacer le fichier de configuration dans un nouveau dossier au nom du programme dans le dossier caché "ProgramData"?
Une autre solution?
Résolu !
Accéder à la solution.

salut +1 kudos pour R3g, (chemin de l'application) ou proposer une boite de dialogue pour personnaliser le dossier de sauvegarde.
A+
Luc Desruelle | Voir mon profil | LabVIEW Code & blog
Co-auteur livre LabVIEW : Programmation et applications
CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

Similar Messages

  • Lecture dans un fichier de configuration

    Bonjour,
    Je viens vous demander des conseils. J'ai un fichier de configuration (en ci-joint), j'ai dèja une version qui fonctionne bien mais je voudrai améliorer un peu (car trop de variable locale), pourriez-vous me dire si je peux créer une VGF pour lire le fichier et ensuite les afficher par la suite peut-être de modifier les paramètres et ensuite écrire dans le fichier de configuration ? Je ne sais pas si une VGF est bien adaptée pour lire/écrir/afficher les paramètres de configurations? Merci d'avance.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    fichier config.txt ‏1 KB

    Bonjour,
    J'ai ouvert votre vi par curiosité, le fichier de config est un peu plus précis (ci-joint la copie) de ce fait je pense plutôt lire d'abord le fichier (avec la corection des coefficients et l'offsets) et stocker des datas (un tableau de cluster de caractère, plus facile par la suite de les afficher directement sur FA) dans le registre à décalage du VGF et par la suite je peux faire ce que je veux. Mais hélas comme d'habitude je rencontre toujours des soucis.         
    Pièces jointes :
    Config-HT.txt ‏1 KB
    lecture-fichier-config.JPG ‏153 KB

  • Fichier de configuration - Liste déroulante

    Bonjour à tous,
    Je réalise un software permettant le pilotage d'un régulateur via une liaison série RS 232.
    Au sein de mon laboratoire, plusieurs types de régulateurs sont présents et présentent donc des caractéristiques différentes.
    Lorsque l'utilisateur sélectionne un type de régulateur, à partir d'un fichier de configuration (ini) tous les paramètres sont chargés.
    Le nom de mon régulateur correspond alors à ma section et les différents paramètres aux clés.
    Est-il possible, d'avoir une liste déroulante qui permettrait d'ajouter d'autres régulateurs ?
    De plus, je me demande, comment charger mes différents paramètres en fonction de la section ?
    Cordialement
    Résolu !
    Accéder à la solution.

    Les listes déroulantes possèdent entre autre un noeud de propriété permettant de venir lire/écrire les chaînes de caractère contenues dans la liste déroulante.
    En utilisant cette propriété tu peux ajouter un appareil à la liste pendant l'exécution de ton programme.
    Il existe de nombreux exemples sur l'utilisation des propriétés dans Aide>>Recherche d'exemple. N'hésite pas à tester et explorer les propriétés. Tu découvriras que leur utilisation permet de faire beaucoup de choses !
    Cordialement,
    Isabelle G.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Boîte de dialogue avant la fonction ouvrir un fichier de configuration

    Bonjour,
    Comment créer une boîte de dialogue avant la fonction "Ouvrir un fichier de configuration" ?
    Cordialement
    Résolu !
    Accéder à la solution.

    Au lieu d'avoir une commande, dès l'ouverture du VI, demander quel fichier charger..
    Je pensais pouvoir utiliser la fontion identique que pour l'écriture, mais cela ne fonctionne pas.
    Pièces jointes :
    Boîte de dialogue.JPG ‏1519 KB

  • How to log to a file using the log-configuration.xml?

    Hello *,
    I created following log-configuration.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
    <log-configuration>
         <log-formatters>
              <log-formatter name="DefaultFormatter" pattern="%25d %-60l %s: %m" type="TraceFormatter"/>
         </log-formatters>
         <log-destinations>
              <log-destination count="10" effective-severity="ALL" limit="1000000" name="DefaultDestination" pattern="FDLB_GUI.%g.trc" type="FileLog">
                   <formatter-ref name="DefaultFormatter"/>
              </log-destination>
         </log-destinations>
         <log-controllers>
              <log-controller effective-severity="ALL" maximum-severity="FATAL" minimum-severity="DEBUG" name="DefaultController">
                   <associated-destinations>
                        <destination-ref association-type="LOG" name="DefaultDestination"/>
                   </associated-destinations>
              </log-controller>
         </log-controllers>
    </log-configuration>
    From a Web Dynpro view I want to use the log-controller. I'm using the default logger:
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(EinstiegView.class);
    In the wdInit method I want to log a simple message:
      public void wdDoInit()
        //@@begin wdDoInit()
        logger.setEffectiveSeverity(com.sap.tc.logging.Severity.ALL);
        logger.fatalT("test logging to new file logger");
        //@@end wdDoInit()
    I see the message in the defaultTrace.0.log, but my own log file doesn't appear.
    How to address the log-controller of my log-configuration.xml?
    Thanks in advance,
    Jürgen Dufner

    Hi,
    I guess the follwing part of your log-configuration is wrong:
    <log-controller
    effective-severity="ALL"
    maximum-severity="FATAL" m
    nimum-severity="DEBUG"
    name="DefaultController">
    Try to change in log-configuration the value for name in <log-controller> to the start sequence of the packages to be logged. E.g., all our packages should start with com.yourcompanyname.projectname
    To log all messages from classes in these packages make the name = com.yourcompanyname.projectname.
    Hope that helps,
    Regards, Astrid
    Therefore I list

  • The configuration file did not contain well formed AppV configuration XML - When using Office 2013 ODT package

    All,
    I'm experiencing an issue where when using the Office 2013 package pulled down from ODT, that if I try to change the locations of either InfoPath Filler 2013 or Publisher 2013 from the default of Microsoft Office 2013 then I receive the message "The
    configuration file did not contain well formed AppV configuration XML. Please check the management server event log for more information". If I check Applications and Services\Microsoft\AppV\Server-Management\Admin the error displayed there is "An
    error was encountered parsing dynamic configuration file '0'. However I am able to change the shortcut location for all other applications except the above 2. I've tried redownloading the files using the ODT and also changing the version number (so far I've
    tried both the 15.0.4631.1002 and 15.0.4659.1001 with the same result).
    As all I'm interested in so far is having a package which contains Visio and Project I've tried following the article to exclude all the other Office elements:
    http://technet.microsoft.com/library/jj219426(v=office.15).aspx#BKMK_ExcludeAppElement. However the package looks to be the same and when I load it into the management console all the options and elements to Office 2013 are available like they were before
    when I hadn't set the exclude tags so I'm not sure whether the ExcludeApp parameters actually work correctly.
    This then brings me onto the 3rd issue I've experienced. I have a group for the Visio users and I've set custom security for them to have Visio delivered to them but not Project and then a seperate group for just Project users who will have Project delivered
    to them but not have Visio. When testing this sometimes seems to work but other times it seems to trip out and a user just in the Project or Visio group will get all of the Office 2013 applications and under the default location of Microsoft Office 2013. When
    trying to spot correlation with this it appears random and can happen to any user on any device. We have sequenced a few applications ourselves where different parts are needed for different users and we have successfully managed this using different security
    groups for different applications, just as I'm trying here with Office 2013.
    Has anyone else experienced the issue with the "did not contain well formed XML" as at the start of the post and how were you able to resolve this? Also has anyone any advice on how to troubleshoot the issue with the security seeming to trip out
    and publish all applications within a package to a user regardless of whether they are in the correct group or not?
    The management / publishing servers are 5.0.1224.0 which is SP1 HF4 and the clients are on SP2 HF5.
    Thanks

    Nicke,
    The config files are UTF-8. I did find the same article as yourself, however when searching for the value ‘TakeoverExtensionPointsFrom46=’ within either of the configuration.xml files that text isn’t found.
    No sinister reason not to share the file used, just it’s the same structure as referenced in the article:
    http://technet.microsoft.com/en-us/library/dn745895(v=office.15).aspx. The only difference being that I’m using ProPlusVolume and I’ve set a version number (which is the October
    2014 update). I’ve even looked to follow the above example as closely as possible in just using the ExcludeApp ID of Access and InfoPath, just to try and prove the process. However I still get the usual full package. The version of the Click-to-Run setup.exe
    I’m using is 15.0.4623.1001, so later than the version specified at the end of that article which is 15.0.4619.1000. Where can I expect to see the elements excluded? Will it be when loading the package into the management console or would it just not appear
    on the machine when delivered?
    <Configuration>
      <Add SourcePath="C:\OfficeDeploymentToolV2" Version="15.0.4659.1001" OfficeClientEdition="32">
        <Product ID="ProPlusVolume">
          <Language ID="en-us" />
    <ExcludeApp ID="Access" />
    <ExcludeApp ID="InfoPath" />
        </Product>
      </Add>
    </Configuration>
    3). We’ve not used global publishing in our environment yet so I will try that. I’ve set both GlobalRefreshEnabled and GlobalRefreshOnLogon to True and when using the command Get-AppvPublishingServer on the client I’m testing with I can see this is pulled
    through correctly. I’ve also added the client name to the AD group used to grant access to the package and it is published. However nothing is pulling through onto the Client, so are there any steps I’ve missed or misinterpreted when looking to set this up?
    I guess the global publishing is there to keep in with licensing for Office being per device? On a slight aside, as Windows licensing is being changed to allow per user licensing
    http://www.zdnet.com/microsoft-to-make-per-user-windows-licensing-available-to-enterprise-customers-7000035401/ does anyone know if there are any plans to allow for Office / Project / Visio licenses to go per user as well? We’re a volume license customer
    rather than subscription based so I think a lot of the options to selectively deploy Visio and Project are excluded for us.
    Dan,
    Ok that explains why the security could be tripping out then and leading to this result. As above I’ll try with global publishing and see how I get on.
     From what I’ve read / watched  I think only one Office 2013 package can be published to a machine, so we would be unable to have a separate package for Visio and a separate package for Project and then attempt to deliver
    them both together. If a user wanted both Project and Visio then I guess we’d need to have a combined Project and Visio package to cover than scenario, but then 2 more separate Project and Visio packages for those who would only want either Project and Visio
    (I think).
    The scenario we’re looking at is to see whether we are able to deliver Project and / or Visio to different users through an AppV package and this will then cover users on XenApp or on fat clients. Only a small proportion of our
    users will need access to Project and / or Visio so therefore we’d only have a small amount of Project and Visio licenses.
    However from what I’ve tested up to this point and from what I’ve picked up from Forum posts / watched on TechEd sessions is that as publishing is Global and is unable to use different security groups for different elements of the
    suite, then using Office through AppV is only suitable if you will be delivering the whole suite (including Project and Visio) to all of your users. So in a scenario where you’d only want certain elements to be delivered to a handful of users then you’d need
    to keep with traditional ESD methods to have this installed onto fat clients and steer clear of XenApp. If wanting to install to XenApp then a lockdown tool like AppSense or AppLocker would also need to be brought into the equation.
    Is my understanding above correct or have I missed some options / methods?
    If the full Office package is always delivered but a company only has Office licenses and no Project and Visio licenses for all its users, how do they stop Project and Visio being delivered and being available? Or again if you have
    this use case is the AppV method one which will be unsuitable?
    Thanks

  • APP-V Office 2013 configuration.xml

    Hi all, 
    I'm trying to roll out Office 2013 with APP-V, whenever I change the config.xml to accept the EULA it still pops up with the EULA.
    The documentation for APP-V differs from the normal ODT config.xml, what's the difference and am I missing out on something? 
    See the document from Microsoft on the configuration.xml within app-v: 
    https://technet.microsoft.com/en-us/library/jj219426.aspx
    The XML file states to accept the EULA. The output in there is a configuration.xml like this: 
    <Configuration>
      <Add SourcePath="C:\office2013" OfficeClientEdition="32" >
        <Product ID="O365ProPlusRetail">
          <Language ID="nl-nl" />
    <Language ID="en-us" />
        </Product>
    <Product ID="ProjectProRetail">
          <Language ID="nl-nl" />
    <Language ID="en-us" />
        </Product>
     <Product ID="VisioProRetail" >
          <Language ID="nl-nl" />
    <Language ID="en-us" />
        </Product>
      </Add>
    <Display Level="None" AcceptEULA="TRUE" />
    <Property Name="SharedComputerLicensing" Value="1" />
    </Configuration>
    Kind regards, 
    Jacob van Rooijen

    You can use two registry keys to disable it, push them using a GPO:
    HKCU\Software\Policies\Microsoft\Office\15.0\Registration
    Reg_DWORD = "AcceptAllEulas"= 1
    HKCU\software\policies\microsoft\office\15.0\firstrun
    Reg_DWORD = "bootedrtm" = 1
    See this post

  • XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted.

    1.Some web pages give "XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted".
    2.Youtube gives, after pressing start button, message"An error occurred. Please try again later.
    Opening same youtube page with IE, there is no problems.
    3.Scrolling on Mozilla firefox pages works only with sidebar not with mouse wheel.
    Other user accounts on this computer doesn't have these problems.
    BR, Juha

    This can be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox

  • Steps to configure XML Gateway in Oracle

    Steps to configure XML Gateway in Oracle

    Hello,
    This is not relevant to Integration - B2B as you might want to post this query in Ebusiness suite forum.
    Rgds,Ramesh

  • Pi 7.1 ehp1 log-configuration.xml, howto create/edit in NWDS?

    Hello,
    In NWDS 2.0 You have a special mode in NWDS  to edit the file. You get tabs with Log Formatter, Log Destination, Log Controller and Source.
    How does it work in NWDS 7.1 EHP1?
    The log-configuration shipped with the example module is packed inside the sample adapter module jar. This seems not right? It should be in the ear?
    In nwds I create an ear, and then use the nwpacktool to repack it as an sda to be able to deploy with jspm. There is a firewall so I can't deploy from nwds.
    I'm building an adapter module. It works fine besides that the logcontroller doesn't display in the nwa, and I can't set the log levels.
    I've tried placing the log-configuration.xml both in the META-INF of the jar and the META-INF of the ear but it still doesn't work.
    Thanks for your help.
    Best regards
    Otto Frost

    Hello,
    The NWDS 7.1 EHP1 doesn't recognize the file in the META-INF.
    In 7.11 the log-configuration.xml isn't used anymore according to SAP.
    When the module is started the tracing location is displayed in the log-configurator automagically.
    My module wasn't started after deployment.
    To start it I had to go into the NWA - Operation Management -
    Systems - Start&Stop - Java EE applications - myPiModule
    It was stopped, but started up when I clicked the "Logs" link.
    After this it is visible in the tracing locations in the nwa log configurator.
    Best regards
    Otto Frost

  • Log-configuration.xml How to use it

    I am trting to use the logging xcapabilities by usinmg log-configuration.xml but is unable to do so by simply configuring it. If I do using using coding i.e by adding in code location and filelog in code I am able to log. But instead of it I am more intrested to use log-configuration.xml. So please provide me with exact steps that need to be done for configuraing it rightly with category defined as well and using a fileLog as an example.

    I am trting to use the logging xcapabilities by usinmg log-configuration.xml but is unable to do so by simply configuring it. If I do using using coding i.e by adding in code location and filelog in code I am able to log. But instead of it I am more intrested to use log-configuration.xml. So please provide me with exact steps that need to be done for configuraing it rightly with category defined as well and using a fileLog as an example.

  • CCMS Alert Monitor (edit monitor-configuration.xml. ?)

    Hi Friends
    I'm trying to change the default polling time for the CCMS Alert Monitor, 5 minutes instead of 30 minutes.
    In http://help.sap.com/saphelp_nwpi71/helpdata/en/e5/5d1741b393f26fe10000000a1550b0/content.htm you can read:
    Accuracy
    The default polling period for the monitor is 30 minutes. If you want to have shorter polling periods, you can change them in the SAP NetWeaver Administrator as follows:
    1. Choose Availability and Performance Management ® Resource Monitoring ® Java System Reports (alias: /nwa/java-sys-reports).
    2. Select an arbitrary Number of errors entry in the monitoring tree of the Adapter Engine (leaf node).
    3. Choose Configuration in the right-hand pane.
    4. Choose Edit in the dialog box that appears.
    5. Change the polling period to 5 minutes, for instance.
    6. Choose Save and wait until saving is finished (be patient, since this may take a while).
    7. Choose Configuration Management ® Infrastructure Management ® Java Configuration Browser.
    8. Choose apps ® sap.com ® com.sap.aii.af.app ® Monitoring Configurator ® monitor-configuration.xml.
    9. In the xml file, change the polled-by-template period to the same value as above, for example, 5 minutes.
    10. Save the modified xml file.
    11. Choose Operations Management ® Infrastructure Management ® Start & Stop ® Java EE Services to restart the Monitoring service to apply the changes.
    But in step 9, the xml file I've found in my PI 7.1 (SP6) is this:
    <monitor-configuration>
    <monitor-semantics />
    <monitor-tree />
    </monitor-configuration>
    Also, there is no way to modify that file, you can only display it or download it.
    can anyone tell me how to edit the file.
    regards
    raja

    Hi Raja,
    This is the same as doing the following:
    You can locate the monitor-configuration.xml file in the SDA com.sap.aii.af.app.sda (inside META-INF folder). You can find this SDA in the install directory of PI installation. In this XML file please locate and edit the following tag:
    <template-info template-name="SAP_XIJ2EE_RCRDS">
                            <polled-by-template period="30" unit="MINUTE">
                                <generating-resource
                                    name="com.sap.aii.utilxi.rtcheck.mx.standard.XIJ2EEComponentMBean" type="APPLICATION"/>
                                <template-attribute-mapping>
                                    <invoked-resource-method name="getMonitoringRecords"/>
                                </template-attribute-mapping>
                            </polled-by-template>
                        </template-info>
    Change the above to the following *************
    <template-info template-name="SAP_XIJ2EE_RCRDS">
                            <polled-by-template period="5" unit="MINUTE">
                                <generating-resource
                                    name="com.sap.aii.utilxi.rtcheck.mx.standard.XIJ2EEComponentMBean" type="APPLICATION"/>
                                <template-attribute-mapping>
                                    <invoked-resource-method name="getMonitoringRecords"/>
                                </template-attribute-mapping>
                            </polled-by-template>
                        </template-info>
    The main change is the polled-by-template value from 30 mins to 5 mins as per your req ******
    Construct back the SDA (you can search SDN for that) with this edited XML and then redeploy this SDA with the help of JSPM tool.
    This will re-start the PI Server for the changes to come into effect.
    I hope this helps.
    PS: You can consult your BASIS consultant to locate this sda and re-deploy it on PI Server.
    Regards, Gaurav.

  • Configuring XML Publisher for Standalone EnterpriseOne 8.12

    Could someone please help me in configuring XML Publisher for Standalone EnterpriseOne 8.12.
    As per the installation guide for 8.12, I have created a new data source to SQL Server named EnterpriseOne Local.
    Also, I have used "With Windows NT authentication using the network login ID" for this ODBC.
    Now I tried :
    Data Source Name : EnterpriseOne Local
    URL : jdbc:microsoft:sqlserver://localhost:1433
    User : My NT domain ID
    Password : MY NT domain password
    Database Driver Class : com.microsoft.jdbc.sqlserver.SQLServerDriver
    in XML publishers admin tab, but it doesnt work.
    Is the above setting correct?

    make sure you can connect with "my NT domain ID"/"my NT domain password" in SQLserver Mangement studio express using SQL server authenication.
    Try the setting using JDeveloper for DB conncection. If not successful then u must add the
    sqljdbc.jar into your JAVA_HOME/lib
    HTH
    Shaun

  • Version number of nbproject/configurations.xml

    We are developing using Sun Studio on both 64 bit Red Hat and Fedora. It seems that after checking in the project from Fedora, specifically nbproject/configurations.xml, the Red Hat's Sun Studio is no longer able to read the project configurations xml file. Errors pop up saying "Unsupported prodject configuation version: 38. Only versions 0 thru 35 are supported." It is apparent that within the configurations.xml file the line
    <configurationDescriptor version="35">
    was changed to
    <configurationDescriptor version="38">
    After I get the error messages for the projects that Sun Studio tries to load, I get a message box that says
    A java.lang.NullPointerException exception has occurred.
    Details are
    java.lang.NullPointerException
         at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.addMyListener(NativeProjectProvider.java:68)
         at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.addProjectItemsListener(NativeProjectProvider.java:124)
         at org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.registerProjectListeners(ModelSupport.java:352)
         at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.ensureFilesCreated(ProjectBase.java:357)
         at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:481)
         at org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
    It seems like the Fedora box has a later version of something, but they both have the same versions of Sun Studio and NetBeans. We ran all updates on the Red Hat machine.
    Any ideas?
    Thanks

    Version 35 was created by Sun Studio 12 and version 38 by Sun Studio 12 ML release. The project has somehow been changed and saved using the Sun Studio 12 ML release. It is not enough that you use the same IDE version on both platforms, you will also need to use at least the Sun Studio 12 ML once the project has been upgraded. If you send me ([email protected]) your email address, I will send you some directions how you can solve this issue.

  • Package configuration.xml with AnyConnect NAM installer?

    Hi, I am running AnyConnect 3.1. I have configured a new configuration.xml file and tested locally. I would like to package this new configuration file with the AnyConnect installer similar to how an ASA does, but without the ASA. This way, clients can run the setup wizard one time and the correct configuration file comes up the first time. Is this possible without an ASA? Thanks.

    I found a post that explains how to do this...
    https://supportforums.cisco.com/document/93891/anyconnect-secure-mobility-client-30-network-access-manager-profile-editor-windows

Maybe you are looking for