We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sryan
Posts: 1
Joined: Mon Oct 30, 2006 3:35 pm

install problem with priviliges?

I downloaded the latest version of AdvancedInstaller, accepted the default
installation path ("C:Program Files\Caphyon\Advanced Installer") and it
erroneously installed to "C:\APPDIR".

I am wondering if this is related to another problem that I am seeing with
an older version. What is happening is that on certain Windows XP
systems when the user doesn't have full admin privileges, the application
directory is not created and all files are instead installed to the root
("C:\") directory. There is no error message to tell the user that a
problem has occurred. I did a little googling and found the following:

http://mail.python.org/pipermail/python ... 00401.html

Which sounds very much like the problem. The linked solution:

http://groups.google.nl/group/microsoft ... f8f0ba99db

Is there a fix and/or workaround for MSI files created by Advanced
Installer when the user does not have full admin privileges? I would be
happy to work with you as my current PC does seem to be exhibiting the
problem.

Thanks
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Indeed, the problem is that when a non-admin user installs a package with elevated privileges, only a restricted list of Public Properties are passed from the UI sequence to the Execute Sequence.

http://msdn.microsoft.com/library/defau ... erties.asp

Hence, since AI uses the "APPDIR", "SHORTCUTDIR" etc Properties (which are not secure), the files will end up in the wrong location. This applies to some extent to Property Based folders (if their path is modified in the UI Sequence, they will still end up in the default location).

This issue will be addressed in the next version of Advanced Installer scheduled for release next week. Until then, there are several solutions:

1. Add the Public Properties used by AI (APPDIR, SHORTCUTDIR etc) and the Properties for all your Property Based folders (if any) to the list of Secure Custom Properties. In other words, you need to edit the following line inside the AIP file:

Code: Select all

<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
I do not recommend that you use this approach.

2. Define the "EnableUserControl" Property in the Install Parameters page and set its value to 1. This is the approach I would recommend in this case.

Details:
http://msdn.microsoft.com/library/defau ... ontrol.asp

3. Set the per-machine "EnableUserControl" policy to 1 under the following key:

Code: Select all

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
Details:
http://msdn.microsoft.com/library/defau ... ontrol.asp

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”