LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 .
0 Kudos
Message 1 of 4
(2,846 Views)
Hi,
- Create the template folder where you want to add the support file
- On the Source Files tab of the application builder add all the files you want to be included (top-level vi, support files...)
- Click on Custom destinations, you get a list of the selected files
- Select your support file and change the build destination (on the right) with the browse button

That's it. The file will be added to the specified folder, and if you create an installer, this folder will be created by the installer.

Good luck,

Alberto
0 Kudos
Message 2 of 4
(2,846 Views)
Hi
i have tried this option. In this case, when the exe is created for the first time, the support file is created in the desired destination. But when I delete this exe and install it using the installer in a different directory say d:\test, i would expect the support file to be automatically present in d:\info\template, but this doesnt occur.

Can u explain me about the installation direcory menu in the installer destination setting screens. I couldnt trace any item that would help me to go back a step backward from the installer directory. Is there any other way to do this.

Imagine a situation where i have only the installer, when install the application, i should get the support file in a directory just out side the installation direc
tory.

This screen would pop up when u press the files button in the installer setting tab.

I have attached the vi and the build file.
0 Kudos
Message 3 of 4
(2,846 Views)
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
0 Kudos
Message 4 of 4
(2,846 Views)