Quantcast
Channel: Flexera Community Forums
Viewing all 4553 articles
Browse latest View live

InstallAnywhere 2017 not building with command line

$
0
0
Hi,

I am trying to build installer (version 2017) on windows10 platform through command line using ant1.9.5, java1.8.
Getting error "Execute failed: java.io.IOException: Cannot run program "C:\Program Files (x86)\InstallAnywhere 2017\build.exe": CreateProcess error=740, The requested operation requires elevation"

Below is my ant target:
<target name="build-installer" description="Build Installer">
<taskdef name="buildinstaller" classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask">
<classpath>
<pathelement path="C:\Program Files (x86)\InstallAnywhere 2017\resource\build\iaant.jar"/>
</classpath>
</taskdef>
<buildinstaller
IALocation="C:\Program Files (x86)\InstallAnywhere 2017"
IAProjectFile="C:\Installer2017\Installer.iap_xml"
BuildLinuxWithVM="false"
BuildLinuxWithoutVM="true"
BuildSolarisWithVM="false"
BuildSolarisWithoutVM="false"
BuildWindowsWithVM="false"
BuildWindowsWithoutVM="true"
BuildWebInstaller="true"
OptimizeWebInstaller="true"
InstallerStdErrRedirect="."
/>

</target>

When I try to build installer from GUI it gets build properly. Has anyone face this issue while building installer2017 through command line?
Any help will be appreciated


Thanks

Microsoft MSIX - Supported - but cant find documentation

$
0
0
From the press release...

ITASCA, Ill., Sept. 20, 2018 (GLOBE NEWSWIRE) -- Flexera, the company that’s reimagining how software is bought, sold, managed and secured, today announced the release of InstallShield 2018 R2, providing easy installation creation and conversion support for MSIX, the latest deployment type from Microsoft. The release also offers a new, easier-to-use InstallShield designer interface to help development teams move faster and improve time-to-value.

However, in searching, I can find no instructions on how to build MSIX packages. Worse, searching only brings up competing products shpowing how easily they create MSIX packages.

hoping it's so simple - I just cant see it...

Install java application as a windows service

$
0
0
Hi, Guys. I'm working now with InstallShield 2015 Professional.

Is it possible to install executable jar file as a WindowsService? If yes could please share useful links to some tutorials or documentations.
Thanks in Advance!

P.S. I have tried to do it by executing next function on installed event:


//---------------------------------------------------------------------------
// The Installed event is sent after the feature ProgramFiles
// is installed.
//---------------------------------------------------------------------------
export prototype ProgramFiles_Installed();
function ProgramFiles_Installed()
begin
ServiceAddService ( "myServiceName" , "myServiceDisplayName" , "app description" , "C:\\Program Files\\Java\\jdk-10.0.2\\bin\\java.exe" , TRUE , "-Dapplication.dataDir=c:\\dataDir -Dapplication.metaDataDir=C:\\metadata\\ -Dspring.profiles.active=default,offline -jar C:\\Users\\UserName\\myUser.jar" );
end;

//---------------------------------------------------------------------------
// The Installing event is sent just before the feature
// ProgramFiles is installed.
//---------------------------------------------------------------------------
export prototype ProgramFiles_Installing();
function ProgramFiles_Installing()
begin
end;

Building an installation for a 64 bit application

$
0
0
I've currently got an installation for a native x64 C++ MFC application that works more or less ok, but relies on a manual installation of a number of versions of vc redist that corresponds to various DLLs and components used by the application. Installshield 2018 does not seem to allow me to include 64 bit merge modules to avoid all this and the dependency scanner doesn't seem to pick them up either. As a quick test I created a simple project that just includes one 64 bit executable and the vc 14 64 bit MFC merge module. Building the installation I get a message 'this 32 bit package cannot include 64 bit data'. I did not specify the package should be 32 bit and explicitly want a 64 bit installation that includes any 64 bit dependencies. How do I achieve this with Installshield express 2018?

Install Access database engine x86 or x64 conditionnaly

$
0
0
Hello,

I have a basic MSI project.
This project must install access database engine x86 or x64 depending on office version on the customer computer.

It is not possible to install it as a prerequisite because before install i need to know which office version is installed on the computer.
To detect office bitness, i have an installscript function that works well, but i don't know how / when to run the access database engine exe file.

Could you help me ?
Thanks in advance.

InstallScript is not creating TargetDir

$
0
0
I have an installscript project where the Target Dir is WINSYSDIR64\SCI and I've added to the onSetTargetDir function to Create the folder if it does not exist. However, even though it supposedly successfully creates the dir the dir doesn't exist and so the installer fails.
Here is what I have for the function, I followed what was in the Help example, and in the Else portion which is supposed to be on Success I do get the MessageBox. However, the installer will fail saying the folder doesn't exist and if I check even when I get the MessageBox the folder does not exist.

