Supporting files outside .exe file

I have a labview executable which uses some resources.Currently I'm using the resources by giving file path.It becomes a problem when uploaded the executable and support files in the Internet and accessed from there.It loads only exe file and misses resource file.
Is there any option to embed resource files inside executable ?
Solved!
Go to Solution.

If they are not LabVIEW VIs - e.g. documents, external code (dlls) then no, I don't think they can be included 'inside' the executable. In your build specification you can set them to 'always include' and then in the destinations page select where they end up (e.g. in the same directory as the .exe, in a support directory etc.).
If you use the 'application directory' VI in the File I/O palette - this will return the path to either the project if in the development environment or the folder of the executable in the runtime engine. This should allow you to specify the path that will work whether in the runtime engine or development system. You can use conditional disable structures or the App.Kind property to determine if the VI is running in the dev suite or the runtime engine.
Also, the paths will only work on the local (or network) file system - you can't specify an internet address - LabVIEW won't be able to download the files from the internet unless you program your application to do that.
You should put the executable (build specification output that includes the .exe and your supporting resources) in a .zip file if you are uploading to the internet or create an installer.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • I am trying to reinstall Windows on my macbook pro.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."

    I am trying to reinstall Windows (would not launch).  I removed the partition and started over.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."  I was successful before, what am I doing wrong this time?

    Try a restart.
    If that doesn't fix the problem, shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application unistaller. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • Convert executable and supporting files to msi

    Hello all,
    Wanting to know if it is possible, or if anyone has tried, to roll a labview executable and supporting files into a .msi microsoft installer package.  Wanting to do this for its auto exection and encryption.  I have attempted using third party applications like "Advanced Installer" and Altris wise package studio with no avail.  I found the following old post describing this exact problem using a different third party applicaiton and labview 6.1.  I am currently running Labview 2011 professional.
    http://forums.ni.com/t5/LabVIEW/Repackaging-Labview-using-Veritas-Wininstall-fails/td-p/89442
    I know that Lab-windows can be used to package a .msi installer but I do not have access to it nor am I trained to use it.
    Just wanting some information, any information, on how to make this happen.  

    When you built the exe in the project, you should have noticed the option to create an installer. Fully documented in the LabVIEW help.

  • Install Asian Language support files, how?

    I just purchased Acrobat XI Pro, and am running it under Windows 7 Ultimate.
    How do I install the Asian Language support files for Acrobat?
    After my initial installation, if I execute setup.exe to modify Acrobat XI, only English is listed under Languages.
    BIll

    I scanned a page with Chinese text and the resulting PDF showed all gray.
    Based on your suggestion that the files may already be installed, I scanned the same Chinese text again and it scanned correctly.
    Probably it was a one-time error. Everything seems to be working now. Thank you for replying.
    Bill

  • 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

  • Cannot install application, because it is ''not supported file type"

    hi, i cannot install an application from emule. The message is the the Adobe Reader could not open "insallpro.exe" because it is not a supported file type.
    Do anyone know how to resolve this problem?
    ibookg4   Mac OS X (10.4.5)  

    hi, i cannot install an application from emule. The
    message is the the Adobe Reader could not open
    "insallpro.exe" because it is not a supported file
    type.
    A .exe file is a windows executable file and will not run on a Mac unless you have virtual PC installed.

  • Every time I download anything I get an error message stating ...could not open ....dmg because it is either not a supported file type or the file has been damaged." What do I need to do to fix this problem?

    For the last month or so, every time I download anything I get an error message stating "........could not open ...... .dmg because it is either not a supported file type or because the file has been damaged...." I do not know what to do to fix this issue. Any ideas?

    hmmm.... try this
    basic troubleshooting:
    Repair Disk Permissions http://support.apple.com/kb/PH5821
    Repair Disk http://support.apple.com/kb/ht1782
    reset ACLs http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

  • Mac won't open some files MasterPlan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.

    The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
    Please update this thread if your issue is resolved.
    Thanks,
    Shashi

  • I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been dama

    I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been damaged.  To create a PDF document, go to the source application then print the document to .pdf"  I am going to the source application and printing the document to .pdf yet it's saving the file as a .log file.  After reinstalling the software, I initially didn't encounter this problem but on my second and third attempts to convert files to .pdf format, this error message reappeared.  How do I resolve this problem?

    I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
    the log says the bellow details...what's the problem and how can i resolve it? thanks.
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    Cambria not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: show ]%%
    Stack:
      %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

  • I have a macbook pro with the latest update, and any Pdf file I have opened online or downloaded and I try to print it gives me this message Adobe Reader could not open 'April-15th-2014-Messenger.pdf' because it is either not a supported file type or beca

    Adobe Reader could not open 'April-15th-2014-Messenger.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    Most likely http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html

  • I bought an ebook but when I  try to download it I receive a message stating 'Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wa

    Can anyone assist me? I keep receiving this message when I download my ebook ''Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't decoded).'
    Much appreciated

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • Help.  How do I fix this?  Have been using adobe reader opening this template for months and now all of the sudden its not working.Adobe Reader could not open 'NSCAAInteractiveSessionPlan.pdf' because it is either not a supported file type or because the

    I coach youth soccer and use a PDF template to save my sessions in.  Today I got this message when trying to open one of my sessions.
    Adobe Reader could not open 'NSCAAInteractiveSessionPlan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    How can I fix this?  I have not done anything I don't normally do.

    What is your operating system?  Reader version?

  • Why can't I open a pdf file on my desktop?  I keep getting this message: Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and w

    Why can't I open a pdf file on my desktop?  I have Adobe Reader and running OS 10.10.1  I keep getting the same message: "Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."

    I tried that.
    I saved the file 8pdk_96_4.pdf to my desktop and tried to open it using Adobe Reader but I get the same message: Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

  • Persistent Installation Error (support files)

    I cannot install Snow Leopard. I have researched and tried a lot of different methods. I have gone through the installation over ten times, and nothing works. This is ridiculous. The same disc worked on the same machine a month ago. Snow Leopard was running on the same MacBook, without any problems during the first installation, and now it fails repeatedly. Here's what happened:
    I got the "invalid node structure" error and had to erase and zero-out the internal disk. Disk Utility later verified that the disk was fixed, and no further errors were reported. I also used DiskWarrior to verify this, and it also reported no further errors.
    I proceeded to install Snow Leopard, but at the "15 minutes remaining" waypoint it stalled with the "Installer could not copy the necessary support files" error message. I repartitioned the drive, ensuring it was Mac OS X Extended (Journaled) with the GUID Partition Table. I got the same error.
    I used Disk Utility to verify the installation disc, and it checked out with no errors. The surface is clean with no scratches. This is the same disc I used a month ago, which installed without error, so it's not the disc.
    I thought maybe the optical drive was having trouble reading the disc. I got another machine and used Target Disk Mode to install it remotely, but it stalled with the same error at the same waypoint.
    I read that RAM could be causing issues. There are 2 DIMMS, so each was removed under two separate installation attempts. The same error.
    I used a USB external drive and had Disk Utility make a bootable partition. I then copied the Snow Leopard installation DVD to the partition, and used the USB drive to boot and start the installation. It stalled with the same error at the same waypoint.
    I used a Windows Vista installation disc to repartition the hard disk, curious if it would discover errors. I formatted everything to unallocated space. I then used Disk Utility to repartition and zero-out the disk once more, ensuring the Journaled and GUID scheme once more.
    It's not the disc. It's not the internal hard disk. It's not the optical drive. It's not the RAM. It's not the USB drive. There are no peripherals connected. They all return the same error at the same point during installation.
    I can install Leopard fine. This post is being written on the same machine under Leopard. So there isn't some disk error that the repair utilities aren't reporting. Everything is running smoothly.
    I have tried to install Leopard, then upgrade to Snow Leopard, but it stalls and won't finish either. I have tried this route twice, but each time it will stall at the "one minute remaining" waypoint. If I force restart and resume the installation it gives the "support files" error again.
    So at this point I have exhausted all the installation methods that I'm aware of. This is so frustrating. I want to figure out why the installation fails. Does anyone know of any other methods? I refuse to accept this cannot work for simply no reason, there has got to be something else wrong. Does anyone have advise?

    I have tried to install Leopard, then upgrade to Snow Leopard, but it stalls and won't finish either. I have tried this route twice, but each time it will stall at the "one minute remaining" waypoint.
    How long are you letting it go at that point? I just upgraded an old PowerPC machine from Tiger to Leopard here yesterday. Amusingly, the installer jumped from over 3 hours to 11 minutes within a ten minute period. That last 11 minutes took about an hour, with most of that time spent at "one minute remaining." I've never seen such a long minute in my life! But, I just let it go until it finally finished, which it did. I've seen similar behavior in other Apple installers/updaters and would not be surprised to see it in the SL installer.
    As to the error message you keep getting, that seems at odds with your assumption that all involved drives/disks are fine. There have been some bad SL disks reported, but since you've installed SL from this disk before, I'd say that's not the problem. That leaves your machine. Somehow, I think that you've got a hardware problem that has cropped up since the last time you installed from this disk on this machine. The fact that the disk checks out with Disk Utility and DiskWarrior may simply mean that the drive is in the early stages of failing. Or it might be some other hardware. Do you have an Apple Store nearby?
    I don't think that R C-R's idea about phoning home is correct, as I installed SL while booted from the SL disk. I could be wrong, but I think you would have to manually connect to a wireless network while booted from the install disk, and I did no such thing, which means I was not connected to a network at all when I installed SL. This is not to say that SL doesn't phone home, only that it shouldn't cause a failure if the connection can't be established.

  • When I try to open a PDF downloaded from Adobe DC I get an error message:Adobe Acrobat Reader DC could not open 'nrneph.2015.33.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email

    When I try to download a PDF from Adobe DC, I get an error message: "Adobe Acrobat Reader DC could not open 'nrneph.2015.33.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)"
    I am using a Macbook Pro, OSX 10.9.5, Safari browser. Previous versions of Adobe Acrobat have worked fine for years.
    WGC

    What's the name of the file you are attempting to open?  Is it "ScreenFlow_4.5.2.dmg"?  If it is the correct name then the message is correct and you are attempting to open a file with DMG files extension and not one with a PDF file extension.  Adobe Reader opens PDF files an not any other file type.

