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

InstallSuite (Suite Project) Silent Installation Package Selection

$
0
0
Hi Folks,

I have an InstallShield Suite Project that installs 3 applications. Let's call them:

Package 1
Package 2
Package 3

During the GUI installation, I can select which packages to install. However, during the silent installation, using the command "setup.exe /silent", all 3 packages get installed. Specifically, I would like the silent installation to install only "Package 1" and "Package 2". Does anyone know how to do this? Are there command line parameters that can be entered with the command "setup.exe /silent"? Changes to the project itself? I'm probably missing something in the documentation, so any guidance would be appreciated.

Thanks in advance!
Billy

Captionless UI dialog

$
0
0
Hello!

I've got a question related to the UI of installshield dialogs - is it possible to get the captionless dialog UI?
I've tried to remove the WM_CAPTION from the style in the UI designer, but it did not work.

What I would like to achieve is something like this:

Name:  no_borders.png
Views: 8
Size:  39.0 KB

Best regards,
Piotr
Attached Images
 

Change shortcut properties by VBScript

$
0
0
Hello.
Sorry for my English - I'm from Eastern Europe :)
I have Express version of InstallShield and want to create simple project for my program. I want to do "tricky" thing: for each my feature (in my msi project) I want to create specific shortcut to my program (with a particular argument). For example:
- If user select "Feature 1" I want to create shortcut with argument "Feature 1";
- If select "Feature 2" - shortcut with argument "Feature 2" etc.
As I understand it is possible with VBScript: get feature name which currently selected and change property of shortcut. But I can't found how to get feature name (enumerate Session.FeatureRequestState ??) and how to set specified shortcut property (argument).
I hope somebody in this forum can help me.
Thank you in advance!

Fixing component issues with next major upgrade

$
0
0
I have an issue where a product already in production has a file included in a component that should be permanent.

In the next major upgrade release I need to ensure that this file is not deleted in the upgrade. I am trying to brainstorm how to accomplish this.

The issue is made more complex because this installer I converted from a wise installer, and the particular file existed under a different componentID in that release. So the file can be associated with more than one componentID.

My only thought at this time is to create a backup of the file prior to the upgrade. If I remember correctly any items in moveFiles table are processed before the existing app is updated. Would this be the appropriate method for handling this, or is there a better way?

Thank you.

Upgrade failure due to Scheduled Task

$
0
0
I have a server application (web site, web services, Windows service) I've created an basic MSI installer for. On a new install, the installer creates a scheduled task and it runs as expected each day. On upgrades, however, the installer fails with the error:

Code:

03640: (Unknown): Action 11:58:29: ISScheduledTasksInstall.
03641: (Server): MSI (s) (1C:84) [11:58:29:907]: Executing op: CustomActionSchedule(Action=ISScheduledTasksInstall,ActionType=3073,Source=BinaryData,Target=ISScheduledTasksInstall,CustomActionData=C:\Users\babaltz\AppData\Local\Temp\~95AC.tmp)
03642: (Server): MSI (s) (1C:8C) [11:58:29:908]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIA37C.tmp, Entrypoint: ISScheduledTasksInstall
03643: (Unknown): InstallShield 11:58:29: Adding Scheduled Task: New Task
03644: (Unknown): InstallShield 11:58:29: An error occurred : The file exists.
03645: (Unknown):
03646: (Unknown): CustomAction ISScheduledTasksInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
03647: (Unknown): Action ended 11:58:29: InstallFinalize. Return value 3.

The scheduled task runs a console app once a day that generates two files.

Is this a known issue. Is the failure really due to the Scheduled Task, or something else?
Thanks.
Brian

Passing Values to MSI

$
0
0
Hi,

Very new to install shield so just after a couple of pointers, I'm attempting to create a CD based installer which will pass a set of values to an msi installer these would then be used by a device driver to install from an inf file using DifxDriverPackage to install a signed driver. So is it possible based on user selection in the cd to pass the following values to an msi in this format;

RunMsi("Model", "USB", "1", LangID) - How and where would I put this into the installation CD package on install shied and am I using the right package - Advanced UI Project as I want to be able to create a set of custom UI dialogs?

Also when using DifxDriverPackage to install on the InstallScript MSI Project , when do I run this in the MSI script and how do I then get it to start the driver installation as I've followed the help guide and am getting no-response from msi installer, are there any examples of this on this site or any support sites that may point me in the right direction?

Many thanks in advance

GPO Deployment Fail, Installation Abort before OnBegin() function called.

$
0
0
Hallo,

I recently ran into an issue installing our software installer by silent installation mode using group policy deployment.

Our InstallShield version is InstallShield 2013 – Professinal Edition (Version 20), and the project type is InstallScript Project.

The following steps had been taken before executed silent installation using group policy deployment:

