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!
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.

Urgent : administrator privileges
Started by
jessicawang
, Nov 07 2005 08:25
5 replies to this topic
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.
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.
Posted 22 November 2005 - 20:14
roas: you could try the Is(USER_ADMINISTRATOR) function
Stefan Krüger
InstallSite.org twitter facebook
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
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
Posted 26 November 2005 - 11:45
What happens if you change this to:
if (Is (USER_ADMINISTRATOR, szIsData) != TRUE ) then
if (Is (USER_ADMINISTRATOR, szIsData) != TRUE ) then
Stefan Krüger
InstallSite.org twitter facebook
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