Jump to content

can't use Shared Variable Library in builder installer


Recommended Posts

Hi

I should connect to PLC LS .i can’t use OPC-LS so I decided to make 3 file.

One of them (opc.vi) to connect to plc and another (main.vi) to show of result of testing and

For relation between PLC and Main program I use Shared Variable Library and make “OPC-Share.lvlib”.

When I make these 3 file and run in the LabVIEW and build EXE file, every thing is OK, but when I build Installer file, this not work correctly.

I set these items :

.

.

Project

post-27567-0-04999900-1351267038.jpg

.

.

.Main.vi Propertise

post-27567-0-53838600-1351267074_thumb.j

.

.

.OPC.vi Propertise

post-27567-0-64701100-1351267145_thumb.j

.

.

.Deploy ALL

post-27567-0-53893600-1351267162.jpg

.

.

.

post-27567-0-18830400-1351267185_thumb.j

.

.

.

post-27567-0-99239000-1351267225_thumb.j

.

.

.

I use this code in the main.vi for run opc.exe after build EXE file :

.

.

.

post-27567-0-69699800-1351267093_thumb.j

.

.

.

And for delopy and undelopy OPC-Share.lvlib I use these codes in first and end main.vi file :

.

.

.

post-27567-0-64788200-1351267349.jpg

.

.

.

I use Like these codes in the OPC.vi.

But after build installer file for distribute programm and use in the another computer , this erroe shows :

“Initializing...

Calculating dependencies...

Checking items for conflicts. This operation could take a while...

Preparing items for download. This operation could take a while...

Deploying My Computer

Deploying OPC-Share.lvlib\\127.0.0.1\OPC-Share deployment failed (error: -1967362042, IAK_SHARED: (Hex 0x8ABC7006) Unable to start service.).

Deployment completed with errors

Do you wish to run the application anyway or abort the execution?”

and after install in another computers this error shows :

.

.

.

post-27567-0-93617200-1351267499.jpg

.

.

.

help me please

Edited by majidebru
Link to comment

You could package your installer to automatically check and start the service. I don't know when a deployment takes place during an installation, so it might not be possible with the NI installer, but we've used InnoSetup to great effect in the past to meet custom installer needs.

  • Like 1
Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.