Include directories with files when building Installer

I want my installer to install the executable in C:\ProductA\SystemTest\Program1
I also want have C:\ProductA\SystemTest\CsvFiles created and have the csv files included.
Is this possible?
How would I go about doing this?
Solved!
Go to Solution.

Take a look at this sample project (LV2013). The build target folder is c:\tmp\csv_test, but it creates all additional sub-folders.
For some reason I cannot attach a zip file to the post, so just create 'files' folder as sub-folder of the project and add some files there. You can have also sub-folders in 'files'
In the destination settings you need to check the 'Preserve disk hierarchy'  option.
In Always Included you need to add only the root folder of your CSV files
Attachments:
csv_test.lvproj ‏7 KB
list_files.vi ‏8 KB

Similar Messages

  • How to include external files when building installer for a standalone executable?

    Hi,
    I was trying to build a stand alone executable from my Labview project and I was able to do it successfully.  Now I would like to include a few external .txt files in the installer. Those .txt files have parameters/constants that will be used by the program, and my program needs to load/read them when running.  For now I have to manually copy/paste them into the target machine, but I really hope the installer can do it automatically.  I see there is a "data" folder in the installer, and that's where I hope those .txt files can be added into.
    How can I do it? Can anyone give me some suggestions? Thanks!
    Rgds
    Harry
    Solved!
    Go to Solution.

    Norbert,
    I could not find "Add file" when right clicking the project. See attached image please. Under "Project" I do have a "Add to project" but there is no option for external files. I did not find "Source" location either.
    What did i do wrong? Is there any version requirement here? I have a 2010 base version. Thanks for your help.
    Rgds,
    Harry

  • How to include help files when building installer

    Hi!
    How can I include my application help manual (in .pdf format) when building the installer such that the file goes into a designated folder and its link appears in the Start>Programs>App folder ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Gurdas,
    Add the .pdf as a support file in your executable
    Create an installer for the executable
    Under the "Files" button on the "Installer" tab select the .pdf and select "create program item".
    This will place the .pdf in the start menu program group.
    cheers,
    Brett

  • How to include the NIWebAppServer.conf when building a web service installer in LV2010

    Hi all,
    I'm build a LabVIEW 2010 web service and creates a deployable setup installation as described in Web Services FAQ:
    http://zone.ni.com/devzone/cda/tut/p/id/7747#toc12
    but also would like to include my .conf file for the NI Application Web Server. The file is located in:
    C:\Program Files\National Instruments\Shared\NI WebServer\NIWebAppServer.conf
    This is where all settings (listening ports, SSL, users etc.) are configured.
    If I look in LabVIEW 2009 build instructions for web services:
    http://digital.ni.com/public.nsf/allkb/62B9C2D5C91EE8B28625778800609FF2?OpenDocument
    they include this file, but it is a new procedure in LV2010 (as seen in the top link) and I can't seem to get this conf file included and installed on the deployed system automatically for LV2010. Today, I must copy it manually.
    Any ideas of how to do this?
    Thanks,
    Mattias

    Having the same problem, even if pointing the installer to install the particular file, the installer will install its own some default file. Did you find any solution?
    /Carl

  • Specifying the location of the support files while building installer.

    Mr requirement is to store a support file in a directory just above the install directory.
    example...
    my support file is good.xls
    I have installed my application at c:\motion\move\go.exe
    I want the support file to be installed automatically at c:\motion\infos\template\good.xls. when i install my application.
    i tried to do this by specifying the path at the files tab in the installer settings. I am not clear with the destination directory settings.
    how is achieve this .

    Hi again,
    let me see if I undersood your problem: you need to build an application with which a support file has to be created in the sub-folder INFO\TEMPLATE relative to the main folder where the program is installed; and you want to leave the possibility to choose the main folder.
    If this is correct, I modified your build file to show how to do it.
    Open the test3.bld with the app. builder:
    - Target tab: here you set the destination of your application when you hit the Build button;the support file directory is where the builder and installer will place automatically any needed support file ( for example dlls)
    - Source files tab: click on custom destinations and select test.txt; you see that the destination is c:\test\info\template. Thi
    s is the place where this speciific support file will be placed when buiding the app.
    - Switch to Installer Settings tab: you see that the default installation foldet is Program files with sub-folder Application. This is the default destination of your application when you run the installer. But keep in mind that you have the option to change this destination during installation (you get a message dialog).
    - Hit the Files button and select Test.txt. The installation destination is set to Install directory (it is the destination directory you choose during install). And as Insatllation application subdirectory I typed info/template. This is the path destination of your support file relative to installation dir.
    With the installer created you can choose the install dir. and the test.txt will be created in \info\template.
    Let me know if you need more explaination.
    Good luck,
    Alberto
    Attachments:
    test3.bld ‏1 KB

  • Error -12 when building installer

    OS: Win7 
    LabVIEW: 2012 SP1
    I am having issues with the application builder while trying to build an installer.
    The installler has the following "Aditional Installers" selected:
    LabVIEW Runtime Engine
    NU USI 2.0.1
    NI DAQmx Core Runtime 9.8
    NI DAQmx MAX Configuration 9.8
    NI VISA Runtime
    If I remove the "NI DAQmx Core Runtime 9.8" & "NI DAQmx MAX Configuration 9.8" then the installer builds without error.  How can I get it to succesfully build with these selected?
    I have upgrated the DAQmx from 9.5.5 to 9.8 and performed a mass compile but no luck.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_Build.vi >> NI_MDF.lvlib:MDFDistCopyList_CopyItem.vi
    Loading product deployment information
    Adding files to installer
    Validating...
    Copying files...
    Scanning files...
    Updating files...
    Build complete successfully.
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Copying distribution 'SiriusXM Mad Max' from: C:\Users\bbanacki\AppData\Local\Temp\7ZipSfx.000\Mad Max Installer\ to: C:\ProgramData\National Instruments\MDF\ProductCache\
    *** Error: Windows SDK function returned an error. (Error code -12)
    The system cannot find the path specified.
    *** Error Details:
    Error in MDF API function: _MDFDistCopyList_CopyItem
    Windows function FindFirstFile returned an error. Error code: 3
    *** End Error Report
    Done building deployment
    Solved!
    Go to Solution.

    Siriusly wrote:
    Copying distribution 'SiriusXM Mad Max' from: C:\Users\bbanacki\AppData\Local\Temp\7ZipSfx.000\Mad Max Installer\ to: C:\ProgramData\National Instruments\MDF\ProductCache\
    *** Error: Windows SDK function returned an error. (Error code -12)
    The system cannot find the path specified.
    *** Error Details:
    Error in MDF API function: _MDFDistCopyList_CopyItem
    Windows function FindFirstFile returned an error. Error code: 3
    *** End Error Report
    Done building deployment
    It looks like your installer build is trying to pull the "SiriusXM Mad Max" distribution from an unusual temp location. If this distribution was hiding inside a 7zip file and has since been altered or deleted, that we certainly confuse the installer builder. Do you know if this distribution contained the DAQmx installers you are trying to build with?
    Here are a few things you could try if this is the case.
    1. If an installer build ever suceeded while pulling source from this temp location, the location may have been saved as known good source. To undo this saved information, you can delete the file at C:\ProgramData\National Instruments\MDF\Bin\MDFInfo.xml
    2. If C:\Users\bbanacki\AppData\Local\Temp\7ZipSfx.000\Mad Max Installer\ is a valid path on your machine, try moving or renaming this folder. This should cause the installer builder to prompt you for source media. This prompt window will allow you to configure which distributions you provide as source for the build (depending on the version of the installer builder tool installed, you may have to click "No" to the question "Do you have all of these installers?" to get to the configuration page).
    3. Install the latest version of the installer build tool. A new one released with LV 2013, and it should be available to download either through NI Update Service or on the web somewhere
    4. All else fails... post your full installer build log! LabVIEW generates this for us at %temp%\LVProjectName_InstallerName_build.log

  • Geting error when build installer

    I'm getting Error 33 and dotnet x86 ni language pack error and build stops
    how can I solve this issue?
    Building executable is fine, but the problem occurs during building installer.
    Please advice
    regards
    Pierre Tannoury
    Pevatech International S.A.R.L

    thanks for helping,
    i still receive another messages but the dotnet error message is gone
    please see below the building status and what's errors remaining
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi
    Loading product deployment information
    Loading product deployment information
    Adding files to installer
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Building deployment
    Copying setup files
    Setting merged database information
    Setting product information
    Setting developer part information
    Starting final build
    Validating...
    Copying files...
    Updating files...
    *** Error: Fatal runtime error. (Error code -10)
    *** Error Details:
    Access violation! Structured exception code 3221225477
    *** End Error Report
    *** Error: An internal tool or library returned an error. (Error code -21)
    Error Messages
    *** Error Details:
    Error in MDF API function: _MDFBuildDist_Build
    Error List
    .\InputParser.cpp(819): IInstallerError 108
    Problem with updating Part DataSocket64.msi.
    *** End Error Report
    Done building deployment

  • HELP: How do i include a policy file when embedding a JApplet

    This is the problem i'm facing.I've been able to successfully grant my japplet permission to access resources on the c: drive. When i run it using appletviewer there's no problem, it's able to access the database on the c: drive but when i embedd it in my html page it fails to access the database (i.e it is unable to include the policy file). Does anyone know how to get around this problem?

    You can not directly include a policy within an applet. This would be a security risk.
    In general you have 2 choices if you wish to grant an applet more rights than it has per default:
    1. You can sign it.
    2. You change your local policy file.
    ad 1:
    You can generate a keypair using keytool and sign the applet with jarsigner. (you need to create a jar file first)
    when your applet is then loaded in the browser, a popup asks the user, if he wanna trust the signer. If the user clicks no, the applet is executed with standard applet rights. If the user clicks yes, the applet is executed with full permission (like an applet from file:/*)
    ad 2:
    use policytool to create/change a policy file in your home directory. You can describe the applet either with a path (=codebase) or with some meta-information like signer.
    create a policy that fits your need, and save the file.
    next time you execute your applet in the browser, the policy will grant the applet additional permissions.
    There is a third option. You can mix 1 and 2.
    You can sign your applet, and create a policy for all applets signed by you.
    Then there will be no popup, and the applet has automatically the rights you defined in the policy file.
    But I would suggest to consider the possibility to write a stand-alone application, instead of granting an applet access to the local hard disk.

  • Error when building Installer with USI 1.5.0 with Labview 8.5

    I used to build an installer with Labview 8.2 and included this additional installer USI 1.5.0  but now with labview 8.5 it gives me an error:
    "Locate the "NI LabVIEW" distribution. LabVIEW needs to copy a component installed or updated by the distribuiton to conitnue building the installer"
    Any advice

    Hi reza_sed,
    Thank you for contacting National Instruments.  When you get this message, are you prompted for a location of this installer (CD drive or something)?  Sometimes if components are installed together, certain dependencies are created.  You might be able to add the installer to a LabVIEW 8.2 installer with no problem, but the installer cannot be found when using a different version of LabVIEW.  You might try uninstalling USI, then copying the install files from the CD or from our website to your hard drive and then installing from there.  Then, you should be able to include the additional installer.
    Another thing that may be happening is that the LabVIEW Run-Time Engine you have for 8.5 does not support NI-USI.  The full version of the Run-Time Engine supports NI-USI, but the web browser only version does not.  Make sure you select the full version when installing.
    Donovan

  • Can't find files when building EXE unless the WHOLE codebase is in an auto-populating folder

    I have a project with FPGA (specifically a couple cRIO targets).
    I have a build spec for a PC target, then a target that's set up for Scan Mode, then a couple targets set up for FPGA mode.
    When I try and build the FPGA or Scan Mode targets, I NEED to have the entire code folder (and sub-folders) in an auto-populating folder.
    What's strange is that I manually added the same folder, and then pulled the Top-level VI out so that it was easier to see within the project.  When I did that, I got errors that files were broken and missing.  I then removed that folder and added the same folder as auto-populating and all is well.
    Yes, I was able to make the build work by including debugging, not removing TypeDefs, etc.  This also cause the build to go from 2MB and 30 secodns build time to 50MB + 10 min build time.
    Why si this?  I would like to remove the files for other targets from the Source of each of the targets.  If I do this, I can't build (these are other top-level VIs that are not appropriate on a per target basis).
    Any ideas?

    Hey Jed,
    It sounds like the problem you are having is coming from a file path issue.  When you manually add folders as "Snapshot" the file paths are set and will generate errors if the files are moved.  The autopopulating folder updates file path locations so you don't have those same issues.  Debug mode allows for the file paths to be reassociated, but at the expense of time, and in some cases resources.  Enabling debugging will cause the compilation to take longer.
    You wrote:
    So what I am trying to say is that ALL I did when I removed the auto-populate was to click "Stop Auto Populate" and moved the Top-level VI up one folder level within the project.  This causes it to fail compile (unless debugging is checked).
    This makes complete sense.  By moving ANY VI in a project and not having the folder set to auto-populate or having debugging enabled will cause an error because that VI that you moved isn't where it is supposed to be.  This is the way that projects and the compilation of programs was designed.
    To avoid this, don't move files around after they have been added to the project unless you have folders set to autopopulate, or have debug mode enabled.  When you start shuffling file paths, associations get broken and compilations will fail.
    Ben N.
    Applications Engineering
    Certified LabVIEW Developer

  • Microsoft Visual C++ runtime error when building installer

    I'm trying to build an installer for a very simple VI I've created in 8.2.  Before the build is complete I get a Microsoft Visual C++ runtime error message pointing towards the labview.exe file.  I've already tried re-installing LabVIEW and deleting older versions of the LabVIEW Runtime engines with no luck.  I recently upgraded my system from LabVIEW 6.1 and I'm using Windows XP.  Any suggestions?
    Thanks.
    LabVIEW 2012 - Windows 7
    CLAD

    I included waveform storage, runtime engine 8.2, ni-visa-runtime and  ni-serial3.1. I tried to create a setup.exe by installer on an other pc. But it's completely the same behavior afterwards. I attached the error message. This message appears after I choose the path and continue the setup. It's the question which file is meaning.
    I tried to create a setup.exe by installer without any additional. 
    The strange thing is it was unsuccessful with following message. Maybe this will be helpful to find the problem.
    CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_BuildDevPart.vi >> NI_MDF.lvlib:MDFBuildDevPart_Open.vi
    Attachments:
    missing file message.JPG ‏15 KB

  • Error -12 when building installer LV2012

    When I try to build an installer from the project menu I immediatly get en error -12. (see attached)
    This has happened on several different projects. I can make an .EXE, Zip file and distribution build but not installer. I read the "Why Does My Distribution Build Fail with Various Errors?"  article suggested but I admit I don't understand the proceedure or if this pertains to my problem at all.
    Thanks
    Attachments:
    LV Installer error.JPG ‏63 KB

    Alina,
    Thanks for the tip. I checked out that forum and that is the same problem. Now the question is the same as what he asked. How do I reinstall App Builder? Older versions had it as a seperate CD. 2012 comes on 1 DVD and there's nothing on the install menu that mentions App Builder. I'm guessing I'll just have to reinstall LV as a whole.
    Thanks for all the help
    Mark

  • CMake seems to not "see" members defined in header file when building

    I'm trying to create a CMake build option for a library that my group is working on. It builds fine with the old-school makefiles that one of my colleagues wrote, so the code isn't the problem- it's my CMake incompetence.
    I have a top-level CMakeLists.txt that has an include_subdirectory(library) line.
    In the subdirectory, library, I have a CMakeLists.txt that looks like so:
    include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
    set(lib_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/src/Class1.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/src/Class2.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/src/Class3.cc
    add_library(util_lib STATIC ${lib_SOURCES})
    install(TARGETS util_lib DESTINATION lib)
    With names changed, obviously.
    When I run make, it will error on Class2 because it has a Class3 object in the code that accesses a member that is defined in Class3.hh. So it errors with "Class3 has no member named [...]"
    So I thought maybe the order of the list mattered. So, I switched the order of Class2 and Class3 in the list, but I still get the same error! Class3 builds fine, but Class2 still errors.
    I then tried adding all the .hh files explicitly to the add_library line, which didn't help.
    I must be missing something pretty fundamental here.

    You mean add_subdirectory in the top level CMakeLists.txt.
    You could run:
    $ make VERBOSE=1
    to see the command used. Compare it to your handwritten Makefile. There's nothing obvious wrong with your cmake script that i can see.

  • What happens to installation files when an installation fails.

    Having just come from a Windoze platform my question is as follows:  (MAC OS X Lion)
    I tried installing Adobe Elements and I am now aware that the version is too old and not supported by Lion.
    So the installation seemed to run to completion and it was only at the end that the system reported that the application could no be opened.  What would have happened to the files that were written to the hard drive?  Is Mac OS X clever enough to do a roll back?  If not, how do I find where the files (if any), can be found.
    Windows is normally quite horrible when it comes to uninstall and install failures and requireing the user to troll the registry to actually remove all traces of the app.
    Any suggestions welcome.

    I don't have Adobe Elements, but most apps that install outside of the Applications folder usually have an unistaller. Use that. Then get the current version that works with Lion and install it. Any same named items will get overwritten by the new one's installer.
    Since you're a newcomer to the Mac, see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual,
    Snow Leopard Edition.&
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Error code -13 when building installer

    Hello,
    I need some help! I am trying to create an installer for my application; which was created with no problems; but I keep getting a message about an error code -13. I'm adding an image of the message since it is a long one. I really don't understand what the error means or how to repair it. Any help I could get is appreciated!

    Hello rd.mcdt,
    The following link has information about a similar problem, could you try to follow the process described on the link? Please look for error code 13 instead error code 30 and let us know if this helps.
    Error 30 Occurred at CDK_CreateNewWizard_Invoke.vi.ProxyCaller When Trying To Build a LabVIEW Installer:
    http://digital.ni.com/public.nsf/allkb/8E5E6C58C625B88A8625786A005B21E0
    Best Regards
    David P.
    National Instruments
    Applications Engineer
    www.ni.com/soporte

Maybe you are looking for

  • HT4060 Why iPad mini will stop charging at 70%?

    Need help to solve this problem...

  • Cover flow vs now playing

    I've had my iPod touch for about a day now and in general I am impressed with the technology. Like others I use my iPod in the car and have contemplated cover flow landscape mode as the default orientation. However I've noticed that cover flow does n

  • Using BT sport app or online Service whilst in USA

    If I wanted to View Footbal or Rugby whilst on Holiday in the USA could I use the APP on my phone Or go on line witha PC in the Hotel and View or would BT block as I am outside the UK, Going in Sept and want to watch som UK sport

  • I have attempted to download Adobe Square

    Can't complete download because the pop up window only highlights "quit".  Install is blacked out not allowing me to click "install".  How do I get Flash Player Installed?

  • Serial no. for re-installation of Adobe Acrobat 7.0 - WindowsXP

    I am trying to re-install Adobe Acrobat 7.0 (included with the Creative Suite Premium) on a new computer, after my hard drive crashed; I can't seem to find the serial number for the Acrobat 7.0 cd which is in a separate case from the main installatio