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
- :
- Administrator Privileges Only
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
‎Aug 27, 2008
01:13 AM
Administrator Privileges Only
Hello all
I want my installation to execute, only if the account in which the user has logged in to has administritive privileges.
I am using Installshield 2008 and Installscript MSI Project.
Target systems are windows 2000 and above including vista
In the OnBegin Event i use the following Function
MsiGetProperty(ISMSI_HANDLE, "AdminUser", userName, nvSize);
if(userName !=1) then
abort; //No administritive rights
endif;
I compile the installation and to test it i log on to the Guest Account in WinXP Pro.
As soon as i click on the setup.exe file, the installation starts and the first dialog appears showing the progress bar execution.. where the installation prepares itself..but in between the following error appears and the installation terminates before reaching the onbegin event:
1628: Failed to complete installation.
I even tried using the codition builder
Added just the AdminUser property without any operators or comparisons..
But of no use. The same error appears.
Is this because the installation is not able to extract the temporary files required to start the installation because of the guest account..
Can somebody please help me out with this.. is there a workaround..
Thank you all
I want my installation to execute, only if the account in which the user has logged in to has administritive privileges.
I am using Installshield 2008 and Installscript MSI Project.
Target systems are windows 2000 and above including vista
In the OnBegin Event i use the following Function
MsiGetProperty(ISMSI_HANDLE, "AdminUser", userName, nvSize);
if(userName !=1) then
abort; //No administritive rights
endif;
I compile the installation and to test it i log on to the Guest Account in WinXP Pro.
As soon as i click on the setup.exe file, the installation starts and the first dialog appears showing the progress bar execution.. where the installation prepares itself..but in between the following error appears and the installation terminates before reaching the onbegin event:
1628: Failed to complete installation.
I even tried using the codition builder
Added just the AdminUser property without any operators or comparisons..
But of no use. The same error appears.
Is this because the installation is not able to extract the temporary files required to start the installation because of the guest account..
Can somebody please help me out with this.. is there a workaround..
Thank you all
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 27, 2008
05:50 AM
U can set it in General Information->Product Properties->Install Condition.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2008
12:48 AM
Hi
Thanks for the reply..
i mentioned i tried adding the condition through the condition builder..
The error comes when the installation prepares it self.. i.e the first dialog when you click the setup.exe.
Thanks for the reply..
i mentioned i tried adding the condition through the condition builder..
The error comes when the installation prepares it self.. i.e the first dialog when you click the setup.exe.