Maybe you are looking for

  • Document "Check In" fails

    Hi All, I need your help. My use case is to edit a document locally which fails. In detail:    After pressing Edit locally the file opens in the right application.    Then I change some entries in the document, save it and want to check in the doc.  

  • Having problems switching itunes from pc to mac

    I downloaded the migration assitance and tried to use, but nothing happened. I then tried to use external storage to transfer my itunes from my pc to new mac and pc said that the itunes file was to large to download. I am stuck! Does anyone have an i

  • Order by Not working in Group by Above

    I m using this query in SQL (TOAD) it is working fine and also when I create report in Tabular it also work accordingly, I have DOC_NO varchar2(10) and store data in 1 ...50 record like serial no. but when I create report with GROUP ABOVE data not so

  • What Program replaces PS Album Starter Edition 3  ??????

    I have downloaded PS Element 9 Free Trial but do NOT see the Automatic Organization by Date that Album Starter Edition 3 had . This was great because I could find pictures i loaded by the Year , Month , Day  in a Calendar form that I liked . What pro

  • Showing 10 records at a time in a multirecord block

    Hello, I have a requirement to show 10 records at a time,consider a table in which there are 100 records which is associated to a multirecord block,in order to have a web look and feel I need to show first 10(1 to 10) record on load,when the user pre