Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Problem with uninstall in WinXP


1 reply to this topic

tulip001

tulip001
  • Members
  • 2 posts

Posted 10 December 2003 - 10:57

Hi,

i have installed a program in WinXP as Administrator.

Now i want to do a deinstall before an installation. The installation of the new programversion is run as "Hauptbenutzer" (or Poweruser?) .

The problem is, that the setup.exe of the orl version, called with -uninstall, will always start the installation prozess and not the uninstall prozess.
Why?

When i run the setup.exe as Admin i can deinstall the program.

How can i find out if a program has to be deinstalled with Admin rights?

Ciao
Tulip001

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 10 December 2003 - 17:32

All IS setups require Administrator privileges to both install & uninstall.

To better enforce this you can add checks such as the following to OnBegin:
CODE
function CheckAdmin()
 NUMBER nResult;
 STRING szMsg;
begin
 nResult = Is(USER_ADMINISTRATOR,"");
 if (nResult = FALSE) then
   szMsg = "This install requires Administrator privileges.\n" +
           "Please login with such rights and try again.";
   Msg(szMsg, SEVERE);
   abort;
 endif;
end;

user posted image