取消
顯示結果 
搜尋替代 
您的意思是: 

How to exclude .aliases file from EXE target

I have a project developed in LabVIEW 2014 which includes .aliases file in the EXE target (and so in the installer which is built including the EXE target).

I don't want to include this file in the installer because it contains information specific to the local computer.

I found this thread but I don't find a way to remove the file from the installer.

How can I do this?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
1 條訊息(共 7 條)
5,145 檢視

Hello,

.aliases files is not auto-added to the installer, when you chose what to include in the installer you simply don't include the .aliases files.

I also suggest you the following link:

 

On .aliases Files

https://decibel.ni.com/content/thread/23004

 

I hope this could help.

 

Enrico

0 積分
2 條訊息(共 7 條)
5,083 檢視

@esgro wrote:

Hello,

.aliases files is not auto-added to the installer, when you chose what to include in the installer you simply don't include the .aliases files.

I also suggest you the following link:

 

On .aliases Files

https://decibel.ni.com/content/thread/23004

 

I hope this could help.

 

Enrico


If you use the exe build spec in the installer build spec (which is much simpler than adding all the files manually) the .aliases file is automatically included.

 

You can, however, use a custom .aliases file in the exe build spec (Advanced > Use custom aliases file). This can probably even be empty.

3 條訊息(共 7 條)
5,075 檢視

Can you send some screenshot in order to describe your situation?

 

Thanks

 

Enrico 

0 積分
4 條訊息(共 7 條)
5,071 檢視

Here you are.

Installer aliases.pngFor such a simple case you could probably add the files individually (you'd have to add them to the project first). For more complex applications with lots of dependencies in the data folder it is convenient to add an exe build spec to the installer.

5 條訊息(共 7 條)
5,067 檢視

Hi dan_u,

you perfectly summarized the situation, an d I try to give some additional details:

  1. the simplest way is to create an EXE target. .aliases files is automatically included in the EXE target (or I think so - I didn't find any way to exclude it from the EXE target)
  2. then create the INSTALLER target including the EXE target (not adding the single files manually)
  3. since the EXE target include .aliases file, the INSTALLER includes the .aliases file

I don't know if a custom empty .aliases file is a solution, because my project is under a git environment where .aliases files are not tracked. If another developer clones the repository, the custom  .aliases file is not present (since it's not tracked) and so the installer cannot be built.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 積分
6 條訊息(共 7 條)
5,061 檢視

But you could have it under version control. We do that with a custom .ini file, which we add to the project and under version control, and which is used for the exe build spec. The same could be done with the .aliases file I assume.

0 積分
7 條訊息(共 7 條)
5,053 檢視