Installing Windows Services as simple User

Got a problem you cannot solve? Try here.
Post Reply
devdept
Posts: 29
Joined: Thu Feb 24, 2005 12:00 pm

Installing Windows Services as simple User

Post by devdept »

Hello,

My wonderful install project works perfectly, now. The only problem is that - if you are not the machine Administrator - it fails to install the windows service.

Can you please give me some directions? I read on this forum that MSI can install windows services despite the user privileges. Is this true? :?

Thanks,
[size=92]
[b]Alberto Bencivenni[/b]
[b][url=http://www.devdept.com]devDept[/url][/b] Development Team Leader
[/size][size=75][color=#666666]Structural Optimization | Finite Element Method | Computer Graphics[/color][/size]
sinan
Site Admin
Posts: 1035
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Windows Installer indeed can install without administrator rights. For this, the "always install elevated" system setting must be turned on in the group policy administrator, I believe. Once this setting is enabled, all MSI installs will run as if they had admin access to the system, even if they do not.
devdept
Posts: 29
Joined: Thu Feb 24, 2005 12:00 pm

Post by devdept »

Thanks, where can I find this option inside IA? Maybe inside the InstallService function?

Thanks again,
[size=92]
[b]Alberto Bencivenni[/b]
[b][url=http://www.devdept.com]devDept[/url][/b] Development Team Leader
[/size][size=75][color=#666666]Structural Optimization | Finite Element Method | Computer Graphics[/color][/size]
sinan
Site Admin
Posts: 1035
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

This is not an IA setting. Its a system setting that is set by administrators to allow/deny users without admin rights to install Windows Installer setups on their systems.

To set this setting:
  • Start->Run->gpedit.msc
    Computer Configuration->Administrative Templates->Windows Components->Windows Installer
    Double click Always install with elevated privileges and enable it

    That's it!
devdept
Posts: 29
Joined: Thu Feb 24, 2005 12:00 pm

Post by devdept »

Ok, Thanks.

The last question. Is there a way with IA to detect user privileges and take some action if they are not as need? For example, invite to skip the installation of the windows service.

Thanks so much!
[size=92]
[b]Alberto Bencivenni[/b]
[b][url=http://www.devdept.com]devDept[/url][/b] Development Team Leader
[/size][size=75][color=#666666]Structural Optimization | Finite Element Method | Computer Graphics[/color][/size]
sinan
Site Admin
Posts: 1035
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Yes, you can do this using the Get System Settings command with the Administrator Rights parameter.
devdept
Posts: 29
Joined: Thu Feb 24, 2005 12:00 pm

Post by devdept »

Thanks a lot, I love your way to support customers!! :lol:
[size=92]
[b]Alberto Bencivenni[/b]
[b][url=http://www.devdept.com]devDept[/url][/b] Development Team Leader
[/size][size=75][color=#666666]Structural Optimization | Finite Element Method | Computer Graphics[/color][/size]
sinan
Site Admin
Posts: 1035
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

You're very welcome! Please spread the word about InstallAware :)
Post Reply