1. Run the installer with additional parameters to record the install and create a response file. Example: "setup.exe /r /f1c:\temp\setup.iss"
2. Prepare GPO Deployment. The following command is executed in order to call the software installer :
"\\DCSERVER\GPO\setup.exe" /s /v"/PARAMPATH=\\DCSERVER\GPO\" /f1"\\DCSERVER\GPO\setup.iss" /f2”\\DCSERVER\GPO\silent_install.log"

The installation worked perfectly from manually running the command in step2 from an administrative command prompt.
When I tried deploying this software from GPO, using the same command line and the same response file, the installation failed without throwing silent installation log.
We also found that the installation had not even run into the first line of my sourcecode which is in OnBegin() function in Setup.rul script file.

As checked from the window event viewer log, we found the following error from the log:

Faulting application name: setup.exe, version: 5.4.0.0, time stamp: 0x51a6cc99
Faulting module name: ISSetup.dll, version: 20.0.0.376, time stamp: 0x51a6cc32
Exception code: 0xc0000005
Fault offset: 0x0001ab47
Faulting process id: 0x170c
Faulting application start time: 0x01cfbdd49884cd72
Faulting application path: \\DCSERVER\GPO\setup.exe
Faulting module path: C:\windows\TEMP\{20539092-BFF2-421F-BABE-D1AF6B1B8566}\Disk1\ISSetup.dll
Report Id: d6d2dc44-29c7-11e4-b576-005056c00008

When the software executes, the first thing it does is extract files into a temporary location.

If I run it manually, those files are placed in c:\users\<- username ->\appdata\local\temp\ with 2 temporary folder with GUID name format.
One contains ISSetup.dll and the other contains all installation support files.

If I run from GPO as System Account, those files are placed in c:\Windows\temp\ with only 1 temporary folder which contains ISSetup.dll.
The folder which contains all support files was not generated, and the installation was failed.

Would you please suggest how we can troubleshoot and resolve the problem as the software installer has been terminated before any log files are generated ?

Sincerely,
Thanachao

flxLicGenResponseGenerate() function is giving AccessViolationException

$
0
0
Hello,

Recently I have upgraded license Generating toolkit to 11.10(from 11.8) and FlexNet Publisher toolkit to 11.12.2 (previously I was using 11.9.0). But now flxLicGenResponseGenerate() is giving Access violation exception (Attempted to read or write protected memory.This is often an indication that other memory is corrupt).

Previously everything was working fine.

Does any one have any idea what is causing it?
Please help me to resolve this issue.

Code snippet.....
flxLicGenResponseCreate(Requestptr, m_theResponsePtr)

code for adding busines rule here .

If flxLicGenResponseGenerate(m_theResponsePtr, pszResponseXml) = flxlicGenBoolean.FLX_LIC_GEN_FALSE Then
FatalApiErrorResponse("flxLicGenResponseGenerate", m_theResponsePtr)
End If
.......

Thanks
Mohit Kumar

XML file changes and XML encoding help

$
0
0
Hello everyone. I am populating my config file with values I get from a system search and the problem I am having is that the string that gets put in the config file is XML encoded and the client app blows up when it tries to read the string.

Here is what it should be
<add name="DbContext" connectionString="Data Source=(localdb)\v11.0;Initial Catalog=Tracs;AttachDbFilename=C:\ProgramData\test\Test.mdf;Integrated Security=True;Connection Timeout=180" providerName="System.Data.SqlClient"></add>


Here is How Installshield is writing it
<add name="DbContext" connectionString="Data Source=(localdb)\v11.0;Initial Catalog=Tracs;AttachDbFilename=C:\ProgramData\test\Test.mdf;Integrated Security=True;Connection Timeout=180&quot; providerName=&quot;System.Data.SqlClient"></add>

How can I force installshield to write the " instead of &quot:

Also is there a way to put conditions on XML file changes.

Thanks in advance for you help.

Freeze in installation with custom action

$
0
0
Basic MSI project. Goal is to copy data from a prior edition product to new edition product. Search is set to look for 4 of our past products installed.

I have 4 custom actions pointing to installscript functions that copy the data from that particular edition to the new edition. Logic for those custom actions are set so that we look for the newest of the 4 products previously installed and do that custom action and not the others. If prior products were not installed, then the logic wont match any, skipping the actions of copying past data.

For some unknown reason, some customers are getting hung up during the copying of the past information. If they override the installer property in a window to skip installing past data and these actions are skipped, the installer finishes successfully.

Any ideas? I'm not seeing pattern on OS installs.

The code for the function for copying the prior version data to new version data is:

