LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a readme file

I´m distributing a new version of the program I´ve develope, and I´m trying to make appear a "readme file" once the installation program is finished, warning the users from the modified features. So far, I guess it should be somehow introduced in the "Advanced..." installer settings of the "aplication Builder" tool.
 
How should I call the file or make the executable? And what about the "Command line arguments" field?
 
Thanks in advance.
0 Kudos
Message 1 of 12
(4,238 Views)
Hi,

for Command Line Arguments there are several KBs on web:
http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/launchingvifromcommandline/
http://zone.ni.com/reference/en-XX/help/371361A-01/lvprop/app_command_line_args/

On your PC is a great example: Open Ni Example Finder, got to Search tab and type "command".
The first example, it's called "CommandLine.vi" is the right one.

In LV8 you have the option to define a Readme file in the installer properties-Product Information

Best regards,
ThSa



Message 2 of 12
(4,223 Views)
Try to run a batch file containing the following line:

notepad readme.txt

This should work, unless there are directory issues.

Paolo

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 12
(4,216 Views)
Can u please give a bit more information about this batch file?
0 Kudos
Message 4 of 12
(4,201 Views)
I mean a batch file you would include in the installation kit as a support file, to be installed into the Install Directory.
Let's call it showreadme.bat. Then, in the "Advanced.." dialog of the App Builder, you simply specify showreadme.bat as the executable to be run, without parameters.
The batch will work if the installer launches it from the Install Directory (otherwise you may need to add a parameter to the batch command line, but I think it is worth to try the simplest case).

Paolo

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 12
(4,196 Views)

Hi again Paolo,

I tried your proposal, but I get a error message saying that the "readme.txt" is not found. The prompt has the following value:

C:\WINNT\system32>notepad readme.txt

and not the instalation path.
 
The readme and batch files are correctly created and work with no problem after installation, but I would like to make it as a pop up once the program is installed. I guess I should make use of the command argument "[INSTALLDIR]", but how to assign it in the bat file?
 
Thanks for your time

Mensaje editado por Gatet

Mensaje editado por Gatet

0 Kudos
Message 6 of 12
(4,184 Views)
Write in the bat the following line:

notepad %1readme.txt

and specify [INSTALLDIR] for the command line arguments.
This works for me.

Paolo

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 7 of 12
(4,175 Views)

Unfortunatelly, not for me yet...

My command prompt line shows now:

C:\WINNT\system32>notepad C:\Programreadme.txt

when it should be C:\WINNT\system32>notepad "C:\Program Files\Application\readme.txt". Could it be a problem of the space in the "Program_Files" folder?

I atatch u a screenshot of the installer settings to check that values are written as u indicated.

 
 
0 Kudos
Message 8 of 12
(4,158 Views)
If you have spaces within the path, modify specific folder names with the following syntax C:\"Program Files"\....

Regards,
ThSa
0 Kudos
Message 9 of 12
(4,155 Views)
The problem is indeed in the interleaving space.
OK, let's do it in a different way: write only      notepad %1     in the bat
and specify     "[INSTALLDIR]readme.txt"     as argument (with the double quotation marks).
This works for me and supposedly for you too Smiley Wink

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 10 of 12
(4,151 Views)