Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1

    How to Uninstall before starting an installation

    Hi,

    When I updade our software on clients machines I'm having a problem where by Setup Factory is not replacing DLL's that have been changed. I've been advised to uninstall the package first, before the installtion starts.

    Does any body have any pointer on how to do this without the user knowing. Ideally I only want to remove the files, leave the registry and shortcuts intact.

    TIA
    Bolton Wolf

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Well, to remove just the files is a bit of a challenge. If you wanted to run the old uninstall, you would be better off just reading the path to the uninstaller from:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\<<Your Product ID>>

    But if you want to just remove files what you could do is read in the existing uninstall.xml file using the XML plugin and then iterate through the files section and remove them manually.

    However, if the core problem is that DLLs are not being replaced, I do not see how this method witll help you anyhow. What does the log file say about the existing DLLs when you run the install? Are they in use at the time of the install? What is your overwrite option set to?

  3. #3
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    I have a project where I successfully run the uninstall in silent mode as the first task "While Installing" (remember to check "Allow silent uninstall" when you build the project).

    If you want to keep the registry entries you could have a conditionally delete in your uninstall process, or you could read the values into variables before starting the uninstaller.

    What really concerns me is WHY your DLL isn't updated. Do you have "Always overwrite existing file" or…? Some error trapping should tell why the DLL's aren't replaced.

Similar Threads

  1. Uninstall Data – Questions and Bugs (?)
    By csd214 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 06-21-2005, 11:05 AM
  2. Uninstall folder
    By Sergio_S in forum Setup Factory 7.0
    Replies: 10
    Last Post: 06-05-2005, 11:53 PM
  3. Handling of Installation of External Components
    By John1969john in forum Setup Factory 7.0
    Replies: 2
    Last Post: 04-08-2005, 09:05 AM
  4. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  5. HOWTO: Include Uninstall Support
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-26-2002, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts