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

how do cache pre-requisite msi's?

$
0
0
how do cache pre-requisite msi's?

By default, my setup.exe uses "cache msi locally". It appears that the pre-requisites that I'm using do not obey the directory and put's it into the temp directory.

Is there a way to change the location of pre-requiste msi?

Thanks,

Register a DLL with .NET Framework?

$
0
0
From my developer:

For SISWeb we need to register the COM component(SISCommon.dll) on the machine where SISWeb is deployed. This needs to follow the specific steps that are given below:

1) Go to the path where the .NET framework 4.0 is installed. By default it will be "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319"
2) Open the command window and type the command "Regasm /Codebase <path of the SISCommon dll>". Below is the screenshot for your reference.


Does anyone know how to do this or the equivelent with InstallShield?

Installscript MSI major update ERROR !

$
0
0
Hello everybody,

Issue:
I have an error during a major update.

Introduction:
I use the major

Scenario:
I have an error on my installation (installscript MSI project ) with custom action and installscript function so I have prepared a very simple Installscript MSI project with just a feature and a file installed.

I have tested the installation and uninstallation of the simple project: it works fine.

I have installed the 1.0.0 version and after I have prepared the 1.1.0 version. To fire the major update I have also changed the product code.

I have shaped the update in the upgrade section as:

Name:  MajorUpgradeError1.png
Views: 18
Size:  23.6 KB

I leave the default configuration on a major update to uninstall the old version and after install.

When I launch the setup, after clicking the Install button at the end of the installation masks, when it should start the unistallation of the old version I get this error:

Name:  MajorUpgradeError2.png
Views: 17
Size:  11.9 KB

and this is the message:

Problem signature:
Problem Event Name: APPCRASH
Application Name: setup.exe_TestInstallScriptMSI
Application Version: 2.1.7.0
Application Timestamp: 53723d9e
Fault Module Name: ISSetup.dll
Fault Module Version: 21.0.0.289
Fault Module Timestamp: 5372280b
Exception Code: c0000005
Exception Offset: 0002e9f0
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 1040
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Closing the error the installation goes on and finalize good.

As result I have the new version installed but the old one is still shown in the Installed Application with out the icon. Trying to uninstall it does not work throwing a message: "1628: Failed to complete the installation", leaving the item in the Installed application form.


Trying to uninstall the 1.1.0 version it works properly.


Which is the error ?
I found in this page that major version are managed by msi and installscript msi. That's why I've choosen it.


Thanks in advance for the help.
Attached Images
  

Focus on exe launched in custom action

$
0
0
I launch an exe from binary table in my custom action. everything is fine but the exe launched doesnt have focus that is its window is behind the installer window. Is there a way I can fix it?

Heap size

$
0
0
Hi all,

What is the maximum value that I can assign to "lax.nl.java.option.java.heap.size.max" parameter in "InstallAnywhere.lax" file.


Regards
Baski

Advanced UI Suite Taskbar Progress Not Working

$
0
0
Hello,
I have advanced UI/suite project(IS2014 SP1) and when I am installing it, the progress indicator in taskbar is still at 0%. How to make the progressbar move as installation goes?

Thank you,
Marek

Installations fails with 1603 to display Progress bar for a custom action

$
0
0
I have a Basic MSI project. I have added 2 new Custom Actions to display the Progress Bar continuously during file copying.

I have created a Deferred custom action that updates the Progress Bar, and an immediate custom action that informs the installer the total amount of ticks to add to the Progress Bar during the immediate and script execution phase of the script.

I have subscribed these CustomActions to the SetupProgress customaction.

What else should I do for this my product to get installed successfully with active progressbar display during the copying of the files.


Following are the 2 functions I have added, to accomplish this.

///////////////////////////////////////////////////////////////////////////////
//
// Function: SetProgressTicks(HWND)
//
// Purpose: This function informs the installer the total amount of ticks
// to add to the Progress Bar during the immediate and script execution
// phase of the script
//
///////////////////////////////////////////////////////////////////////////////
function SetProgressTicks(hMSI)
STRING svSupportDir, szvbFile, svWinSysDir, szProgram, szSourceFolder;
OBJECT rec;
NUMBER iResult, nTotalIncrement;
HWND hRec;
begin
nTotalIncrement = 1000;
rec = MsiCreateRecord(2);
if (rec = 0) then
LogIt(INFORMATION, "In SetProgressTicks - MsiCreateRecord failed");
endif;
MsiRecordSetInteger(rec, 1, 3);
MsiRecordSetInteger(rec, 2, nTotalIncrement);
iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_PROGRESS, rec);
if (iResult == IDCANCEL) then
LogIt(INFORMATION, "In SetProgressTicks - MsiProcessMessage failed");
endif;
end;