Code:

function OnSetTARGETDIR()
number nId, nIgnore, nResult;
string szId, szTARGETDIR;
begin

    // In maintenance mode the value of TARGETDIR is read from the log file.
    if( MAINTENANCE ) then
        return ISERR_SUCCESS;
    endif;

    // Set TARGETDIR to script default.
    TARGETDIR = "<WINSYSDIR64>\\SCI";

    // Read TARGETDIR from the media.
    nResult = MediaGetData( MEDIA, MEDIA_FIELD_TARGETDIR, nIgnore, szTARGETDIR );

    // Use the TARGETDIR from the media if anything was read.
    if( nResult >= ISERR_SUCCESS && StrLengthChars( szTARGETDIR ) ) then
        TARGETDIR = szTARGETDIR;
    endif;

        if (ExistsDir(TARGETDIR) != EXISTS) then
                if (CreateDir(TARGETDIR) < 0) then
                        MessageBox("Unable to create Target Installation Folder", SEVERE);
                        abort;
                else
                        MessageBox(TARGETDIR, WARNING);
                endif;
        endif;
       

end;

So are the Help examples wrong?

InstallScript project Component Self Registration not working

$
0
0
Components are set to be self registering, files are installed, no missing dependencies but InstalShield cannot register the DLL's in any of the components. The error shows the correct path but is giving "The Specified module could not be found". I can then complete the install, go to the path shown on the error dialog and manually register the dll's without issue. When the error comes up I have also verified the files are there.
Does anyone know what InstallShield uses to do the self registration? This is on several different Windows OS' and it is ran as a 64bit installation.

Cannot install IA2018 on Win 10 Pro 64-bit OS (32G RAM)

