kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

Change "Administrative Priveleges" Dialog

I was wondering if there was any way to change the dialog box that reports a user is not in the Administrators group. The dialog currently states:

Title: Installer Information
Message: [ProductName] requires administrative priveleges to install.

I would like to alter this dialog box, but I do not see it anywhere in the install sequence list of dialogs in the Advanced installer "Dialogs" section. Please let me know if changing this dialog is possible.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Are you referring to the dialog shown by a Launch Condition when checking the "Run only if user has administrator privileges" option? If this is the case then note that this is a standard Windows Installer dialog. You can modify only the text and there are two ways to do it: using Orca or modifying the dictionary.

I'm not sure why you are trying to this. If you need more details about modifying the text let me know.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

Yes, I have chosen the installation type: Per-machine only (fails if user is not administrator) in the "Install Parameters" secion of Advanced installer. This way if user is not an admin they get the error dialog that I referenced earlier. The reasaon for changing this is so that I can give them further instruction as to how to request assistance from an administrator...such as a phone number to a help desk. I have not heard of ORCA...could you please tell me what section of Advanced installer offer me Both ways to change this text.

Thanks, Kevin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can change the text shown by the "Run only if user has Administrator privileges" launch condition by modifying the .aip of the project. You open the .aip with a text editor and you search this row:

Code: Select all

<ROW Condition="Privileged" Description="[ProductName] requires administrative privileges to install." DescriptionLocId="AI.LaunchCondition.Privileged"/>
You modify the text [ProductName] requires administrative privileges to install. to the text that you need.
I have chosen the installation type: Per-machine only (fails if user is not administrator) in the "Install Parameters" secion of Advanced installer. This way if user is not an admin they get the error dialog that I referenced earlier.
When selecting the "Per-machine only" option, you get an error during the install if the user is not administrator:

Code: Select all

You do not have sufficient privileges to complete this installation for all users of the machine.  Log on as administrator and then retry this installation.
Since this is a Windows Installer error and it is not related to Advanced Installer, you can change the text only with Orca (unlike the message shown by the Launch Codition).

In order to change the text which is shown for "Per-machine only" installations, you open the MSI with Orca (a tool provided by Microsoft with Windows platform SDK). In Orca you can go to the "Error" table, select the error 1925 and change the description text the way you need.

You can read more about Orca here:
http://msdn2.microsoft.com/en-us/library/aa370557.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”