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: [Urgent] Can not execute Custom Event in Silent mode
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
‎Jun 17, 2009
05:03 AM
[Urgent] Can not execute Custom Event in Silent mode
Hi experts,
I created an installer file from InstallShield Universal 11 or InstallShield MultiPlatfrom 11.5 project. I also have response file.
I executed the command line to run that installer in silent mode:
D:\>setupwin32.exe -options-record D:\record2.txt
But all Custom Event didn't run. It looks like I forgot something.
Please give me your suggestion.
Many thanks,
I created an installer file from InstallShield Universal 11 or InstallShield MultiPlatfrom 11.5 project. I also have response file.
I executed the command line to run that installer in silent mode:
D:\>setupwin32.exe -options-record D:\record2.txt
But all Custom Event didn't run. It looks like I forgot something.
Please give me your suggestion.
Many thanks,
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2009
12:30 PM
For one - that does not run the install in silent mode; that creates a response file, which if you have custom dialogs, you have to create custom code to actually write out the custom values you have to the response file.
If you have your custom actions set up correctly in you sequence - they should run in all modes: silent, console and gui. How are you calling these CA's?
If you have your custom actions set up correctly in you sequence - they should run in all modes: silent, console and gui. How are you calling these CA's?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2009
02:46 AM
Yes, you are right. That does not run the install in silent mode, hat creates a response file.
Could you please to give me an example about custom code to actually write out the custom values to the response file.
And I still have one more problem in silent mode, the installer doesn't copy files\folders. Do you know the root cause of this problem ?
Many thanks and very appreciate your help
Could you please to give me an example about custom code to actually write out the custom values to the response file.
And I still have one more problem in silent mode, the installer doesn't copy files\folders. Do you know the root cause of this problem ?
Many thanks and very appreciate your help
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2009
11:58 AM
Here's a custom one I used for a Product Key Dialog:
public void generateOptionsEntriesProductKey(com.installshield.event.ISOptionsContext context)
{
String value = null;
String option = null;
Vector optionEntries = context.getOptionEntries();
try {
ProductService pService = (ProductService) context.getService(ProductService.NAME);
if (context.getValueType() == WizardBean.TEMPLATE_VALUE) {
value = LocalizedStringResolver.resolve("com.installshield.wizard.i18n.WizardResources","WizardBean.valueStr");
} else {
value = context.getWizard().getServices().getISDatabase().getVariableValue("PRODUCTKEY");
}
option = "-V PRODUCTKEY=\"" + value + "\"";
String DisplayName = context.resolveString("$P(MYPROJECT.displayName)");
String doc = "The Product Key for the " + DisplayName;
optionEntries.addElement(new OptionsTemplateEntry("Custom Dialog: " + context.getPanel().getName(), doc,option));
} catch (ServiceException e) {
LogUtils.getLog().logEvent(this, Log.ERROR, e);
}
}