This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Non Admin User & Error 1628
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 12, 2007
08:45 AM
Non Admin User & Error 1628
Having spent some time looking through the forums i've still not been able to find an answer to this, hope someone can help.
I have placed the following code in OnBegin()
When i run setup.exe as a user with administrative privileges as you'd expect a message box is displayed with "Admin User".
However if I run setup.exe as a user without administrative privileges "1628: Failed to complete installation" is displayed.
So presumably something else is evaluating the privileges of the currently logged on user... How do I stop this message being displayed? All help will be greatly appreciated!
Oh its IS2008 and a Installscript MSI project.
Cheers,
Alan
I have placed the following code in OnBegin()
nResult = Is(USER_ADMINISTRATOR, "");
if nResult != 1 then
MessageBox("Only a user with Administrative privileges can run this installation.\nCurrent user does not have this privilege.",SEVERE);
abort
else
MessageBox("Admin User", INFORMATION);
endif;
When i run setup.exe as a user with administrative privileges as you'd expect a message box is displayed with "Admin User".
However if I run setup.exe as a user without administrative privileges "1628: Failed to complete installation" is displayed.
So presumably something else is evaluating the privileges of the currently logged on user... How do I stop this message being displayed? All help will be greatly appreciated!
Oh its IS2008 and a Installscript MSI project.
Cheers,
Alan
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 20, 2007
05:15 AM
Rightly or wrongly I appear to have fixed this issue by setting "Required Execution Level" (found in Releases -> Setup.exe) to Invoker.
Rather than "1628: Failed to complete installation" being displayed my code is being executed.
However..... this does not work if I build the installation using IsCmdBld.exe 😞
Anyone have any ideas on this?
Rather than "1628: Failed to complete installation" being displayed my code is being executed.
However..... this does not work if I build the installation using IsCmdBld.exe 😞
Anyone have any ideas on this?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)