///////////////////////////////////////////////////////////////////////////////
//
// Function: SetProgressActionInfo(HWND)
//
// Purpose: This function is a deferred custom action that will also contain
// the code to update the MSI Installer’s Progress Bar.
//
///////////////////////////////////////////////////////////////////////////////
function SetProgressActionInfo(hMSI)
STRING svSupportDir, szvbFile, svWinSysDir, szProgram, szSourceFolder;
HWND hProgressRec, hRec;
NUMBER i, nTickIncrement, nItems, nTicks;
NUMBER iResult;
begin

nTickIncrement = 100;
nItems = 10;
nTicks = 1000;

hRec = MsiCreateRecord(3);

//creating template
MsiRecordSetString (hRec, 1, "Progress Custom Action");
MsiRecordSetString (hRec, 2, "Incrementing progress bar...");
MsiRecordSetString (hRec, 3, "Incrementing tick [1] or [2]");
iResult = MsiProcessMessage (hMSI, INSTALLMESSAGE_ACTIONSTART, hRec);

// Tell the installer to use explicit progress messages.
hProgressRec = MsiCreateRecord(3);
MsiRecordSetInteger(hProgressRec, 1, 1);
MsiRecordSetInteger(hProgressRec, 2, 1);
MsiRecordSetInteger(hProgressRec, 3, 0);
iResult = MsiProcessMessage (hMSI, INSTALLMESSAGE_PROGRESS, hProgressRec);

//Specify that an update of the progress bar's position in
//this case means to move it forward by one increment.
MsiRecordSetInteger(hProgressRec, 1, 2);
MsiRecordSetInteger(hProgressRec, 2, nTickIncrement);
MsiRecordSetInteger(hProgressRec, 3, 0);

// The following tells the installer to send a message to update
// the progress bar its a loop.

for i = 0 to nItems step nTickIncrement
MsiRecordSetInteger(hRec, 1, i);
iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_ACTIONDATA, hRec);
iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_PROGRESS, hProgressRec);
endfor;

MsiCloseHandle(hRec);
MsiCloseHandle(hProgressRec);
end;

I have added these 2 functions between the InstallInitialize and InstallFinalize CustomActions. The Deferred CustomAction is added to be exectuted just after the Immediate CustomAction.

My installer fails. The following is the snippet of the log message I got during the installation.

InstallShield 11:43:52: Initializing Engine
InstallShield 11:43:53: Done Initializing...
InstallShield 11:43:53: Registering Msi Server...
InstallShield 11:43:53: Invoking script function SetProgressTicks
InstallShield 11:43:53: Failed to run script function, error 0x80020009
InstallShield 11:43:53: CallScriptFunctionFromMsiCA() ends, result 0x643
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\ISBEW64.exe
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\ISRT.dll
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\IsConfig.ini
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\String1033.txt
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\_isres_0x0409.dll
InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\setup.inx
CustomAction SetProgressTicks returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:43:53: SetProgressTicks. Return value 3.
Action ended 11:43:55: INSTALL. Return value 3.
Action ended 11:43:56: ExecuteAction. Return value 3.
Action start 11:43:56: SetupCompleteError.
Action start 11:44:04: ISSetupFilesCleanup.
Action ended 11:44:04: ISSetupFilesCleanup. Return value 1.
Action ended 11:44:04: SetupCompleteError. Return value 2.
Action ended 11:44:04: INSTALL. Return value 3.
**********************************************************************************************************************************************************************
Thanks,
Elizabeth.

Java 8 support for MAC

$
0
0
hi,

Built Java source code with JDK 8 in MAC using netbeans,

Now i need to create setup using install anywhere installer 2008.

whether installer can be built with installanywhere 2008 to support JDK 8 in mac.


Is the support available?

or Install anywhere should be upgraded ?

How to package a file without automatically install it

$
0
0
Hello, I have a little problem with Installshield. I don't know how to package a file, but when I use the setup, I don't want to install it automatically install it.
In fact, I want to install this file only when I send an argument to the setup. My problem is when I add this file to the components, automatically, this file was install on the PC.

Thanks you for a response.

SQL Server Express install as feature NOT Prerequisite

$
0
0
I am needing to have SQL Server installed as an optional feature by the user. Currently i see that you can install SQL Server as a prerequisite to the installer but not to a feature or component. Is there a way to install/uninstall this as a component? I tried to create a custom prerequisite of my own but i am still not allowed to assign that to a feature. Would like this to be able to be downloaded from the web if the user chooses to install it instead of having to package the sql installer with my installer, this takes up unnecessary space for the download.

Changing Text for Dialog

$
0
0
Hi,
I have an InstallScript MSI Project. The SQLServerSelectLogin(EX)2 dialog has a ‘Browse’ button (ControlId_31) for "Database server that you are installing to:” and another ‘Browse’ button (ControlId_17818) for “Name of database catalog:”. Both of them have bad English in the text “…you like to target.” that I would like to change to “…you would like to target.” I can easily change the text for the first one in the SQLBrowse dialog but I don’t find a dialog or the text string anywhere for the second 'Browse' button ("Browse - Database Catalog"). Does anyone know where I would find that dialog or text string? I used the 'String Editor' and do not find that string via search.
Thanks

