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

Replace directory contents during installation

I have a web application for which I implement an Installshield/InstallScript installer (i.e. no MSI). The web application uses webpack, and I end up with a relatively short list of files which have some kind of hash in their names, like…
0
votes
1 answer

How to know installation action in installshield merge module type project?

I am using installshield to build a setup project. I have one InstallScript type project in which I have multiple merge module project included. In each merge module I have some custom install script logic. I noticed that this install script logic…
Ramesh Soni
  • 15,867
  • 28
  • 93
  • 113
0
votes
1 answer

RegDBGetKeyValueEx returns -1

I am using below installscript code to identify whether SharePoint is installed or not. but its not working. The function returns -1. Not sure what is the issue. can someone please help? I want to do below steps Reach to this registry location…
0
votes
1 answer

How to add count down timer in InstallScript code?

I have created a Basic MSI project and in that I have written a InstallScript Custom Action to download a file from server. I used CopyFile() function for this. I'm also showing sdShowMsg() during this download. But when the download server is not…
Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39
0
votes
1 answer

how to run .sh file in Ubuntu using installScript

I am creating an installation using InstallShield 2018 in windows 10. I need to execute a script file (.sh) in Ubuntu from a function in Installscript. I tried the following but it did not work: szCmdPath =…
Thế Long
  • 516
  • 7
  • 19
0
votes
1 answer

Major upgrade option not available in InstallShield InstallScript project types

Major upgrade automatically uninstalls the existing version and installs the current one. Unfortunately Major Upgrade is only available for the following Project types: - Basic MSI - InstallScript MSI - MSI Database - Transform It is not…
0
votes
1 answer

Detect whether certain IIS features are present from InstallScript

I have an InstallScript project written in InstallShield 2010, which, amongst other things, shells out to several .NET MSI installers that install web apps. If any of these web apps are selected for installation by the end user, I need to check for…
Christian Hayter
  • 30,581
  • 6
  • 72
  • 99
0
votes
1 answer

xmldom breaking on writing value of attribute

I am trying to replace existing value of some attribute in .xml file. The line that is to be written is ${VAULT::ab::a-b::1} When I try to write it using xmldom or existing string replacement functions in InstallScript, I see that the file gets…
0
votes
2 answers

InstallShield (InstallScript Project): Uninstall files at update - How can I prevent this?

I'm quite new in the InstallShield stuff, I took this project from a leaving co-worker. However, here's my problem: I was trying to update a MySQL Server with the setup from 5.7.17 to 5.7.19, which works great most of the times. I got the feature…
sbe
  • 33
  • 3
0
votes
1 answer

Searching for specific value under registry subkey

using InstallShield 2008 Premier I am looking to be able to search for a specific String in a key in the Windows registry. My challenge is that there are subfolders in the path to the key that can be unknown. For example, in this registry path:…
Randy
  • 131
  • 1
  • 1
  • 12
0
votes
2 answers

How to call VBScript in InstallScript project

I want to use a VB Script script file as the target of an InstallScript project prerequisite. I need to use VB Script because I must check several different conditions that are not possible using the regular conditions in the IS prerequisite editor…
bo gusman
  • 127
  • 1
  • 2
  • 9
0
votes
1 answer

Random password creation using install shield (install script)

I am new to Install Shield(Install Script), so apologies in advance if my question is repetitive. Is there any function in install shield to create random password ? or a code snippet to achieve the same. Thanks in advance for the help :)
Neethu Shaji
  • 120
  • 3
  • 4
  • 13
0
votes
1 answer

How to use a property set in a dialog

I'm using InstallShield Professional 2016. I have an SQLLogin dialog, which creates a property IS_SQLSERVER_DATABASE for the server name, and I'll need to use this property in an InstallScript script to create the final connection string. How can I…
Pedro Gordo
  • 1,825
  • 3
  • 21
  • 45
0
votes
1 answer

How to detect the change of the package code on updating (Small Update)

I have a product called MyApp. This product comes with different editions, like BASIC and PRO. Both editions have their own installer with the same version. When I have installed the BASIC edition and run the PRO installer, I want InstallShield to…
0
votes
0 answers

MSI - create feature at runtime?

In an InstallShield Basic MSI project I have some features and component but I wan't to add some features at run time that will be displayed in the CustomSetup dialog without any associated components. Is that possible ? I have been trying this code…
Epligam
  • 741
  • 2
  • 14
  • 36