Announcement

Collapse
No announcement yet.

Conditional uninstall

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MadDogDean
    replied
    OK, so it can be done without too much effort. It is just a little extra work in writing the uninstall scripts to test and account for what is installed and what is needed to be uninstalled.

    Unless someone has some really good suggestions/insights, I'll just follow the path of manual coding the uninstall, with a few (hopefully not TOO many) IF...ELSE...END statements...

    Cheers,
    MadDogDean

    Leave a comment:


  • MadDogDean
    started a topic Conditional uninstall

    Conditional uninstall

    Hey all,

    Wondering about the feasibility of a "Conditional Uninstall" using SUF.

    Installation Example:

    Installer_A.exe
    - Checks if main program (myprogram.exe) is installed
    - if not installed it is installed
    - installs data file (a.data)

    Installer_B.exe
    - Checks if main program (myprorgram.exe) is installed
    - if not installed it is installed
    - installs data file (b.data)



    Uninstallation Example:

    User uninstalls "Installer_A.exe" but "Installer_B.exe" is still installed
    - myprogram.exe is not installed as it is still needed by b.data
    - only a.data is uninstalled

    User later uninstalls "Installer_B.exe"
    - myprogram.exe is no longer needed as it is only required by b.data
    - myprogram.exe is uninstalled
    - b.data is uninstalled

    There might be 5 - 10 of the xx.data files installed, myprogram.exe should only be installed when there are no xx.data files remaining.

    Is this something that can be done with SUF or does it become quite complex doing this sort of a "Conditional uninstall"?

    Cheers,
    MadDogDean
Working...
X