Using AI 7.7:
I have a question which might seem simple: but it's NOT!
I have a program that I have a custom action that makes a backup.
I want it to run:
1. If this is a first time installation: anyway: there's something I want to backup (because I might destroy it).
2. If I'm uninstalling: I want to backup again before I remove (same custom action).
3. If I'm upgrading: I want to backup (same custom action) when it uninstalls the "old" version.
And that's my problem: I can mark/execute the custom action to xcopy/backup when it's first time installation - no problem with that (condition: Not installed).
I can also mark/execute the custom action when it's uninstalled (REMOVE="ALL") or upgrading (same condition), BUT!!! and here's the catch! I can't seem to create a condition that will NOT backup during the upgrade AFTER the uninstall finished and installation of upgrade begins!
Meaning: during upgrade, I have TWO backups! which I do NOT want!
The first is when the product is first uninstalled - I want that - and that's good.
But the second when the upgrade is being applied! NOT good == I do NOT want that!
And the reason is: the installer doesn't know that I have just performed an upgrade and it's NOT first time installation!
However: for the installer it "seems like" a "fist time installation", and that's why is backups the SECOND time!
I've tried various combinations, but none seem to work. Since the project is set to "uninstall first, and then install" it just doesn't know that it's NOT first time installation when upgrading.
How can this be accomplished? How can I identify == create a condition, that tells the installer that this is NOT a first time installation because it just performed uninstall!
Dashut.
FOLLOW US
Get the latest news in Application Packaging