Suite installer execution

$
0
0
Hi,
I created a Suite installer with 10 exe packages in it, all these exe packages are created using Installscript MSI project.
Let the exe packages names like setup1.exe, setup2.exe, ... setup5.exe, setup6.exe, .... setup10.exe.
Now while installing the Suite installer, if I cancel the setup1.exe, the execution of the remaining setups should not continue. Could you please help me in this issue.Thanks in advance

FeatureIsItemSelected always return errorcode -132

$
0
0
Hello together,

i have a problem by using the FeatureIsItemSelected function in a Basic MSI Project. The function call doesn't work, it always returns the errorcode -132.
When i used the function first time it worked fine but actually it doesn't work anymore and i don't know why.

The Features were created manually in InstallShield and not script based. For reason of testing the features are called "FT1" and "FT2".
So that the function call looks like this: FeatureIsItemSelected(MEDIA, "FT1")

I know that the error code means "media not found" but i don't know how to fix it.

Can someone help me?
Thanks.

regards Denis

Output Productcode to a file on install?

$
0
0
Hi folks - I'm new to Installshield (well, back after about 15 years) and of course have a hot issue:

I need to be able to output ProductCode to a text file along with my setup.exe. The current project I'm working on uses a Basic MSI Project. Is there some setting I can use, or could someone provide an example script to generate this file?

I would be most grateful. Thanks

BLink

Install Method of Installer Class not getting fired while Updating the installer

$
0
0
We are working on a WPF application and we used Install Shield Limited Edition to create the installer of the application. As per requirement we need to encrypt the App.config file. So we used an installer class and encrypted the app.config using “DataProtectionConfigurationProvider”. We have written the corresponding code to “Install” method of Installer Class. To associate the installer class to Install Shields we used following way.
Name:  Installer.jpg
Views: 1
Size:  24.5 KB

Later we have build the application and we are able to successfully create the installer. We also found the the App.config section is encrypted correctly.

Now the issue is “Install” method of “Installer” class not getting fired when we update to new version of the same product. First our version was 1.0.1.0 and later we added some feature to the application and created new version 1.0.1.1 . At that time we notice that the “Install” method of “Installer” class not getting fired.

How we solve this issue? Any help would be appreciable.

Best Regards

Ranish
Attached Images
 

MSI push-out through Group Policy + Command Line Parameters

$
0
0
Good morning,
This is the scenario I am trying to get to work:
- 2012 Spring InstallShield created MSI installer (no setup.exe since MSI is required for Group Policy push-out). This is a Basic installer (not InstallScript)
- Group Policy tied to an Organizational Unit with certain computers added
- Certain users added to a Security Group and given rights to the OU
- Group Policy successfully pushes the MSI installer out and user with rights has access to it

All of the above works fine. This is where I am running into trouble:
- As part of the Group Policy software install I am trying to add command line switches. More exactly, I am trying to pass a property being a server path. I am installing a client that needs to know the path to the server component. I can't seem to get the syntax right, and even fail to run the install directly from a command line (the Windows Installer window with help for switches pops up)
- I have created a Property in Property Manager called 'MYSERVERPATH' and this is what I am trying to pass through to InstallScript code to write to .ini file.

Is this possible or am I way off here?

Thanks!

ISDEV : error 132

$
0
0
Hello,
I am trying to build a Installer with Installshield 2014 which uses Installscript.The installer size is of 15GB and toatl files of 116677 files in it.
When I try to build it it fails with below error
ISDEV : error 132: Internal error in file C:\CodeBases\isdev\Src\BackEnd\Build\MediaBuild\MediaLibraryWrite.cpp, line: 366 "The supplied user buffer is not valid for the requested operation."
But I have built the same kind of Installer with 12GB size and 8000 files which I succeded in building it.
Can anyone please suggest me how to proceed with this error. Am stuck with it.

Thanks in advance

Suite install: how to implement a out-of-space warning during install

$
0
0
During suite install, if out-of-space, there is no warning. What I can see is computing space, Validating install, then interrupted.
How to implement a out-of-space warning during suite install?

Suite install: how to implement a out-of-space warning during install

$
0
0
During suite install, if out-of-space, there is no warning. What I can see is computing space, Validating install, then interrupted.
How to implement a out-of-space warning during suite install?

Suite install: how to implement a out-of-space warning during install

$
0
0
During suite install, if out-of-space, there is no warning. What I can see is computing space, Validating install, then interrupted.
How to implement a out-of-space warning during suite install?
Viewing all 4553 articles
Browse latest View live