Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    3

    silent mode in uninstall?

    Hello,
    I would like to know how can i uninstall programs in Setup Factroy installer in silent mode, i have this uninstall string in registry:
    "C:\Windows\MyProduct\uninstall.exe" "/U:C:\Program Files\MyProduct\MyProduct.xml"
    What do i need to Add/remove so the unistallation will be completly silent?
    i have tried the /S switch but it didnt work!
    Thanks for the help!

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    This is how I do silent uninstalls. I'm sure there are other similar ways to do this.

    First, check the attached screenshot to enable silent uninstalls for your project. It is located in 'Uninstall > Settings'.

    Second, add code to the following sections.

    On 'On Startup':
    Code:
    sUninEXEPath = SessionVar.Expand(_WindowsFolder.."\\%ProductName%\\uninstall.exe");
    sUninXMLPath = SessionVar.Expand("%AppFolder%\\irunin.xml");
    sSUF7UninCLA = SessionVar.Expand("\"/U:"..sUninXMLPath.."\" /S".."\"");
    sWinUninPath = SessionVar.Expand(_WindowsFolder.."\\%ProductName%");
    On 'On Pre Install':
    Code:
    -- Check for the existence of a Setup Factory 7 installation and silently uninstall first
    SUF7UninXMLExist = File.DoesExist(sUninXMLPath);
    if SUF7UninXMLExist then
    	File.Run(sUninEXEPath, sSUF7UninCLA, sWinUninPath, SW_SHOWNORMAL, true);
    end
    When a new installer is run, it checks to see if a previous installer for that product exists. If it does, it is silently uninstalled first and then the new version is installed.

    I hope this helps you.
    Attached Images

  3. #3
    Join Date
    Sep 2006
    Posts
    3
    First thing, Thank you for your fast answer!
    Hmm i'm not currently scripting a setup factory installers
    Im trying to research about setup factory 7.0's silent uninstallers,
    so... what exactly should i write in the registry/command line so this will uninstall silently (if it is available)
    Thanks again for your effort!

  4. #4
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    I don't understand what you're asking. Others can correct me if I'm wrong but I believe the installer has to be built with support for silent uninstalls in the first place. That is enabled with the checkbox in the screenshot I provided.

    Second, the run command is there to do it. You run the uninstall.exe file with the command line arguments in the variable I posted called 'sSUF7UninCLA'. It would be the same as typing this at the command prompt:

    Code:
    C:\WINDOWS\ProductName>uninstall "/U:C:\Program Files\ProductName\irunin.xml" /S
    Last edited by Tek; 09-04-2006 at 02:17 PM.

  5. #5
    Join Date
    Sep 2006
    Posts
    3
    Thanks again for your fast answer, and sorry for my bad english :(
    i was looking for that silent command you have just givven,
    Thank you very much, and have a good day
    Last edited by Enigmaaa; 09-05-2006 at 12:16 AM.

Similar Threads

  1. Location of *.inf file in silent mode
    By RDodson in forum Setup Factory 7.0
    Replies: 0
    Last Post: 03-06-2006, 10:30 AM
  2. Uninstall Data – Questions and Bugs (?)
    By csd214 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 06-21-2005, 11:05 AM
  3. Silent mode - icon change
    By jenny62 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 04-14-2004, 07:56 PM
  4. Overwriting Silent Mode
    By Bishal in forum Setup Factory 6.0
    Replies: 2
    Last Post: 10-14-2003, 06:02 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