Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    6

    Uninstall the program if it exists

    Hi All,
    In general if we create a build using set up factory ,after installing the program and again trying to install the program it will just overwrites all the files if we select the overwrite option.
    My requirement is to uninstall the program first if exists and then install the program. I implemented the code in the on start up Actions script to detemine whether the program installed or not. But facing problem to run the uninstall exe using the File.Run but getting errors 1013.
    Pls provide any solution to satisfy the requirement, as i am blocked to move further in my project.

    Thanks in advance ....

  2. #2
    Join Date
    Aug 2008
    Posts
    6
    Hi all,
    I implemented the code for uninstalling the program if exists and then installing the program.But facing problem as both the process are running at a time. Need to run the installation process when and only when uninstallation process completed otherwise the application should exit. Waiting for your valuable comments.

    Go through the below code to get the uninstall process.

    result = File.DoesExist(SessionVar.Expand("%AppFolder%\\Win dowsApplication5.exe"));
    if(result == true) then
    proceed = Dialog.Message("Notice", "Press yes to overwrite the existing file .", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);

    if( proceed == IDYES) then

    asde =SessionVar.Expand("%StartProgramsFolder%\\%AppSho rtcutFolderName%\\Uninstall %ProductName%");

    res= Shell.Execute(asde, "open", "", "", SW_SHOWNORMAL);
    else
    Application.Exit(0);
    end
    end

Similar Threads

  1. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 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. HOWTO: Include Uninstall Support
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-26-2002, 02:33 PM
  4. Stopping program to complete uninstall
    By johnjohn in forum Setup Factory 5.0
    Replies: 1
    Last Post: 08-24-2001, 02:58 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