LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application(.exe) could not be unziped

Hello, everyone,

I have some difficulties in running a new '.exe' file. The problems are described as follows:

-1. My operating systme is Windows XP in simple Chinese;
-2. The codes in development environment run correctly, but the application(.exe) could not run normally;
-3. I guessed the reasson is the NI_unzip.vi could not unzip the paths of the application file which is build by myself:
     --3.1 NI_unzip.vi could unzip an application which was built by someone else with the same codes in German operating system, see fig_1;

fig_1.png
    

     --3.2 When use the NI_unzip.vi to unzip my application, error '42' occured, see fig_2.

fig_2.png

 

 

What's wrong with my application? How to solve it?

 

Thanks a lot!

 

Yulin

0 Kudos
Message 1 of 10
(4,534 Views)

This will be difficult to understand without some sample codes to inspect. Anything you can share with us to make this easier? Error 42 is a Generic Error so doesn't help us here.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 2 of 10
(4,516 Views)

Thank you!

But it's night in China now, some sample codes will be attached tomorrow when I go back to work.

0 Kudos
Message 3 of 10
(4,502 Views)

There are two cases, 'Development System'(fig_3) and 'Run Time System'(fig_4), the former runs normally and the latter does not.

fig_3.png

 

fig_4.png

 

We guessed that the 'Unzip.vi' can not unzip our application as excepted, a test vi named 'TestUnzip.vi' is attached. With the same codes, some executable exes built by someone else could be unziped(fig_1), so, I believe there is no wrong in the source code. But the exe files built by myself, no matter a complex project or a simple vi with just two paths included, could not be unziped(fig_2), so, I think there is something wrong with my exe files.(I'm sorry, the LV version on this PC is too low to open the source codes, two vis are attached)

 

To conclude: the source codes are correct, the applications built by myself are abnormal.

 

Question: what makes the error that the exe files built by myself could not be unziped?

 

 

Some environment messages:
OS: Windows XP.
System language: Simple Chinese.
NI software version of source code development: LabView 2009.
NI software version now: LabView 2010.
NI software language: English.

 

 

Wish that I have described my problem clearly.

 

 

Thanks!

Download All
0 Kudos
Message 4 of 10
(4,468 Views)

Why are you unzipping the EXE?  Or are you unzipping a directory?  Either way, it doesn't make any sense.  What are you actually trying to do here?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 10
(4,443 Views)

Directories should be unzipped here……

 

I believe that there is no wrong with the source codes. And, something which I pay more attention is what happend when I built an application(I found the 'TestUnzip.vi' can not unzip all the applications built by myself, but some exe files built with the same codes by someone else in Germany could be unzipped), why my directories could not be unzipped?

 

Again, thanks!

0 Kudos
Message 6 of 10
(4,433 Views)

In very old LV you could unzip the .exe, now you cannot. Is the german program LV5?

You cannot unzip an exe anymore.

 

If you're unzipping to directory you've wired wrong. You should have App.dir connected to Target dir and File connected to the zip-file name. Now you're trying to unzip the .exe.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 7 of 10
(4,427 Views)

Thanks!

 

You mean the 'exe file' could not be unzipped by 'unzip.vi' in newer version labview, right? The application file built by German engineer is in LV2009 or LV2010, maybe, I should compare the differences in 'application destination directory' between German exe and mine.

 

How do you think about changing my OS form simple Chinese to English?

 

By the way, you could find all source codes and documentation in https://wiki.gsi.de/cgi-bin/view/CSframework/WebHome?CGISESSID=2587c2f1d66a13586a022989f3b0b04c

0 Kudos
Message 8 of 10
(4,417 Views)

Yup newer EXEs don't work like Zips any more.  I mean they are archives and can be extracted but good luck getting your VIs out of the RCDATA of that EXE.  I think this change was around 2010.

 

Before then they were zips and could have VIs extracted.  Around version 7.0 instead of being a zip, the EXE could be renamed .LLB and opened up and the VIs would be inside.  But unless special changes were made when making the EXE the block diagrams and many front panels would be removed.

 

I think it was version 5.0 or so that would include block diagrams in EXE.  This is also the last version where the runtime engine was included with every built EXE, so you can just copy the EXE to another machine and run it without needing to include an installer.

Message 9 of 10
(4,408 Views)

Thanks a lot!

 

To change our LV from 2010 to 2009 , or to develop some new codes to match LV 2010, right?

 

To conclude: The reason why the application built by myself can not be unzipped is that the unzip function is not working anymore in the LV versions which is newer than LV2009.( NI says this would be a security risk……)

 

The debugging results will be shown here next week.

 

Thank to every one who has paid attention to this topic.

0 Kudos
Message 10 of 10
(4,377 Views)