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

Setup Exiting With No Apparent Error on Call to .NET Method

I am extending an existing InstallScript project and need to call a method in an assembly that targets .NET 4.0. The project already calls a method in another class in the same assembly: so I know that much works. Mirroring what I see for the…
J0e3gan
  • 8,740
  • 10
  • 53
  • 80
0
votes
1 answer

msi not getting unistalled properly

I want to revert all my custom action on uninstallation. Here are my custom action Create a registry entry using installscript Install service --> created under launch an executable option Start Service --> created under launch an executable…
Deepak Ingole
  • 14,912
  • 10
  • 47
  • 79
0
votes
1 answer

Where are my custom registry key and its values?

I am new to IntallShield and extending a sizeable InstallScript project to add a new custom registry key (HKEY_LOCAL_MACHINE\SOFTWARE\Company\Product\Foo) and values regarding a feature on first install. Based on the project's existing code to add…
J0e3gan
  • 8,740
  • 10
  • 53
  • 80
0
votes
1 answer

Installshield Silent Uninstall passing command line argument

i have a exe which will be uninstalled only upon passing a commandline argument "uninstall". i would like to create a response file for uninstalling this exe by passing the argument and do my uninstallation silently. Is it possible?
0
votes
1 answer

How to add a Scrollable text area to a custom Dialog box?

I'm using InstallShield Professional 2013, and I'm having troubles including a scrollable text area in a custom dialog box (like the SdLincenseE RTF dialog box). I have tried using a normal Text area but it only displays the raw text. Is there a…
109
  • 137
  • 1
  • 10
0
votes
1 answer

InstallScript check if installation path is root drive

How to check if user has selected the root drive for installation. Installation should not proceed if user selects the root drive and prompt user to select another path. Right now i am using following piece of code, is there better option to do same…
Bhalchandra K
  • 2,631
  • 3
  • 31
  • 43
0
votes
2 answers

Installshield - Update the registry according to a file given at runtime

I'm writing a basic MSI installer using installshield 2010. A different company would supply a .reg file that the installer would read in runtime and would update the registry accordingly. I can't figure out how to accomplish this. I manged to write…
Eldad
  • 1,067
  • 16
  • 36
0
votes
2 answers

installshield 2012 SUPPORTDIR

I have an Installshield Installscript MSI installer that I have to maintain. It contains about 10 text files in Support Files/Billboards. When the installer runs, I open the files for editing/copying in a custom Installscript function using the…
0
votes
1 answer

How to encrypt a string using InstallScript

I'm building an installer using InstallScript MSI project. During installation I save some information to a local file. This file is created based on the user's preferences and it may contain sensitive information. I would like to encrypt this…
Tamar
  • 2,016
  • 1
  • 15
  • 26
0
votes
1 answer

How to remove letters from a Property?

I'm creating a Basic MSI, and i'm using System Search to read a value from the registry, and store it in a Property. I would like to use this property in a cfile path, but unfortunately the value, what I read from the registry looks like this:…
kampi
  • 2,362
  • 12
  • 52
  • 91
0
votes
1 answer

How to run InstallScript project from console application

I have created a major upgrade (Installscript msi) which is running perfectly when executing by clicking on the exe file. I am also creating a console aplication which runs the same exe but this time after installation, along with the new version,…
0
votes
1 answer

InstallScript : LaunchAppAndWait issues with 32 bit?

I have built a shell extension dll which is used to show right click context menu for both 64 & 32 bits. I am registering the dll in installscript during installation using LaunchAppAndWait function. It is working fine for 64 bit machines but not…
Engineer
  • 227
  • 2
  • 19
0
votes
2 answers

Installscript : How to close explorer windows without restart of explorer.exe process?

is there anyway to close all the explorer windows without restart of explorer.exe process? Context :- During un-installation of an installshield based installer, i had to delete a dll which is used to show right click context menu for the files.…
Engineer
  • 227
  • 2
  • 19
0
votes
1 answer

Installshield 2011: Take path from one window, take text from second

Good day, everyone. I have that task assigned which consists in creating simple installscript-only project, that should have 2 windows: first will prompt user to enter a path and create text file in this specified location, while second will promt…
user2541436
  • 107
  • 1
  • 1
  • 4
0
votes
2 answers

Suppress message box during silent install of installshield basic msi, but allow it during visual install

I created a basic stand-alone msi file using InstallShield 2012. There is a prerequisite that needs to be fulfilled before installation begins. To check this prerequisite, I created an InstallScript-based custom action and added to the very first…