Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Our software requires frequent updates to the executable file (.exe). We run on XP, WIN 7 and WIN 8.

Years ago we developed the technique of packaging the updates in a .ZIP file and distributing that file along with an installer program. The installer program calls a copy of PKZIP25 (DOS) that we are licensed to distribute with our software and which resides on the target machine.

That solution has worked like a charm for at least 10 years.

In the last month we are finding that the .EXE is no longer being extracted. The files scroll through the DOS box cleanly, i.e. there are no error messages.

Antivirus is off.

Users do have rights to access the drive.

The .ZIP file can easily be extracted by hand using Windows Explorer.

We are stumped.

We can't use patch MSI's because the programs can reside anywhere and our users are generally too unskilled to be able to find them.

Anybody have any ideas on what we can do?

Thanks!

Murray
Posted
Comments
Zoltán Zörgő 24-Apr-13 12:21pm    
Please note, that if you want to extract executable in any subfolder of program files you need elevated privileges when UAC is enabled.
Keith Barrow 24-Apr-13 12:24pm    
+5.
dg6yhw11 24-Apr-13 12:50pm    
The files are off the root on a stand-alone computer, or the root of a mapped network folder.

We call the VB6 Shell function. The command prompt always has admin priviliges when called by hand but I don't know the privilige level when its called programmatically.

Thanks for helping.
Murray
Sergey Alexandrovich Kryukov 24-Apr-13 12:37pm    
Did you change the platform? From which to which? Such thing as "DOS box" does not exist for quite a long time now...
—SA
Mike Meinz 24-Apr-13 12:37pm    
The question to ask, which you probably already asked, is "What changed?" Something changed in the environment. I can't help you with that but I can offer an alternative.

If you want an alternative to using PKZIP25, you could develop your own software using the methods in .NET Framework System.IO.Compression Namespace to compress and decompress the EXE files.

1 solution

Using any excavated artifacts like PKZIP25 these days looks quite weird, to say the least. Moreover, I would not even consider using any separate application. You can easily embed one of the libraries working with ZIP in your code. The first one which comes to mind is open-source 7-ZIP:
http://en.wikipedia.org/wiki/7-zip[^],
http://www.7-zip.org/[^].

Depending on the platform and language you use, chances are, you can find bindings for them. In particular, this is a .NET wrapper:
http://sevenzipsharp.codeplex.com/[^].

Even better, you could switch to Microsoft technology for Patching and Upgrades. Please start here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370579%28v=vs.85%29.aspx[^].

[EDIT]

After OP's clarification on the language: even with VB6, you can use the ZIP library:
http://www.codeguru.com/vb/gen/vb_graphics/fileformats/article.php/c6743/Zip-and-Unzip-Using-VB5-or-VB6.htm[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900