MSI BASIC QUESTIONS

A

ANIRBAN UNILEVER

Two Questions:

1. You would like to apply permissions to an INI File which is being
written through the INI File table. How would you achieve this?

2. You have packaged an application which should ONLY be installed by
Administrators. How would you modify the MSI to ensure that the
installation will abort for non-administrators?

Thanks,
Anirban
 
P

Phil Wilson

1. Probably a custom action. If you are installing the file, the
LockPermissions table can apply some permissions.

2. A launch condition of AdminUser, but you should use Privileged if you're
going to be using a managed installation where a non-admin can install a
managed MSI setup.
 
A

Anil Abraham

Hello,

If you are looking at giving permission to an ini file the
easiest way would be to include that in the file table
with no entry in it. Give the required permissions and
then write to that file through the ini table. Since
writeFiles come before the WriteIniValues this shoud work.

I shall get back to you with the answer for the second
question.

Regards
Anil
 
A

ANIRBAN UNILEVER

Dear Phil Wilson and Anil Abraham,

Thanks to both of you.

Regards,
Anirban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top