$
0
0
When I launch InstallAnywhere2018.exe on my new computer (Win 10 Pro 64-bit OS with 32G RAM) the process fails with an error:

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Unknown Source)
at sun.awt.windows.TranslucentWindowPainter.updateWindow(Unknown Source)
at sun.awt.windows.WWindowPeer.updateWindow(Unknown Source)
at sun.awt.windows.WWindowPeer.show(Unknown Source)
at sun.awt.windows.WComponentPeer.setVisible(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at Flexeraat0.setVisible(Unknown Source)
at Flexeraat0.aj(Unknown Source)
at com.zerog.ia.installer.AAMgr.a0(Unknown Source)
at com.zerog.ia.installer.AAMgr.ac(Unknown Source)
at com.zerog.ia.installer.AAMgrBase.runPreInstall(Unknown Source)
at com.zerog.ia.installer.AAMgr.runPreInstall(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.b0(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.a5(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)

The variables in InstallAnywhere2018.lax:
lax.nl.java.option.java.heap.size.initial=16777216
lax.nl.java.option.java.heap.size.max=50331648

How to install IA2018 on the machine?

Best Regards,
Dagmara

What happened to FlexNet?

$
0
0
I was exploring the internet the other day, and stumbled, quite by accident,
But the comments indicate that FlexNet was well into it's death bed by the time the article was written, and indeed searching for any software didn't bear any fruit younger than 2001, and even that ran on Win95...

So... What happened? Movies series world Where did it go? Do we have any other protocols that implement this "Token Ring"-like polling? Cuz... It certainly SOUNDS like a miracle cure to many problems...

I did find that there is a Linux kernel module for DAMA "Slave" support... But it's developed against the FlexNet node "Master," and no Linux "Master" was ever developed... So that isn't gonna get me very far

Schedule task with run every 1 minute

$
0
0
Hi Team

Please help how to create a scheduled task which runs every 1 minute

Windows 32 Bit Installer Creation

$
0
0
Hi,

We want to create a 32 bit and 64 bit installers for windows platform with no JRE(NoVM)

There are 2 platform types for Windows -
1. "Widows"
2. "Windows_Pure_64_bit"

We didn't found any platform type to create 32 Bit specific installer. Hence we selected "Windows" by default for 32 bit and it is generating a 64 bit installer which is getting installed in "Program Files". We want 32 bit specific installer which should get installed in "Program Files (x86)" folder.

When we generate 32 bit installer with JRE(VM) and "Window" as platform type , it creates a 32 bit specific installer. Hence looks like it is a regression.

Is there any workaround to resolve this problem?

We are having below vm packs -
OracleJRE180u162_windows(x86).vm
OracleJRE180u162_windows(x64).vm

Thanks.

error C8025 MsiSetProperty : undefined identifier

$
0
0
Hello,

I'm trying to create a suite advanced UI project with an installscript in it.

When i compile my sript i get an error C8025 MsiSetProperty : undefined identifier.

I don't know where is the problem.

Here is my installscript :
Code:

////////////////////////////////////////////////////////////////////////////////
//                                                                           
//  IIIIIII SSSSSS                                                           
//    II    SS                          InstallShield (R)                   
//    II    SSSSSS      (c) 1996-2002, InstallShield Software Corporation   
//    II        SS                    All rights reserved.           
//  IIIIIII SSSSSS                 
//                                                                           
//                                                                           
//  This template script provides the code necessary to build an entry-point
//  function to be called in an InstallScript custom action.
//                                                                           
//                                                                           
//    File Name:  Setup.rul                                                 
//                                                                           
//  Description:  InstallShield script                                       
//
////////////////////////////////////////////////////////////////////////////////


// Include Ifx.h for built-in InstallScript function prototypes, for Windows
// Installer API function prototypes and constants, and to declare code for
// the OnBegin and OnEnd events.
#include "ifx.h"
// Include header file for built-in functions
#include "isrt.h"
// Include header file for MSI API functions and constants
#include "iswi.h"

    // The keyword export identifies MyFunction() as an entry-point function.
    // The argument it accepts must be a handle to the Installer database.
        prototype LONG kernel32.GetBinaryTypeA (BYVAL STRING , BYREF INT );
        export prototype SetOfficeBitnessProperty(HWND);

    // To Do:  Declare global variables, define constants, and prototype user-
    //        defined and DLL functions here.
 

// To Do:  Create a custom action for this entry-point function:
// 1.  Right-click on "Custom Actions" in the Sequences/Actions view.
// 2.  Select "Custom Action Wizard" from the context menu.
// 3.  Proceed through the wizard and give the custom action a unique name.
// 4.  Select "Run InstallScript code" for the custom action type, and in
//    the next panel select "MyFunction" (or the new name of the entry-
//    point function) for the source.
// 5.  Click Next, accepting the default selections until the wizard
//    creates the custom action.
//
// Once you have made a custom action, you must execute it in your setup by
// inserting it into a sequence or making it the result of a dialog's
// control event.

///////////////////////////////////////////////////////////////////////////////
//                                                                         
// Definition de la propriété OFFICEBITNESS (permet de savoir si excel est 32 ou 64 bits)
// http://codes-sources.commentcamarche.net/forum/affich-1611755-identifier-le-type-d-un-fichier-exe
//                                                                         
///////////////////////////////////////////////////////////////////////////////
function SetOfficeBitnessProperty(hMSI)

    NUMBER nBinaryType;

        STRING svExcelFilePath;
    NUMBER nvType, nvSize;
   
begin
          try
                       
                RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
                RegDBGetKeyValueEx("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\excel.exe","",nvType,svExcelFilePath,nvSize);               
               
               
                //MessageBox("EXCELFILEPATH \n" + svExcelFilePath, SEVERE);

                if GetBinaryTypeA(svExcelFilePath, nBinaryType)>0 then
                        if (nBinaryType=6) then
                                //64 bits
                                MsiSetProperty(hMSI, "ISOFFICE64", "1");
                        else
                                //32 bits
                                MsiSetProperty(hMSI, "ISOFFICE32", "1");
                        endif;
                       
                else
                        //Rechecherche si le chemin comporte x86 ou x64 (WindowsApp)
                        if StrFind(svExcelFilePath,"x86")<0 && StrFind(svExcelFilePath,"x64")<0 then
                                MessageBox("EXCEL FILE PATH \n" + "Impossible to determine Office bitness" , SEVERE);
                                return ERROR_INSTALL_FAILURE;
                        else
                                if StrFind(svExcelFilePath,"x86")<0 then
                                        //64 bits
                                        MsiSetProperty(hMSI, "ISOFFICE64", "1");
                                else
                                        //32 bits
                                        MsiSetProperty(hMSI, "ISOFFICE32", "1");                               
                                endif;
                        endif;
                endif;       
        catch 
            MessageBox("SetOfficeBitnessProperty Error \n" + Err.Number + "\n" + Err.Description + "\n" + Err.LastDllError , SEVERE);
            return ERROR_INSTALL_FAILURE;
        endcatch;       

end;

Thanks in advance

Installing files to System32 on 64 bit machine.

$
0
0
Basic MSI Installer. My installer need to be able to run on both 32 and 64 bit machines, thus the Template Summary has to be set to "Intel".

I have two versions of a particular DLL that needs to be installed, one is 64 bit and one is 32 bit. They both have the same name. I condition the installation of the component containing the 64 bit dll to VersionNT64 and the 32 bit one to "Not VersionNT64". These DLLs need to be installed into the System32 folder. On a 32 bit machine this works fine. But on a 64 bit machine the 64 bit DLL gets installed into the SysWOW64 folder, which is of course the folder for 32 bit components. To make matters worse it is a COM object and needs to be registered.

How can I ensure the 64 bit DLL is installed into the System32 folder on a 64 bit machine? I cannot flag the component as "64 bit component" because the installer won't build, complaining that I have to target a x64 or Intel64 platform. But if I do that the installer won't run on a 32 bit platform (I presume) and needs to.

How to hide label

$
0
0
hi guys,

our project needs to support both windows and Linux UI install types. Recently we have added a custom panel which should display in Linux but not for windows, we are able to handle it by setting rule only Movies series world for Linux. Since project is same for both the OS , during install time in windows, panel label is being displayed in "installer steps list" left hand side, how to hide the label only in Windows.

Thanks in advance.
gmpk

Report Builder - License Consumption by User

$
0
0
Hello, I am new to using FNMS and I am having trouble building a report. The data does not come out the way I expect it to.

I am trying to create a report where I can filter on an application and return:

  • The users who have the application installed
  • The last time they used the application
  • The license assigned
  • The machine it is installed on
  • The corporate structure


These are the key items, I can always add others later.

After playing for a while and watching FNM-1410.10 Demo I thought I had cracked it. However, I returned less results than expected and when I checked manually the report was missing about half the users. I used User as a base for the report because when I started with License I could not find a way to add users.

Can anybody please help?

Can a Normal Patch come after a QuickPatch?

$
0
0
Consider the scenario: RTM install is updated via QuickPatch to Update 1. Now I would like to create a regular, sequential patch via Patch Design that goes from Update1 (QuickPatch) to Update 2 (Patch Design). It doesn't seem possible unless maybe I do a full install rebuild of RTM that includes the updated files of Update1.

UPDATE: I've tried rebuilding RTM to contain the modified files from the QuickPatch, and built Update 2 (Patch Design) off that. It doesn't work. If the user installs RTM, updates to Update1, then attempts to apply the Update 2 they still get an error.

Is there a way to go from Quick Patch to Patch Design? In other words, it seems that once you create and use a QuickPatch you are committed to using QuickPatches throughout the rest of the product's life for updating. There doesn't seem to be a straightforward way to go from QuickPatch to Patch Design Patch. IE: In Patch Design, when you enter previous versions it is asking for an .msi file, there's no option to enter a QuickPatch file.

Generate RemovablesList.txt automatically.

$
0
0
Hi,

When using OutputDebugInfo on post-install stage.
And launch the installer, removablesList.txt can be found on the install folder.

It's seem be generated automatically by IA.
Any idea can stop the generate?

Error while creating patch

$
0
0
I had tried creating patch using patch design and following error occured:
Error -2147319765: Automation error Element not found.

Also, toolbar are getting disabled after this error.

Suit - Advanced UI project - Always Create Debug log option

$
0
0
Greetings,
Ive just come across this option in
Media - Releases - Setup.exe
- Always Create Debug Log - yes/no

Is there a way to define the target dir for the debuglog? I havent found anything anywhere. But maybe i missed something? Because i would like to use it, but i dont want to keep it next to the setup.exe and if i make the move action OnEnd, there might be leftover. When the logging is finished.

ISCmdBld.exe Questions...

$
0
0
Hi all,

I'm going to start using ISCmdBld Standalone Build on different build servers and I have some questions regarding how some things work. This, of course, will be installed on a machine without the full UI licensed app.

First, with regards to Tools-Options settings, how would they be set/adhered to on a system solely using ISCmdBld?

Next are the Merge Modules (paths part of Tools-Options) and Prerequisites (usually, or previously for us, set in the Prerequisites view)... Is it necessary to pass the associated parameters to ISCmdBld so they are found during build?

Here's a little background as to why I ask that question. On our current build server, where the full UI app is installed and used, we have a third party scripting tool which uses ISCmdBld. The module and prerequisite path parameters are NOT passed and the build seems fine. I guess it comes down to the question, when using ISCmdBld and with the above mentioned items set in the .ism, will the standalone build .exe simply find them or must the parameters be passed on a system with solely ISCmdBld installed?

I guess I could mock up a test system and test the script each way and see what happens.

I'm just trying to get a handle on the inner workings of ISCmdBld before I make the leap.

I'm guessing too that when changes are needed to the .ism, the template must be copied or retrieved from source control on a system with the full UI InstallShield installed. That wouldn't be a huge issue I guess, but in our situation I would think we would have to build our patches on a separate machine. I know there is a patch package or config parameter that can be passed, but patching too is a murky area.

Thanks for any info/help!!
Viewing all 4553 articles
Browse latest View live