Jul 24, 2009
10:24 AM
edit: I figured it out. For anyone who later searches this: all input that the console takes in from the "console: get user input" gets put in quotations. So if you imputed C:\etc it would be saved as "C:\etc" (quotes included) and chances are you will run into problems down the line when you have to deal with this. The best way is just to parse off the quotations. Create some custom code with the rule that when $INSTALLER_UI$ equals CONSOLE it runs. The parse code is simple String var = installerProxy.substitute("$Variable_with_quotes$"); var= var.substring(1, var.length()-1); installerProxy.setVariable("$Variable_with_quotes$", var); This will remove the quotes and reset the variable to what it should be
... View more
Jul 23, 2009
04:44 PM
I have a very strange issue that I cannot figure out. I create and build my installer. It works fine in both GUI and silent modes, everything is installed and everything works right. However when I evoke console mode on the exact same installer, nothing gets installed. The dialogs and such work but the installer exits with errors. Checking the log file shows this: Install Directory: " "\ Status: ERROR Additional Notes: ERROR - java.lang.Exception: Failed to create directory: " " All Install Actions Beneath this Action have not been installed. I have compared what I'm doing to another persons working console install project and all our project settings are identical. We have the same dialogs, etc. I've been pulling my hair out over this, any idea why it is not working?
... View more
Labels
- Labels:
-
InstallAnywhere 2009
Jul 17, 2009
02:06 PM
Thanks for those suggestions, but unfortunately none of them worked and they all hung indefinitely as well. My batch file looked like this @echo off wmic useraccount get /format:value | findstr drew pause dir c:\windows The batch file ran correctly when I just ran it by itself standalone. With all of these different solutions causing the same problem I'm beginning to think it might be a system error. I'm on Windows XP SP2. Could this be an issue with that and not an IA bug? Perhaps a permission issue?
... View more
Jul 17, 2009
12:14 PM
Well I'm not sure how long is long, but I just let it go for a full hour and it still was hanging. If nothing else that is far to long to go into a customer product. When I did wmic /? it still hung forever. This is what my exact window looks like: Am I doing something wrong since you said this is supposed to work?
... View more
Jul 16, 2009
12:49 PM
Hey, I am trying to check if user exists on a Windows system by running the following command using the "Execute script/batch file" option wmic useraccount get /format:value | findstr $USER$ however that command just hangs indefinitely and the install freezes. If I change it to wmic "useraccount get /format:value | findstr $USER$" It still hangs. If I change it to "wmic useraccount get /format:value | findstr $USER$" It does not hang but I get the error "The System cannot find the path specified". Is there some way you need to use wmic to get it to work or is there another way to check that a user exists in a Windows system? Thanks for the help, Drew
... View more
Labels
- Labels:
-
InstallAnywhere 2009
Sep 23, 2008
03:26 PM
I'm working on a product that has the install section and uninstall section that both use the same dialog. The only problem is that this dialog needs to behave slightly differently depending on if its uninstalling or installing. Is there a method I can run to check which state the system is in? I was looking at the methods getUninstallerStatus() uninstallerLauncherExists() and the classes ProductInstallContext ProductUninstallContext InstallCheck But these are all uncommented or confusingly commented in the API. Can I use one of these and if so how? Or will I have to create another dialog altogether?
... View more
Labels
- Labels:
-
InstallShield MultiPlatform
Jun 20, 2008
11:33 AM
Hmm the double quotes did not work but I might be setting it elsewhere, I'll poke around and see if I can find something. It was being set somewhere else, got it to work now. Thanks!
... View more
Jun 19, 2008
03:50 PM
I have an options file I'm using and my question has to do with the reading in from the file. The one part of my options file that is giving me an issue looks like this: -V usrLang=ja_JP and when I'm reading it in I do public void silentExecuteSelectLanguage(ISSilentContext arg0){ try{ String lang = arg0.getServices().getISDatabase().getVariableValue("usrLang"); System.out.println("The lang is " + lang); arg0.getWizard().getServices().getISDatabase().setVariableValue("usrLang", lang; However no matter what I put in the options file it prints out "en_US" (the default) as the usrLang. I played around with some other files and I'm pretty sure I'm doing the reading in correctly so any idea why it's reading in the wrong value?
... View more
Labels
- Labels:
-
InstallShield MultiPlatform
Jun 10, 2008
03:25 PM
Alright cool I get it now. Is there a table or something somewhere to view all the variables that have been set? Because what I'm doing now is going through somebody else's code midway through a project trying to create an options file and I have no idea what they named the variables in order to use them with getVariableValue(string) (and they are on vacation so I can't ask them). So the variables have already been set somewhere, I just don't know where but I need to know what they are named.
... View more
Jun 10, 2008
12:31 PM
Alright that makes sense, but what about the .resolve(string, string) and getVariableValue(string) methods? How do I know what strings to feed into these methods to get the correct output?
... View more
Jun 10, 2008
11:29 AM
So I'm trying to write this method for some of my custom classes and I'm looking at some of the methods that are already in place in other files and I'm a little confused at one part where it goes if(context.getValueType() == WizardBean.TEMPLATE_VALUE){ acceptValue = rejectValue = LocalizedStringResolver.resolve("com.installshield.wizard.i18n.WizardResources", "WizardBean.valueStr"); }else{ acceptValue = context.getWizard().getServices().getISDatabase().getVariableValue(ACCEPT_BUTTON_VARIABLE); rejectValue = context.getWizard().getServices().getISDatabase().getVariableValue(REJECT_BUTTON_VARIABLE); } I'm really not sure what either part of this block is doing. The top seems to be setting it by resolving a certain string and the bottom half I'm completely lost on and the API has turned out to be pretty useless. What is going on here and more importantly where are they getting the "com.installshield.wizard.i18n.WizardResources", "WizardBean.valueStr" and ACCEPT_BUTTON_VARIABLE/REJECT_BUTTON_VARIABLE (set to "LICENSE_ACCEPT_BUTTON" and "LICENSE_REJECT_BUTTON" respectively) information? I have a feeling these strings mean something and I can't just keep the copy paste or make up my own stuff to put in there but looking through all the program information I can't find where these variables are set or have any idea what to use for other or custom classes. Any input is greatly appreciated. -DBH
... View more
Labels
- Labels:
-
InstallShield MultiPlatform
Jun 04, 2008
01:02 PM
Alright, thanks.
... View more
Jun 04, 2008
12:12 PM
Alright, where can I find said article?
... View more
Jun 04, 2008
11:48 AM
I'm working on creating a silent install of a program and I'm getting hung up on where I need to switch disks. Currently I'm running from the command-line like this: ./setup -silent -options options.txt -media location But I'm not sure if I'm using the -media command right. What is the syntax for that for multiple disk images mounted on a hard drive at the same time? Any help is much appreciated. Thanks.
... View more
Labels
- Labels:
-
InstallShield MultiPlatform
Latest posts by DBH1985
Subject | Views | Posted |
---|---|---|
886 | Jul 24, 2009 10:24 AM | |
2429 | Jul 23, 2009 04:44 PM | |
2656 | Jul 17, 2009 02:06 PM | |
2656 | Jul 17, 2009 12:14 PM | |
28753 | Jul 16, 2009 12:49 PM | |
4777 | Sep 23, 2008 03:26 PM | |
544 | Jun 20, 2008 11:33 AM | |
13205 | Jun 19, 2008 03:50 PM | |
1005 | Jun 10, 2008 03:48 PM | |
1005 | Jun 10, 2008 03:25 PM |
Activity Feed
- Posted Re: Console mode does not install anything on InstallAnywhere Forum. Jul 24, 2009 10:24 AM
- Posted Console mode does not install anything on InstallAnywhere Forum. Jul 23, 2009 04:44 PM
- Posted Re: Problem with using wmic commands in a batch file on InstallAnywhere Forum. Jul 17, 2009 02:06 PM
- Posted Re: Problem with using wmic commands in a batch file on InstallAnywhere Forum. Jul 17, 2009 12:14 PM
- Posted Problem with using wmic commands in a batch file on InstallAnywhere Forum. Jul 16, 2009 12:49 PM
- Posted check if the product is installing or uninstalling? on InstallShield Forum. Sep 23, 2008 03:26 PM
- Posted Re: Options file reading in confusion on InstallShield Forum. Jun 20, 2008 11:33 AM
- Posted Options file reading in confusion on InstallShield Forum. Jun 19, 2008 03:50 PM
- Posted Re: generateOptionsEntries question on InstallShield Forum. Jun 10, 2008 03:48 PM
- Posted Re: generateOptionsEntries question on InstallShield Forum. Jun 10, 2008 03:25 PM
- Posted Re: generateOptionsEntries question on InstallShield Forum. Jun 10, 2008 12:31 PM
- Posted generateOptionsEntries question on InstallShield Forum. Jun 10, 2008 11:29 AM
- Posted Re: Doing a silent install with multiple disk images, how to use -media on InstallShield Forum. Jun 04, 2008 01:02 PM
- Posted Re: Doing a silent install with multiple disk images, how to use -media on InstallShield Forum. Jun 04, 2008 12:12 PM
- Posted Doing a silent install with multiple disk images, how to use -media on InstallShield Forum. Jun 04, 2008 11:48 AM