Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have created an executable(test.exe) using InstallShield s/w. But when I run the same for non-admin user it fails. how to make it install for the all the users?? I am very new to InstallShield.

Thanks in advance...
Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-12 12:24pm    
Is it Windows 7?
--SA

1 solution

This is not really related to your installation. The problem is: your application itself needs elevated privileges. You either do something wrong, or the changes to the system incurred from the execution of your application really required administration privileges.

This "something wrong" could be as simple as accessing some directory which is not legal for access by a non-privileged user in Windows 7, such as root directory (like "C:\") or Windows directory. Maybe you even use some hard-coded path names, which should never be done.

That said, you need to examine your application. Simply run it under the Debugger and look where the exception is thrown. You can also catch all exceptions on top of the stack frame of each thread and dump full exception information to see which operations are not allowed by OS. After that, decide is you want to change it or if you really have a legitimate reason to work with elevated privileges.

If you really need it, here are your options assuming Windows 7: http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

Please understand that if you do it, you cannot avoid typing administrator password every time.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900