This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Specify NetworkService account when installing services?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 10, 2010
07:16 PM
Specify NetworkService account when installing services?
Is it possible to specify the NetworkService account when configuring a service via the Organization\Components view in installshield? I can get it to install as LocalSystem if we leave it blank, but we need NetworkService instead. I have tried ".\NetworkService" but it fails during the install with a permissions error.
Thanks!
Thanks!
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 13, 2010
11:15 AM
I also tried the COmponent Wizard and entering "NT AUTHORITY\NetworkService" for the account. The installation dies with an "Error -1603".
Is it possible to specify the network service account for service install? :confused:
Is it possible to specify the network service account for service install? :confused:
peakbagger66 wrote:
Is it possible to specify the NetworkService account when configuring a service via the Organization\Components view in installshield? I can get it to install as LocalSystem if we leave it blank, but we need NetworkService instead. I have tried ".\NetworkService" but it fails during the install with a permissions error.
Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2010
10:39 AM
Have you tried just Network Service (with a space and no ./)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
01:59 PM
Surprised nobody answered this and it's not coming up in any documentation.
I find the documentation on the fields in the UI for Installscript-msi projects quite misleading on setting a username as a logon for a new service.
What you need to do is create and set a windows property and set it to Network Service ID like this (note the escape char for the string) -
MsiSetProperty(ISMSI_HANDLE, "SGNETSER", "NT AUTHORITY\\NETWORK SERVICE");
then place that property in the user name field of the service install action with square brackets like this - [SGNETSER].
Leave the password blank and it'll install your service to use Network Service as the logon account.
cheers,
Rob
I find the documentation on the fields in the UI for Installscript-msi projects quite misleading on setting a username as a logon for a new service.
What you need to do is create and set a windows property and set it to Network Service ID like this (note the escape char for the string) -
MsiSetProperty(ISMSI_HANDLE, "SGNETSER", "NT AUTHORITY\\NETWORK SERVICE");
then place that property in the user name field of the service install action with square brackets like this - [SGNETSER].
Leave the password blank and it'll install your service to use Network Service as the logon account.
cheers,
Rob
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
11:09 AM
I am curious as to whether or not you can allow a user to input a username and password to install under. I was hoping i could use a dialog to grab a domain login and then pass it through.
I know this is an old thread, but hopefully one of you guys know?
I know this is an old thread, but hopefully one of you guys know?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
11:34 AM
sure I think, why not, load the user info into username and pass properties same as I've described.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
01:17 PM
And the same for the password field as well? even if i input something like [PasswordProperty] it shows as ************** in the field and it seems like it would treat it as a literal string as opposed to a property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2012
07:30 PM
I am not able to understamd this part
"What you need to do is create and set a windows property and set it to Network Service ID like this (note the escape char for the string) -
MsiSetProperty(ISMSI_HANDLE, "SGNETSER", "NT AUTHORITY\\NETWORK SERVICE");"
where exactly we have to create window property..
I have a windows service which I want to strat as networkservice. Can you plz help me with details how you did it.
"What you need to do is create and set a windows property and set it to Network Service ID like this (note the escape char for the string) -
MsiSetProperty(ISMSI_HANDLE, "SGNETSER", "NT AUTHORITY\\NETWORK SERVICE");"
where exactly we have to create window property..
I have a windows service which I want to strat as networkservice. Can you plz help me with details how you did it.
Robisupside wrote:
Surprised nobody answered this and it's not coming up in any documentation.
I find the documentation on the fields in the UI for Installscript-msi projects quite misleading on setting a username as a logon for a new service.
What you need to do is create and set a windows property and set it to Network Service ID like this (note the escape char for the string) -
MsiSetProperty(ISMSI_HANDLE, "SGNETSER", "NT AUTHORITY\\NETWORK SERVICE");
then place that property in the user name field of the service install action with square brackets like this - [SGNETSER].
Leave the password blank and it'll install your service to use Network Service as the logon account.
cheers,
Rob
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)