LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installation with USI data plugin

Hi,

 

I have developed a tool using one of the USI data plugins.  This plugin has it's own MSI installation.  How do I include this in my own installation so it is automatically available to all users who install my tool?  I am using LV8.6. 

 

Thanks,

Ian

0 Kudos
Message 1 of 4
(3,280 Views)

Dear Ian

 

You need to create a batch file that will install the msiexec.exe during installation. 

 

A) If you are using LabWindows/CVI, try this method:

 

The Launch After Installation option is only valid for files that do not need the Windows shell to provide a launch application: .exe and .bat files. If you want to include a MSI file into your installer and launch this installer as well, you will need to install a launcher batch file that take the path to the MSI files as a command line input and calls msiexec.exe on the files. You may find the %dest command line variable helpful for specifying the installed location of the MSI files (see the Edit Installer Dialog Box - Files Tab help for additional information).

Once you have created a batch file that executes your MSI file, you should:

  1. Navigate to the Files tab from the Edit Installer dialog box. Under "Local Files and Directories", navigate to the location of your batch file.
  2. Click the Add File button which will add the batch file to the location you selected in the "Installation Files and Directories" section of that dialog.
  3. Right click on your batch file entry in the "Installation Files and Directories" section and select File Options.
  4. Select the Launch After Installation option.

 

B) If using LabVIEW, try this method:

 

Please see this KnowLedgeBase Article:

 

http://digital.ni.com/public.nsf/allkb/B4D0F02AA62AAF0D862573BD0070679C?OpenDocument

 

 

 

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK
0 Kudos
Message 2 of 4
(3,255 Views)

David,

 

Thanks for your tips.  I have created a BAT file which calls the necessary MSI installation package.  It all works fine when I test the BAt file by itself.  When it is called at the end of the installation process however I can see that the BAT file is called, but the MSI does not run.  I can see both files in the TEMP folder where they were put, and if I manually run the BAT then the MSI is called correctly. 

 

Any ideas why?

 

Thanks,

Ian

0 Kudos
Message 3 of 4
(3,220 Views)

I think I have solved this issue.   I had configured the installation build to put the BAT and MSI files together into the TEMP folder.  The BAT file was then supposed to call the MSI file. 

 

By changing the BAT file settings so the command window stays open, I can see that the working directory for the command instance is the folder where the installation SETUP.EXE resides, not the TEMP folder.  The BAT file was being invoked, but it was looking for the MSI file in the same folder as SETUP.EXE, not the BAT file.  

 

When I manually copy the MSI file to be alongside SETUP.EXE all works properly.  

 

Now, how should all this have worked, without me needing to manually put the MSI file in the right place?

 

Ian

0 Kudos
Message 4 of 4
(3,212 Views)