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
- :
- Remembering User and Password when Uninstalling and Reinstalling
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
‎Jul 23, 2014
02:29 PM
Remembering User and Password when Uninstalling and Reinstalling
OK here is the situation I have an install that installs a service. After the install the user goes into the services and enters their login Account information and password. After that everything is working fine. Now we release a new product that completely removes the old Product including the service but I need to remember the service's login and password so I can use them on the server that's install with the new version. How would I go about doing this? Are the login and password stored in the registry? Is this even possible?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2014
11:12 PM
I use an ini file to store all of the user input from the first run of an install and if the install is run again it will pre-populate the values in the ini file. For storing passwords you need to use encryption. Your customers might get upset if you are writing their passwords out in plain text.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2014
08:46 AM
jstatham wrote:
OK here is the situation I have an install that installs a service. After the install the user goes into the services and enters their login Account information and password. After that everything is working fine. Now we release a new product that completely removes the old Product including the service but I need to remember the service's login and password so I can use them on the server that's install with the new version. How would I go about doing this? Are the login and password stored in the registry? Is this even possible?
The Orginal install is not asking the user for the user and password. This is something that gets done after the product gets installed and the users configures the service.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2014
01:23 PM
The fact that setting this value outside of setup is a problem.
I do not think it is possible to get the password for a particular service.
As far as I know all windows service information can be obtained in the registry under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\
The name 'ObjectName' contains the login name. I do not see where password is held.
Perhaps someone else has more information, but for the time being I know you can get the user name.
I do not think it is possible to get the password for a particular service.
As far as I know all windows service information can be obtained in the registry under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\
The name 'ObjectName' contains the login name. I do not see where password is held.
Perhaps someone else has more information, but for the time being I know you can get the user name.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)