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
FOLLOW US
Get the latest news in Application Packaging