Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:58:29+00:00 2026-05-27T10:58:29+00:00

Im working on software that required psqlodbc drivers and postgresSQl 9.0 database, we have

  • 0

Im working on software that required psqlodbc drivers and postgresSQl 9.0 database,
we have a installer designed using delphi 7 to install both psqlodbc and postgreSQl 9 silently
one after the other on click of a single button, here everything runs fine,
but the problem is during uninstall,
i first want to unistall psqlodbc and then postgreSQl 9 also on a sinlge button click,

i want to run the postgreSQl 9 unistaller using shellpApi only after psqlodbc has been unstalled,
as of now im checking for ‘cmd.exe’ is running or not to start postgreSQl uninstaller, but sometimes after unstalling psqlodbc the ‘cmd.exe’ remain n the postgreSQl unistaller cannot be executed,

so any please tell me
how to check if psqlodbc uninstall process is completely.

the files are
1.psqlodbc.msi
2.postgresql-9.0.2-1-windows.exe

install/uninstall is handled wit bat file

thanks in advanced:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:58:30+00:00Added an answer on May 27, 2026 at 10:58 am

    I got how to check if psqlodbc has been uninstalled completely so that i can start unistalling postgres

    For that i found the solution
    On stackoverflow itself

    function TForm1.ExecAndWait(const CommandLine: string) : Boolean;
    var
     StartupInfo: Windows.TStartupInfo;        // start-up info passed to process
     ProcessInfo: Windows.TProcessInformation; // info about the process
     ProcessExitCode: Windows.DWord;           // process's exit code
      begin 
        // Set default error result
        Result := False;
      // Initialise startup info structure to 0, and record length
       FillChar(StartupInfo, SizeOf(StartupInfo), 0);
       StartupInfo.cb := SizeOf(StartupInfo);
     // Execute application commandline
       if Windows.CreateProcess(nil, PChar(CommandLine),
       nil, nil, False, 0, nil, nil,
       StartupInfo, ProcessInfo) then
     begin
       try
        // Now wait for application to complete
         if Windows.WaitForSingleObject(ProcessInfo.hProcess, INFINITE)
          = WAIT_OBJECT_0 then
          // It's completed - get its exit code
          if Windows.GetExitCodeProcess(ProcessInfo.hProcess,
           ProcessExitCode) then
           // Check exit code is zero => successful completion
          if ProcessExitCode = 0 then
             Result := True;
       finally
      // Tidy up
       Windows.CloseHandle(ProcessInfo.hProcess);
       Windows.CloseHandle(ProcessInfo.hThread);
      end;
      end;
     end;
    

    so step # 1
    if ExecAndWait('msiexec /x C:\psqlodbc09\psqlodbc.msi') then
    begin
    //uninstall postgresNow...!!
    end;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a piece of software that would work well with an iTunes
I'm working on a plugin for Avogadro (chemistry software) that uses pyqt. I've some
Folks, I'm working on a little piece of rich client software that I'd like
A software application that I'm working on needs to be able to assign tasks
I am working on a software development project that uses code written primarily in
I am working with a team that works on a very large software project,
I am using and working on software which uses MySQL as a backend engine
First question. Be gentle. I'm working on software that tracks technicians' time spent working
I'm working on some production software, using C# on the .NET framework. I really
I'm working on a complex network software and I have trouble determining how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.