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
- :
- Error 1001 installing 64 bit windows service
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jan 01, 2015
09:51 AM
Error 1001 installing 64 bit windows service
Hello,
I am using Installshield LE for creating the installer of my 64 bit service. When I run installer it shows error 1001 and then stop.
Environment : Win 8.1 64 bit, VS2013
I found some information regarding error 1001, but not able to resolve the issue.
Can you please help me to resolve the error?
Thanks in Advance.
I am using Installshield LE for creating the installer of my 64 bit service. When I run installer it shows error 1001 and then stop.
Environment : Win 8.1 64 bit, VS2013
I found some information regarding error 1001, but not able to resolve the issue.
Can you please help me to resolve the error?
Thanks in Advance.
(5) Replies
‎Jan 01, 2015
04:37 PM
1001 indicates an InstallUtil error. Simply put, using installer class custom actions is an example of a fragile, out of process, reinventing the wheel anti-pattern. You should instead use Windows Installer's built in service handling supported by InstallShield LE. Do the following:
Navigate:
(2) Specify Application Data
Files
Windows Service Primary Output
Right Click Properties
COM & .NET Settings
Unclick Installer Class
Navigate:
(3) Configure the Target System
Services
Right click Services and select Add Service
Fill out the property grid per the requirements of your service.
Navigate:
(2) Specify Application Data
Files
Windows Service Primary Output
Right Click Properties
COM & .NET Settings
Unclick Installer Class
Navigate:
(3) Configure the Target System
Services
Right click Services and select Add Service
Fill out the property grid per the requirements of your service.
‎Jan 02, 2015
08:40 AM
Hi Christopher,
Thanks for you reply. It's very useful for me. I follow the your instruction and Now I get Error 1923 : not sufficient privilege error. I have administrative account and I have running the installer with administrative privilege. I want to install my service as Local Service account.
Can you please help me?
Thanks!
Thanks for you reply. It's very useful for me. I follow the your instruction and Now I get Error 1923 : not sufficient privilege error. I have administrative account and I have running the installer with administrative privilege. I want to install my service as Local Service account.
Can you please help me?
Thanks!
‎Jan 02, 2015
09:54 AM
That error message could have been worded better. They only say check permissions since the assumption is a regular user would see the message. What it really means is that your service failed to start. You have to profile / debug your service to understand why. Could be any number of reasons such as a missing DLL. I once saw this from a developer who was trying to connect to a webservice during the OnStart() event and the webservice was down. I reminded him he needed to spin off a background process thread and return from OnStart() right away. Then in the thread he could keep trying to connect to the web service until it worked.
It's impossible to say exactly what is wrong with your service but once you discover it you can then address it either in code or the installer depending on the nature of the issue.
It's impossible to say exactly what is wrong with your service but once you discover it you can then address it either in code or the installer depending on the nature of the issue.
‎Jan 02, 2015
10:14 AM
Hi Christopher,
Thanks for your reply. yes you are right message itself says it does not have required permissions but I am not able to understand why as I have all administrative rights. Also I am easily install the service using installutil.exe and windows deployment extensions but get erros in installshield LE.
Also I configure service to only install not to start the service as it is on demand service.
Can you please let me know any other problem which cause of 1923 error?
Thanks for your reply. yes you are right message itself says it does not have required permissions but I am not able to understand why as I have all administrative rights. Also I am easily install the service using installutil.exe and windows deployment extensions but get erros in installshield LE.
Also I configure service to only install not to start the service as it is on demand service.
Can you please let me know any other problem which cause of 1923 error?
‎Jan 02, 2015
10:20 AM
One situation I've seen is people put code in their installer class to create an event source. Then in their service they post messages to that source. Since your installer class isn't being called you have to have your MSI create the event source. It's a simple registry create to populate. Otherwise the service attempts to write a message to the non-existent event source, throws an exception and the installer does a rollback.
My point is ignore the message about not having enough permissions. It's a wrong message. Debug why the service won't start and you'll find your solution. One thing to do here is tell InstallShield to not start the service during the installation that way you are atleast installed. Then you can do your debugging.
Reminder: VM's are your friend. Don't do this type of work on your development box.
My point is ignore the message about not having enough permissions. It's a wrong message. Debug why the service won't start and you'll find your solution. One thing to do here is tell InstallShield to not start the service during the installation that way you are atleast installed. Then you can do your debugging.
Reminder: VM's are your friend. Don't do this type of work on your development box.