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: Win32Service
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 25, 2006
04:16 PM
Win32Service
I am getting a strange problem trying to get the Win32Service. Accessing other services is working fine.
Using the following code throws a ServiceException...
Win32Service service = (Win32Service) arg.getService(Win32Service.NAME);
In a custom wizard action I have the following...
support.putRequiredService(FileService.NAME);
support.putRequiredService(SecurityService.NAME);
support.putRequiredService(ProductService.NAME);
support.putRequiredService(Win32Service.NAME);
The exception I am getting is the following...
(Jul 25, 2006 4:28:17 PM), com.installshield.portal_search.event.dialog.swing.PanelPortalSearchUserInfo, err, ServiceException: (error code = 301; message = "Could not load service: win32Service"; severity = 0)
ServiceException: (error code = 301; message = "Could not load service: win32Service"; severity = 0)
at com.installshield.wizard.service.LocalWizardServices.getService(Unknown Source)
at com.installshield.event.ISContext.getService(Unknown Source)
at com.installshield.portal_search.event.dialog.swing.PanelPortalSearchUserInfo.isValidOSUser(PanelPortalSearchUserInfo.java:104)
Using the following code throws a ServiceException...
Win32Service service = (Win32Service) arg.getService(Win32Service.NAME);
In a custom wizard action I have the following...
support.putRequiredService(FileService.NAME);
support.putRequiredService(SecurityService.NAME);
support.putRequiredService(ProductService.NAME);
support.putRequiredService(Win32Service.NAME);
The exception I am getting is the following...
(Jul 25, 2006 4:28:17 PM), com.installshield.portal_search.event.dialog.swing.PanelPortalSearchUserInfo, err, ServiceException: (error code = 301; message = "Could not load service: win32Service"; severity = 0)
ServiceException: (error code = 301; message = "Could not load service: win32Service"; severity = 0)
at com.installshield.wizard.service.LocalWizardServices.getService(Unknown Source)
at com.installshield.event.ISContext.getService(Unknown Source)
at com.installshield.portal_search.event.dialog.swing.PanelPortalSearchUserInfo.isValidOSUser(PanelPortalSearchUserInfo.java:104)
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 26, 2006
07:35 AM
That's odd, using putRequiredService(Win32Service.NAME) in your custom bean's build method should do it. As a sanity check, is
import com.installshield.wizard.platform.win32.win32service.*;
in your code, and
%ISMPDIR%\distributables\platform\ext\windowsppk.jar
on the build path?
import com.installshield.wizard.platform.win32.win32service.*;
in your code, and
%ISMPDIR%\distributables\platform\ext\windowsppk.jar
on the build path?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 26, 2006
09:23 AM
I don't have the * reference. I have the following:
import com.installshield.database.ISDatabaseException;
import com.installshield.event.ui.ISDialogQueryContext;
import com.installshield.ui.controls.ISPasswordControl;
import com.installshield.ui.controls.ISTextField;
import com.installshield.util.Log;
import com.installshield.util.LogUtils;
import com.installshield.util.UserInputRequest;
import com.installshield.wizard.platform.win32.Win32Service;
import com.installshield.wizard.platform.win32.win32service.NTServiceConfig;
import com.installshield.wizard.service.ServiceException;
import com.installshield.wizard.service.WizardServicesUI;
import com.installshield.wizard.service.security.GenericSecurityService;
import com.installshield.wizard.service.security.GroupSpecification;
import com.installshield.wizard.service.security.UserSpecification;
The compiler classpath is the following:
$A(IS_HOME)/distributables/engine/engine.jar;$A(IS_HOME)/distributables/bootstrap;$A(IS_HOME)/lib/builder.jar;$A(BUILD_RESOURCES)\lib\Safe_Jul11.jar;$A(BUILD_RESOURCES)\lib\concurrent.jar;$A(BUILD_RESOURCES)\JDBC.jar;$A(IS_HOME)\distributables\platform\ext\windowsppk.jar
import com.installshield.database.ISDatabaseException;
import com.installshield.event.ui.ISDialogQueryContext;
import com.installshield.ui.controls.ISPasswordControl;
import com.installshield.ui.controls.ISTextField;
import com.installshield.util.Log;
import com.installshield.util.LogUtils;
import com.installshield.util.UserInputRequest;
import com.installshield.wizard.platform.win32.Win32Service;
import com.installshield.wizard.platform.win32.win32service.NTServiceConfig;
import com.installshield.wizard.service.ServiceException;
import com.installshield.wizard.service.WizardServicesUI;
import com.installshield.wizard.service.security.GenericSecurityService;
import com.installshield.wizard.service.security.GroupSpecification;
import com.installshield.wizard.service.security.UserSpecification;
The compiler classpath is the following:
$A(IS_HOME)/distributables/engine/engine.jar;$A(IS_HOME)/distributables/bootstrap;$A(IS_HOME)/lib/builder.jar;$A(BUILD_RESOURCES)\lib\Safe_Jul11.jar;$A(BUILD_RESOURCES)\lib\concurrent.jar;$A(BUILD_RESOURCES)\JDBC.jar;$A(IS_HOME)\distributables\platform\ext\windowsppk.jar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 26, 2006
11:41 AM
I figured out a hack which will make the java code work. I added a dummy "Windows Service Create Action" Wizard Action and set Active to false and now the getService(...) call works.
I think it is a bug with the putService when loading the Win32Service. :confused:
I think it is a bug with the putService when loading the Win32Service. :confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 27, 2006
10:06 AM
I finally figured out what was going wrong. I had updated the classes directory in ISMP with my custom bean but I didn't restart ISMP. After restarting ISMP it is working now. 😮