Archive: Vista rights-question


Vista rights-question
Hello,

I want to create a setup that can be started by a normal user and an administrator.

I figured this out already. So I have to set the RequestExecutionLevel user.

The problem with that is: if I want to install into the "program files"-dir. The installer says it can't create the files there, even if I run the installer as an admin. I think this is because, windows runs the app in usermode because of the setting above.

I need to be able to run the setup as user, because there is one option users can select. But the other option could be run as admin.

How could I get the installer to popup the windows-vista message to ask for permissions in program files dir and NOT directly on execution of the setup file?

I hope someone can help me with that!

Thank you!


You can wrap an elevated installer that'd install into the Program Files directory inside the normal installer and execute it for administrators.


Thank you kichik.

I could do it that way. The problem is, that this almost doubles the file-size, because I would have to put all the installfiles into the maininstallert (for users and tmp-dir installation) AND also into the admininstaller (program files-dir installation).

Perhaps there is another solution?

Thank you!

Regards,
james


What about having the wrapper installer, running as user, only installing that other option?