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

Urgent : administrator privileges


5 replies to this topic

jessicawang

jessicawang
  • Members
  • 8 posts

Posted 07 November 2005 - 08:25

Dear all,
we have found that the install package, when installing at XP which the user is administrator but he does not have full control at the windows, then there will have error -5006 : 0x80070005 occur when installing. But after I grand the full control to a folder and install the package at the folder then it can successfully installed. Does anyone have the same problem? And how can I check if a user is have full control privileges at the PC by installshield?
Thanks!

roas

roas
  • Members
  • 10 posts

Posted 21 November 2005 - 11:03

Hi,
I am also having a similar problem like you.
I want that if I uninstall in user mode,which is
not having administrative rights,a message box
should come or can I disable change/remove
button in Add/Remove programs in user mode.
How can I check through InstallShield
that I am in user mode.
Can anyone help me regarding this.
Thanks.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 22 November 2005 - 20:14

roas: you could try the Is(USER_ADMINISTRATOR) function

roas

roas
  • Members
  • 10 posts

Posted 24 November 2005 - 10:28

Thanks for the Answer,
But I have already tried this funtion at OnMaintUIBefore
and it did not work for me.

I tried with following code:

if (Is (USER_ADMINISTRATOR, szIsData) = FALSE) then
SetDialogTitle(DLG_MSG_INFORMATION,"abc");
MessageBox ("Administrative rights are required to UnInstall this product.\nPlease contact your System administrator.",INFORMATION );
abort;
endif;

While uninstalling a progress bar is coming only and
product is remain installed.
What can I do now
Please help
Thanks

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 November 2005 - 11:45

What happens if you change this to:
if (Is (USER_ADMINISTRATOR, szIsData) != TRUE ) then


roas

roas
  • Members
  • 10 posts

Posted 30 November 2005 - 06:40


I changed it accordingly in OnMaintUIBefore function but still it is not
giving any messagebox.
Can't I disable add/remove programs in non-admin mode
by InstallShield.
Pls Reply
Thanks