cancel
Showing results for 
Search instead for 
Did you mean: 
alanrickman
Pilgrim

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()


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
Labels (1)
0 Kudos
1 Reply
Highlighted
alanrickman
Pilgrim

Re: Non Admin User & Error 1628

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 Smiley Sad

Anyone have any ideas on this?
0 Kudos