LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

web service installer error

Oh, so that is what he meant.  I did not understand what was intended by that tool.

So, the post build action runs before the web server installer?  And it is able to modify the web service installer's timeout before it get run?

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 11 of 33
(2,673 Views)

Ok, just tried running the post installer at the end of installation.  It generates this error:

post installer error.jpg

I have verified that the exe is on the machine in the correct folder.  I suspect it is looking for some file that is missing, but since the source code was not included I am not sure what exactly it is doing.

I also tried running this by itself on the target machine and I get the same error.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 12 of 33
(2,662 Views)

Hi John,

 

I suspect it was built for an earlier version than LabVIEW 2015. Can you try adding these files to your installer instead?

0 Kudos
Message 13 of 33
(2,643 Views)

Tried this new version.  Same error (code 7) but now it also crashes and I need to kill the NILVWSPostInstallerScript.exe from task manager before the web service install will run.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 14 of 33
(2,628 Views)

It appears my instructions were not complete. In order to find this executable, we need to replace the NILVWSPostInstallerScript.exe that already exists on your system as part of the 2015 Runtime Engine. The Destinations section of the build spec should be modified to include this directory: C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\2015\LVWS. Then, the Source Files section should send the post-installer script to that directory.

Lokanis LVWS2.png

 

My hope is that doing so will also avoid the crash, though that is not the behavior I would expect if it could not link the post-installer script to the web service that it tries to deploy.

0 Kudos
Message 15 of 33
(2,611 Views)

Just so I am clear, you want me to overwrite the existing NILVWSPostInstallerScript.exe located here:

"C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\2015\LVWS"

on the target computer.

I do not need to run this executable as part of the installer anymore (as you previously instructed).

Once I do the replacement, this will get called by the part of the installer that deploys the web service.

 

Correct?

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 16 of 33
(2,579 Views)

So, I tried this new plan.  Here is what I discovered:

 

1. The LabVIEW installer cannot replace an existing file.  So, I cannot copy the new version over the top of the existing one.

2. I then tried manually deleting the existing NILVWSPostInstallerScript.exe file on the target machine and then installing my application.  This did place the new file in the correct location.

3. Once the correct file was in place, the web service deployed without the timeout error.

 

So, this does fix the timeout issue, but I cannot find a way to install the fix without manually removing the old NILVWSPostInstallerScript.exe first.

Perhaps a script needs to be created and added to the installer to first delete or rename the old NILVWSPostInstallerScript.exe before the web service deploy happens.  But since we cannot run a script from the installer before the files are placed, we would need to place the new NILVWSPostInstallerScript.exe in the folder but give it a different name, then the script would have to rename the old NILVWSPostInstallerScript.exe to something else and then rename the new NILVWSPostInstallerScript.exe to the correct filename.

And this script would have to be in the form of an EXE since that is all the installer can run.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 17 of 33
(2,571 Views)

Does anybody have any better ideas on how to solve this?  Is there any way to get the installer to replace the file without hacking together a custom batch file as I suggested?

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 18 of 33
(2,538 Views)

Hi John,

 

Sorry for the slow reply, but I just can't reproduce the problem you've been seeing. LabVIEW has been able to replace the file on-disk each time I've run the installer, including on fresh machines. Is it possible that there is a file permissions problem? Also, does the installer return an error or just silently not replace the file?

0 Kudos
Message 19 of 33
(2,518 Views)

Here is what I tried.  (see att)

I tested this on Windows7 and Windows Server 2012R2.  I have admin rights on both systems.  The original file is not read-only in either case.

The installer does not complain when it runs.  It simply does not replace the file.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 20 of 33
(2,506 Views)