LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying file paths in the CVI distribution kit

I am creating a distributuion kit using CVI 7.1.1, and I want to add some files in the File Groups.

On our project we specify an environment variable %PXIDRIVE% to indicate the drive letter of the workspace.

So some of our engineers work off of, say, H: drive, whilst others use C: drive.

In Edit File Group, I don't seem to be able to specifiy the environemtnal veraible for the path, nor a relative path.  It expects me to hard-code in the drive letter.

How can I enter the environmental variable or a relative path?

Regards,
Darren



0 Kudos
Message 1 of 4
(3,583 Views)
Hi Darren.

If you click on the Advanced button on the Create Distribution Kit dialog, you can specify an Executable to Run After Setup, along with command line arguments. The executable can be a batch file, which can easily access your environment variables. The arguments may include special variables set by the installer; check the CDK Help for details.

You need to include the executable in one of your file groups.

I would place any files which need special handling in a separate file group, which could be installed (for example) in a folder below your application directory. The batch file would include commands to copy the files to their final destination, remove the temporary folder, and record the results in a log file.

Regards,
Colin.
0 Kudos
Message 2 of 4
(3,564 Views)

Is the "specify an Executable to Run After Setup" option still available in LabWindows/CVI 2015?  It's the kind of thing I'm looking for.

0 Kudos
Message 3 of 4
(2,602 Views)

LabWindows/CVI 2015 does have a similar option.

See this: Re: CVI-Built Installer Run an Executable After Installation

0 Kudos
Message 4 of 4
(2,593 Views)