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
- :
- Solution
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
Feb 24, 2012
10:47 AM
Error Adding Service (HELP)
if (ServiceAddService(szServiceName,szServiceDislayName, "My Services",
svServName, FALSE,"") < ISERR_SUCCESS ) the
GetExtendedErrInfo(svScript,nvLineNum, nvError);
svErrorMsg = FormatMessage(nvError);
MessageBox(svErrorMsg, SEVERE);
endif;
I check svSerName and it is correct path and name of .exe
It does exist when the call is being made.
svErrorMsg = The system cannot find the file specified
C:\CodeBases\isdev\Script\ISRT\Src\Service.rul
line 167
error 2
Where is Service.rul?? I do not have a folder c:\codebases
I can not find Service.rul on my box anywhere.
I am suppose too??
Is this why I get the error??
svErrorMsg = The system cannot find the file specified
Anybody ??
svServName, FALSE,"") < ISERR_SUCCESS ) the
GetExtendedErrInfo(svScript,nvLineNum, nvError);
svErrorMsg = FormatMessage(nvError);
MessageBox(svErrorMsg, SEVERE);
endif;
I check svSerName and it is correct path and name of .exe
It does exist when the call is being made.
svErrorMsg = The system cannot find the file specified
C:\CodeBases\isdev\Script\ISRT\Src\Service.rul
line 167
error 2
Where is Service.rul?? I do not have a folder c:\codebases
I can not find Service.rul on my box anywhere.
I am suppose too??
Is this why I get the error??
svErrorMsg = The system cannot find the file specified
Anybody ??
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 28, 2012
10:38 AM
In case someone searches with the same problem here is what happened.
Our product was installed with IS6 pro. When it was uninstalled the registry keys for both our Service and Device Driver where removed. The windows Service manager was not aware they where removed ( WSM reads registry at start up).
When we tried to install with IS 2012 we are using ServiceAddService. The WSM returned it has a that service (was never informed is was removed)and does an open of that service. The open call is what has returned The system cannot find the file specified . The registry keys are missing.
To solve it I add the keys manually and then add the service again and all worked well.
Our product was installed with IS6 pro. When it was uninstalled the registry keys for both our Service and Device Driver where removed. The windows Service manager was not aware they where removed ( WSM reads registry at start up).
When we tried to install with IS 2012 we are using ServiceAddService. The WSM returned it has a that service (was never informed is was removed)and does an open of that service. The open call is what has returned The system cannot find the file specified . The registry keys are missing.
To solve it I add the keys manually and then add the service again and all worked well.