//////////////////////////////////////////////
function CopyPastData1(hMSI)
// To Do: Declare local variables.
STRING svCommonDocuments, svPath, svProgFilesFolder;
STRING svSource, svDestination;
NUMBER nvSize, nvKeepReg, nvFolder, nvResult;
begin
SprintfMsiLog("Copy Old data 1Start.....");
Enable(STATUS);
StatusUpdate (ON, 99);
svCommonDocuments="";
svProgFilesFolder="";
try
nvFolder=CSIDL_COMMON_DOCUMENTS;
svPath="";
svCommonDocuments="";
nvResult=SHFolder.SHGetFolderPathA(NULL, nvFolder, NULL, 0, svPath);
if (nvResult=0) then
svCommonDocuments=svPath;
else
SprintfBox(SEVERE, "CSIDL_COMMON_DOCUMENTS", "Failed(%d): %s", nvResult, FormatMessage(nvResult));
endif;
catch
MessageBox("Unsupported OS.",0);
endcatch;
svDestination = svCommonDocuments ^ "\\NewProgram\\Data\\" ^ "*.*";
nvSize=0;
MsiGetTargetPath(ISMSI_HANDLE, "ProgramFilesFolder", svProgFilesFolder, nvSize);
svSource = svCommonDocuments ^ "\\PASTPROGRAM\\DATA\\*.*";
Disable(LOGGING);
XCopyFile (svSource, svDestination, COMP_NORMAL);
svDestination = svCommonDocuments ^ "\\NEWPROGRAM\\NEWPROGRAM.INI";
svSource = svCommonDocuments ^ "\\PASTPROGRAM\\PASTPROGRAM.ini";
CopyFile ( svSource , svDestination );

WriteProfString (svDestination, "Last File","which_Directory","0");
WriteProfString (svDestination, "Last File","Specific_Directory","");
WriteProfString (svDestination, "Last File","Last Directory","");
WriteProfString (svDestination, "Last File","Open Last File","0");
WriteProfString (svDestination, "Last File","Last File","");
WriteProfString (svDestination, "Last File","Last Name","");
WriteProfString (svDestination, "Last File","Last File 1","");
WriteProfString (svDestination, "Last File","Last Name 1","");
WriteProfString (svDestination, "Last File","Last File 2","");
WriteProfString (svDestination, "Last File","Last Name 2","");
WriteProfString (svDestination, "Last File","Last File 3","");
WriteProfString (svDestination, "Last File","Last Name 3","");
WriteProfString (svDestination, "Last File","Last File 4","");
WriteProfString (svDestination, "Last File","Last Name 4","");
WriteProfString (svDestination, "Last File","Last File 5","");
WriteProfString (svDestination, "Last File","Last Name 5","");
WriteProfString (svDestination, "Last File","Last File 6","");
WriteProfString (svDestination, "Last File","Last Name 6","");
WriteProfString (svDestination, "Last File","Last File 7","");
WriteProfString (svDestination, "Last File","Last Name 7","");
WriteProfString (svDestination, "Last File","Last File 8","");
WriteProfString (svDestination, "Last File","Last Name 8","");
WriteProfString (svDestination, "Last File","Last File 9","");
WriteProfString (svDestination, "Last File","Last Name 9","");
WriteProfString (svDestination, "Last File","Last File 10","");
WriteProfString (svDestination, "Last File","Last Name 10","");
WriteProfString (svDestination, "Last File","Last File 11","");
WriteProfString (svDestination, "Last File","Last Name 11","");
WriteProfString (svDestination, "Last File","Last File 12","");
WriteProfString (svDestination, "Last File","Last Name 12","");
WriteProfString (svDestination, "Program Default","Copied Sample File","0");

SetStatusWindow (-1, "Copying completed at 99%");
Delay (3);
SetStatusWindow (100, "Completed copying.");
Delay (3);
Enable(LOGGING);
SprintfMsiLog("Copy Old data End.....");
end;

Error while creating IIS virtual directory while re-install/update.

$
0
0
I am new to install shield and I have created Basic MSI project for an Web Application and I am getting below error while re-running setup after first clean install.

InstallShield 16:24:04: put_value succeeded. get_StringValue now returns '0' with string value 'Read, Script'.
InstallShield 16:24:04: CommitChanges for path 'MACHINE/WEBROOT/APPHOST/Default Web Site/Product' and physical path 'C:\Program Files (x86)\Company\Viewer\'.
InstallShield 16:24:04: CommitChanges failed with the following HRESULT: '-2147024891'.
InstallShield 16:24:04: Error with IISRT: -2147024891
CustomAction ISIISInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 16:24:04: InstallFinalize. Return value 3.

Please help.

Prerequisite for NET 4.0 fails

$
0
0
I am using InstallScript project and included a Microsoft .NET 4.0 Framework Full prerequisite. When the Setup is run then, the prerequisite fails. I am installing on Windows 2008 (R1 not R2) x86 system as a test environment. How can I debug this issue?

Managing some files outside MSI package

