May 12, 2014
08:07 PM
All, I got past the permissions problem. I am now able to build an installer from a manifest and I am able to specify the path to my install inputs via the $IA_PROJECT_DIR$ variable. However, what I really want to do is define a build time variable. Now, pp. 190 of the InstallAnywhere 2013 User Guide describes several methods. I tried the command line methods as we are doing this as part of a build system. Results: [LIST=1] Use buildproperties.properties file: In here I define 'STAGE=C:\path\to\root\of\where\to\get\inputs\to\install'. I call build.exe on the command line where the first argument is the path to the .iap_xml file and the second is the -btv path-to-properties-file. InstallAnywhere doesn't seem to be able to resolve my build time variable. In the build log, it says it can't find any of the files located under @STAGE@\path\to\file Use buildproperties.xml file: In here I define : STAGE=C:\path\to\root\of\where\to\get\inputs\to\install i. I call build.exe on the command line where the first argument is the path to the .iap_xml file and second is -p path-to-properties-xml-file. Same result. @STAGE@ is not resolved by InstallAnywhere. What am I missing?
... View more
May 12, 2014
05:32 PM
I am performing an install from Manifest. I did a little proof-of-concept in which I build an installer in which the manifest contains one specification which essentially copies a file from one place to another on the file system. That worked fine. Now I am trying to build the Manifest.txt for real in our project. [LIST=1] I started out using a build time variable to specify the root folder where the install inputs are. That didn't work. Then I tried specifying the root relative to $IA_PROJECT_DIR$ that didn't work. Then I hardwired the path and it still didn't work even through the files are clearly there. So now I am suspecting a permissions problem. I have to do the build as administrator on a Windows 7 64 bit box. However, I am running the installer as myself. I made sure I have read and execute permissions on the folder, subfolders and files. Still the installer can't see the file. What else might I be missing? -- Regards, Sandra Carney
... View more
Labels
- Labels:
-
InstallAnywhere 2013
Oct 20, 2013
06:08 PM
Never mind, I figured it out. My watchdog gets is from GetExitCodeProcess() on Windows. -- Sandy
... View more
Oct 20, 2013
05:36 PM
All, This is our workflow: [LIST=1] We have a watchdog program that launches the installer. The watchdog's job is to trap the return code from the installer and report plus gather up the logs for easy collection should it come to that. The trouble is that even if the user cancels, the return code is 0. I though, according to pp. 385 of the user guide, the exit code is supposed to be 1000. It is 0 after either clicking the [Cancel] button in one of the main dialogs or clicking the [Cancel] button in reponse to a canned InstallAnywhere dialog asking them if they want to continue or really cancel. So when *does* InstallAnywhere return 1000? -- Regards Sandra Carney
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Oct 08, 2013
09:31 AM
You can do a couple of things: [LIST=a] You could bundle the JRE that you are using. There is documentation in the user guide on how to do that. See pp. 308 of the user guide on how to create a custom vm pack. Pp.423 of the user guide shows you how to add the vm pack. I had to do this because we needed to carry java 1.7. It turns out that Flexera carries 1.7_10 on their website. If that is sufficient for your needs, you could download that and add it. The other thing you will need to do is in the Advanced Designer, click Project -> JVM Settings and then select the Installer Settings tab. There is an Installer Valid VM List. Make that 1.7. If you don't set that to 1.7, the installer will first search on the target system for a 'valid' VM. If it is 1.6 which doesn't do what you want, you will get an error. The other thing is if you are developing this using a JDK, there are extra jarfiles you may have to carry as dependencies.
... View more
Oct 04, 2013
06:46 PM
Vidya, In your java code, you also need to do import com.installshield.wizard.service.security.SecurityService; -- Sandy
... View more
Oct 04, 2013
03:55 PM
Here is my problem. [LIST=a] We have application code already released to the field The installer is expected to install over this software. We are changing over from a custom installer to InstallAnywhere. When we launch InstallAnywhere through our application, it passes an argument which is the the drive where the installer resides. This argument causes InstallAnywhere to crash. Is there a way for me to configure the installer to ignore command line arguments? -- Regards, Sandra Carney
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Sep 04, 2013
05:41 PM
I was calling methods in my class to update the cumulative string, Errors. As soon as I perform those operations inside of evaluateRule, then the triplicate output goes away. What is it about calling a method to do the work that causes this? -- Sandy
... View more
Sep 04, 2013
02:55 PM
Now, I have another question. In my CustomCodeRule class, I want to test from Netbeans which easier than building an installer everytime I change something. So I have: public static void main( String[] args ) { MyCustomCodeRule test_ccr = new MyCustomCodeRule(); test_ccr.evaluateRule(); } I get an exception at this line in my checkAdmin() method: SecurityService sservice = (SecurityService) ruleProxy.getService( SecurityService.class); I presume there is some sort of setup that InstallAnywhere does. Is that something I can mimic outside of it. Being able to test these classes outside of IA would speed my development time up greatly. -- Sandy
... View more
Sep 04, 2013
02:38 PM
In addition to the import static com.zerog.ia.api.pub.CustomCodeRule.ruleProxy, you need to configure the following jarfiles as dependencies of your class : [LIST=1] path\to\root\of\InstallAnywhereInstallation\resource\services\services.jar path\to\root\of\InstallAnywhereInstallation\resource\services\ppk\windowsppk.jar With that, it works in my code. Thanx for the tip. -- Sandy
... View more
Sep 04, 2013
02:15 PM
At the root of your InstallAnywhere installation is a resource directory. You need to configure path\to\InstallAnywhereRoot\resource\services\services.jar and path\to\InstallAnywhereRoot\resource\services\ppk\windowsppk.jar as dependencies.
... View more
Sep 04, 2013
01:17 PM
Vidya, I think you need to add: import static com.zerog.ia.api.pub.CustomCodeRule.ruleProxy; Vidyasree wrote: Hi, I am trying to check for admin rights in my installer. I used the code import com.zerog.ia.api.pub.CustomCodeRule; import com.installshield.wizard.service.security.*; public class AdminRule extends CustomCodeRule { public boolean evaluateRule() { SecurityService service = (SecurityService) ruleProxy.getService(SecurityService.class); boolean isAdmin = false; try{ isAdmin = service.isCurrentUserAdmin(); }catch(Throwable e){} return isAdmin; } } But the above code gave me 'com.installshield.wizard.service.security.SecurityService class not found' error. I tried using InstallerProxy as advisedin the help manual.(Calling Installshield MultiPlatform APIs in Install Anywhere). public class AdminRule extends CustomCodeRule { public boolean evaluateRule() { InstallerProxy ip; SecurityService service = (SecurityService) ip.getService(SecurityService.class); boolean isAdmin = false; try{ isAdmin = service.isCurrentUserAdmin(); }catch(Throwable e){} return isAdmin; } } But still getting the error in Service class. Thanks in advance Regards, Vidya
... View more
Sep 04, 2013
11:10 AM
[LIST=1] In the Log Settings area of the Project, I am redirecting STDERR and STDOUT to the log. In JVM Settings, I goto the Installer Settings tab and add the following under Additional arguments, '-Dlax.debug.level=5 -Dlax.debug.all=true' I am noticing my output is in triplicate. Ex: == INSTALLER ERRORS ============================================================================ Administrator privilege is required to run this software. Please login as a user with administrator rights and then run the installation. Administrator privilege is required to run this software. Please login as a user with administrator rights and then run the installation. Administrator privilege is required to run this software. Please login as a user with administrator rights and then run the installation. == INSTALLER WARNINGS ============================================================================ Configuration Warnings not accessible because you don't have admin rights. Configuration Warnings not accessible because you don't have admin rights. Configuration Warnings not accessible because you don't have admin rights. == INSTALLER INFORMATION ========================================================================= Configuration Information not accessible because you don't have admin rights. Configuration Information not accessible because you don't have admin rights. Configuration Information not accessible because you don't have admin rights. When I am outputting this from my Java CustomCodeRule class, I am doing this: PrintWriter CfgWriter; try { CfgWriter = new PrintWriter( Log, "UTF-8" ); CfgWriter.write( "== INSTALLER ERRORS ===========================================" ); CfgWriter.write( Errors ); CfgWriter.write( "== INSTALLER WARNINGS ==========================================" ); CfgWriter.write( Warnings ); CfgWriter.write( "== INSTALLER INFORMATION ========================================" ); CfgWriter.write( Info ); } catch ( IOException ioe ) { setIOE( ioe.getMessage ); } where 'setIOE' is a function that sets some flags. When I run this code in Netbeans, it is one of each. Only when I run it under InstallAnywhere do I get these triplicates. Is there something wrong with my extra arguments? CfgWriter.write
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Jul 29, 2013
12:50 PM
Hello, We also use RedHat Enterprise Linux. The best thing to do is to have your build system generate rpms from the software instead of tarballs. IA has built-in hooks for deploying rpms( Redhat Package Manager ). You can always install the tarball somewhere, write a custom code action to unpack it and deploy the software but you get all of that for free with rpm. You just tell IA to deploy the rpms. You get an audit trail and packages are query'able via the rpm -q option. Post a reply if you want more details. -- Regards, Sandra Carney
... View more
Jun 18, 2013
09:24 PM
Hello, IA's behavior is to display the GUI centered on the screen. The trouble in our case is that our systems are in dual monitor mode, only and the display is setup so that it stretches across both monitors. That means that the InstallAnywhere GUI will come up split right across the center of the two monitors with buttons and entry dialogs split across the two monitors. Is there anyway for me to control where the GUI is anchored. Preferably to the left or right of the screen. I don't think there is a way to do this but thought I would check. -- Regards, Sandra Carney
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Latest posts by scarney
Subject | Views | Posted |
---|---|---|
683 | May 12, 2014 08:07 PM | |
6331 | May 12, 2014 05:32 PM | |
556 | Oct 20, 2013 06:08 PM | |
1873 | Oct 20, 2013 05:36 PM | |
2562 | Oct 08, 2013 09:31 AM | |
2540 | Oct 04, 2013 06:46 PM | |
2057 | Oct 04, 2013 03:55 PM | |
569 | Sep 04, 2013 05:41 PM | |
2540 | Sep 04, 2013 02:55 PM | |
2540 | Sep 04, 2013 02:38 PM |
Activity Feed
- Posted Re: Install from Manifest.txt / Permissions? on InstallAnywhere Forum. May 12, 2014 08:07 PM
- Posted Install from Manifest.txt / Permissions? on InstallAnywhere Forum. May 12, 2014 05:32 PM
- Posted I figured it out on InstallAnywhere Forum. Oct 20, 2013 06:08 PM
- Posted Trapping return code from InstallAnywhere on InstallAnywhere Forum. Oct 20, 2013 05:36 PM
- Posted Missing classes on InstallAnywhere Forum. Oct 08, 2013 09:31 AM
- Posted Getting Service working on InstallAnywhere Forum. Oct 04, 2013 06:46 PM
- Posted A way to disable argument handling on InstallAnywhere Forum. Oct 04, 2013 03:55 PM
- Posted Figured out why, sort of on InstallAnywhere Forum. Sep 04, 2013 05:41 PM
- Posted Netbeans question on InstallAnywhere Forum. Sep 04, 2013 02:55 PM
- Posted Got it working on InstallAnywhere Forum. Sep 04, 2013 02:38 PM
- Posted .. and add some other jarfiles as dependencies on InstallAnywhere Forum. Sep 04, 2013 02:15 PM
- Posted Re: SecurityService class not found on InstallAnywhere Forum. Sep 04, 2013 01:17 PM
- Posted Output to STDERR is always in 3's on InstallAnywhere Forum. Sep 04, 2013 11:10 AM
- Posted Re: Exploratory IA questions. on InstallAnywhere Forum. Jul 29, 2013 12:50 PM
- Posted Control location of installer GUI on InstallAnywhere Forum. Jun 18, 2013 09:24 PM
- Posted Re: Can't execute custom action, class unavailable on InstallAnywhere Forum. Jun 15, 2013 07:38 PM
- Posted re: x86 on InstallAnywhere Forum. Jun 03, 2013 03:43 PM
- Posted RE: Load registry keys from a .reg file on InstallAnywhere Forum. Jun 03, 2013 02:27 PM
- Posted Setting name of logfile on InstallAnywhere Forum. Jun 03, 2013 02:21 PM
- Posted Loading registry keys from a .reg file on InstallAnywhere Forum. May 31, 2013 02:33 PM