Questions tagged [installscript]

InstallScript is the official language for scripting installations in InstallShield and related products. Use this tag for InstallScript-specific questions; do not use it for broader InstallShield questions.

Introduction

InstallScript is a language for developing installations with InstallShield and related products. Generally InstallScript has C-like syntax and constructs. It is the heart of InstallShield InstallScript projects and can also be used in InstallScript MSI projects and Basic MSI projects' custom actions.

While InstallScript has existed for decades and InstallShield's InstallScript reference is over 1,200 pages, fluent InstallScript programming is somewhat a dark art. In addition to challenges typical of any programming language, InstallScript presents distinct challenges where its features and idioms are often not (well) documented.

Tag Usage

Do

Use the [installscript] tag for InstallScript-specific questions (e.g. InstallScript Data-Type Casing). This includes questions specific to InstallShield InstallScript projects.

Don't

Do not use the [installscript] tag for broader InstallShield questions (e.g. Register assemblies to GAC using InstallShield).

InstallScript Resources

Below are links to some useful InstallScript resources:

215 questions
0
votes
1 answer

Creating a new dialog using installshield

I followed the guide here: http://community.flexerasoftware.com/showthread.php?t=144126 but how do I associate the installscript I wrote with the dialog box I created; everytime when I run test user interface, and click next to my created dialog…
shawn
  • 4,063
  • 7
  • 37
  • 54
0
votes
1 answer

How can i validate if my Javascript tracking script on customer site is successfully installed?

We run a SAAS analytics app similar to hotjar and Google Analytics. The customer needs to install our javascript on their website in order for us to track. How do we validate if this script has been successfully installed on their site and it loads?…
0
votes
0 answers

Implement functions for the buttons in the installshiel dialog

I am currently working on installshield to create an installer for my project. I created a new dialog but I don't know how to make my buttons work. Can someone guide me a bit on this. Project Type - MSI Basic enter image description here I tried…
Hung Hero
  • 1
  • 2
0
votes
1 answer

Failed to install mysql server through Installshield (mysql-installer Information: 10 : MySQL Server 5.6.21's change state request failed)

I am trying to install the MySQL server and Connector/C++ through Installshield (Installscript) by executing MySQLInstallerConsole.exe with following argument, "community install server;5.6.21;x64:*:port=3306;openfirewall=true;passwd=root,…
0
votes
0 answers

UnInstall is deleting all path variables INstallSHield

I trying to add a path variable using InstallShield 2014 (InstallScript project) I managed to append add path variable using this code: sRegKey = "SYSTEM\\CurrentControlSet\\Control\\Session…
Yaron
  • 29
  • 5
0
votes
0 answers

Get User Selection Response From PreRequisite Optional

Within PreRequisite Editor, I have marked the option for user to optionally skip the installation in a prerequisite. Now, when the installation runs, there's a dialog box that says "[ProductName] optionally uses PreRequisite. Would you like to…
0
votes
0 answers

Detect Erlang Version In InstallShield 2021/2022

I am trying to build an installer using InstallShield 2021. My installer has Erlang as a setup prerequisite. If Erlang is already installed on target system, I want to detect the version of Erlang installed and match that to my setup prerequisite's…
0
votes
1 answer

character ASCII code in InstallScript InstallShield

I want to keep user from entering character > ASCII 127 in one of the password field in installer. I googled but didn't find any direct way for this, currently i'm using: CHAR ch; STRING ASCII; NUMBER nASCII; for nCount = 0 to…
0
votes
0 answers

Distinguish between installation, upgrade and removal in InstallScript

How can I differentiate in package InstallScript code between installation, upgrade and uninstallation?
ababo
  • 1,490
  • 1
  • 10
  • 24
0
votes
0 answers

CopyFile() doesn't fail copying remote file when there's no network connectivity

I have an InstallScript code that downloads file from a remote endpoint. The code checks return value and makes sure it's 0, otherwise aborts the installation. The problem is that if machine is disconnected from the network the CopyFile() function…
ababo
  • 1,490
  • 1
  • 10
  • 24
0
votes
1 answer

Signing upgrades w/o Certification Authority

Can I have my InstallScript upgrades signed so that when an upgrade is taking place some validation will take place that the installed application and the upgrade both have the same signature. I know I can use certification authority but I need to…
kroiz
  • 1,722
  • 1
  • 27
  • 43
0
votes
2 answers

Updating .config XML in InstallScript

I am attempting to write a short install script to update a value in an XML file (myplatforinfo.config). I shamefully stole the code from [this post on a similar…
tigerswithguitars
  • 2,497
  • 1
  • 31
  • 53
0
votes
2 answers

Disabling "Next" button In InstallScript

Using InstallShield - InstallScript project: I made a custom dialog for browsing for a file. On the dialog initialization I want to disable the "Next" button. I am successful in disabling other buttons on this dialog except for any of the buttons of…
kroiz
  • 1,722
  • 1
  • 27
  • 43
0
votes
2 answers

How can I obtain filename of own MSI/EXE installer file?

I need to get a filename of the own installation package within an InstallScript function. How can I do that?
ababo
  • 1,490
  • 1
  • 10
  • 24
0
votes
1 answer

InstallScript Custom action

I have created a dll c++ custom action that is creating a new dialog. I am trying to start this custom action through installScript function and I am unable to. I am sure this is easy. but I am new in InstallScript and I can't find any answer on the…