$
0
0
Hi everybody, I’m a newbie at installshield so I hope my question is relevant to this forum.

I’ve got basic MSI installation made by install shield, which installing our company’s product.
Today, the installation is packing within the MSI file all the relevant files needed for successful installation, (e.g. our executable, some scripts, and some data files – mostly text ones).
The problem is that ‘Data’ file is changing rapidly, meaning it can be changed every few hours, while all other files remains the same (changes only once a week or so),
Since all files are packed inside the MSI file, there is a need to rebuild MSI each time the data changes.

We wish to separate this operation, so ‘Data’ files can be changed without issuing new MSI each time.
The problem is that we don’t want to just put the accessible ‘Data’ text file in the same folder as the MSI executable to prevent from users to change it.
What are my options to pack and/or encrypt all those ‘Data’ files ?, that it can be changed quickly, but will not be accessible to anyone, but the MSI installation will be able to extract and read them ?
Maybe some Binary conversion ? Of cause that zipping and similar archiving is not good (most of advanced users can overcome password protected archiving very easy).

Thanks in advance, Gil.

flxLicGenResponseGenerate() function is giving AccessViolationException

$
0
0
Hello,

Recently I have upgraded license Generating toolkit to 11.10(from 11.8) and FlexNet Publisher toolkit to 11.12.1 (previously I was using 11.9.0). But now flxLicGenResponseGenerate() is giving Access violation exception (Attempted to read or write protected memory.This is often an indication that other memory is corrupt).

Previously everything was working fine.

Does any one have any idea what is causing it?
Please help me to resolve this issue.

Code snippet.....
flxLicGenResponseCreate(Requestptr, m_theResponsePtr)

code for adding busines rule here .

If flxLicGenResponseGenerate(m_theResponsePtr, pszResponseXml) = flxlicGenBoolean.FLX_LIC_GEN_FALSE Then
FatalApiErrorResponse("flxLicGenResponseGenerate", m_theResponsePtr)
End If
.......

Thanks
Mohit Kumar

How to add new autoupgrade item to installscript MSI project using commandline

$
0
0
I am using InstallShield 2012 to create a installscript MSI project to create patch installer for my product and I am planning to automate my product build process to create patches using ISCMBuild.exe.

In patch installer, to support upgrade scenarios, we need to add list of all previous setup.exe files under upgrades view.
Each time i create a new patch, i have to add previous patch setup file details in upgrades section. Now, i want to know if there is anyway to add this entry in upgrades view from command line.

Captionless UI dialog

$
0
0
Hello!
I've already posted this one on InstallShield 2012 Spring forum, but it seems that InstallShield 2012 gets more responses..., so I am posting it here also:

I've got a question related to the UI of installshield dialogs - is it possible to get the captionless dialog UI?
I've tried to remove the WM_CAPTION from the style in the UI designer, but it did not work.

What I would like to achieve is something like this:
Name:  no_borders.png
Views: 5
Size:  39.0 KB

Best regards,
Piotr
Attached Images
 

SQL Server Select Login Dialog

$
0
0
I have a installscript 2014 project. I have one sql script in this project and it displays the SqlServerSelectLogin(Ex)(2) dialog. I want to be able to modify the dialog code so if the user clicks on option create database the browse button for the catalog field is disable. I know that in the Behavior and Logic/ Installscript there is the Dialog Source and it lists all the dialogs so you can modify but does not show the sql server dialogs. So where is the code for this dialog if there are any or do i need to make a custom dialog and has anyone created one that is similar to the sqlServer dialog.

I am still learning Installshield

Visual studio C++ 12 MFC library

$
0
0
Hello,

I need to add the Visual studio C++ 12 MFC 32 and 64 bit libraries in the redistributables, but they do not exist in the redistributable list. what should I do, does installshield 2012 spring support this library? should I install it on the system first?

with regards,
Ehsan

removing the \ from install directory

$
0
0
Hello,
One of the environment variables is pointing to [INSTALLDIR]. After installing I am getting a '\' at the end of the path, how can I tel the installer to not to add the backslash to the end of the path?

with regards,
Ehsan

Update component version number at build time

$
0
0
Hi,


We have installanywhere project which has several components. We make use of GUI to update the version numbers where ever it is required(Project->Description-> version and Organization->Components->Version Number). Once version numbers are updated we initiate the build.

BUT, we want to automate the packaging process henceforth want to make use of build.exe to build the install anywhere project.

For example:
To perform linux build, the following command is issued:
> build.exe "C:\Installer.iap_xml" productVersion=1.6.1408.0 Linux -SV -AV +LV

I know for sure it updates version field in Project->Description-> version. BUT, I'm not sure if component versions get updated.
Can you please let me know how to update the component version field via build.exe?
Regards,
Dayakar
Viewing all 4553 articles
Browse latest View live