Solved

VB6 App and PDW

Posted on 2004-10-18
8
631 Views
Last Modified: 2012-08-13
Hi,

I have a VB6 Application "MyApp.exe" and I created a Packaging & Deployment Wizard setup to distribute it.
Now what happens is that Setup won't overwrite MyApp.exe if the version numbers are the same.

My question si: is there a way to make PDW setup copy the new exe file regardless of the version number, or compare dates too?

What happens is this:
Run Setup.exe on test machine
Then modify MyApp.exe without changing the version, recreate Setup
Re-run setup on the same test machine
Result: MyApp.exe does not get replaced with the new one.

Thanks,
Alex
0
Comment
Question by:astankovic
8 Comments
 
LVL 5

Accepted Solution

by:
fadloun earned 104 total points
Comment Utility
helloo
whenever I see a question abou PDW my answer is :
move to InNoSetup software :
alot of  options
better interface
easier
you can get it from
 http://www.jrsoftware.org
a sample is available there
regards
0
 
LVL 5

Expert Comment

by:fadloun
Comment Utility
forgot to tell you : it is 100% free
0
 
LVL 5

Assisted Solution

by:brianb99999
brianb99999 earned 103 total points
Comment Utility
totally agree with fadloun - havn't looked back since I started using INNO - just remember to have a look at the FAQ for seting up VB programs on the site.

But if you need to use PDW you can always modify the source of the PDW to do what you need to do (before I moved to INNO I had to modify it for a client to remove some of the dialog boxes that are displayed), it is in:
C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1\SETUP1.VBP

Brian.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 18

Expert Comment

by:Sethi
Comment Utility
Same here. Ever since I am using Inno, I have not even tried any other installer. Do not forget to use IsTools along with it. This is a very good free 3rd party tool with Inno and Inno without IsTool is half good.
0
 
LVL 4

Author Comment

by:astankovic
Comment Utility
Well unfortuatelly I'm stuck with PDW. Not by choice.
I know about modifying Setup1.exe, but I would rather not go there.
I was just hoping there was a Setup.lst parameter that would make it compare by version AND date.
It compares file dates for .txt files...
0
 
LVL 3

Assisted Solution

by:vbhoncho
vbhoncho earned 103 total points
Comment Utility
How could you be stuck with the PDW?

You're asking for trouble by using the PDW. It has never worked terribly well, and has never been updated to work with the latest versions of Windows. You will be far better off in the long run to translate your PDW setup.lst file into an Inno setup script.

Here's what you can do:
* Download and use Inno Setup for free.
* Download and use a PDW to Inno translator for free.

Here's what you gain:
* Complete control over these sorts of install issues.
* A single, compressed installer executable.
* Excellent support.

Your total cost is $0 and probably about 30 minutes of you time - total (unless you have a slow dial-up connection).

Here are some relavent links:
http://www.jrsoftware.org/isinfo.php
http://www.jrsoftware.org/iskb.php?a=vb
http://www.randem.com/innoscript.html
http://www.istool.org/default.aspx/
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now