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
3
votes
2 answers

How to invoke method from .NET DLL in InstallScript

I need to call function from .NET DLL in InstallScript. How can I do it? Let's start from simple Hello World. Suppose, I created simple class library TestLibrary.dll using System; using System.Windows.Forms; namespace TestLibrary { public…
AndreyS
  • 365
  • 7
  • 18
3
votes
2 answers

Batch file can't immediately see environment variables created by InstallShield script

We use InstallShield 2008 for our product installation. Product consists of several components. When a component is installed, a batch-file with some post-install routines specific to this component is executed. The problem: post-install batch files…
3
votes
2 answers

how to open a web page on click of button in InstallShield?

HI, I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact way to achieve this. Please help if anyone have…
simon
  • 86
  • 3
  • 9
3
votes
1 answer

Using boolean return values in a .NET dll used in Installscript

I have created a .NET dll to be used in Installscript. It basically installs certificates, removes certificates and checks if a certificate already exists. This is my Exists method: [ComVisible(true)] public bool Exists(string thumbPrint) { try …
MonkeyDreamzzz
  • 3,978
  • 1
  • 39
  • 36
3
votes
1 answer

InstallShield upgrade from 32bit exe to 64 bit exe failed

I am trying to upgrade my project. My earlier project had the 32 bit exe and now it is using 64 bit exe. While upgrading it ts giving following error: WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\SHAKESPEARE_INC\Othello\' folder had…
Sandeepjn
  • 181
  • 1
  • 1
  • 7
2
votes
2 answers

InstallShield: How can single custom actions be tested?

(I'm using InstallShield2012 V.18) In setup.rul I defined a function per prototype declaration, included the file with the function definition and compiled it successfully (InstallShield compile). Now I'd like to test this function (only). I don't…
Mayoares
  • 1,234
  • 2
  • 13
  • 21
2
votes
2 answers

Good resources on InstallScript

Can anyone recommend any resources on the web for learning installscript?
Richard
  • 874
  • 2
  • 9
  • 23
2
votes
1 answer

value of BATCH_INSTALL variable

I want to know how the values of BATCH_INSTALL system variable changes during the installation process? In my installer when I was using it on Windows 7, during debugging I found that the value of BATCH_INSTALL system variable becomes -1 (i.e…
nvivekgoyal
  • 484
  • 9
  • 15
2
votes
1 answer

How can I find the previous install location of an application in InstallScript during a major upgrade?

I'm updating an installer written with InstallShield to perform a major upgrade of an application and have InstallScript functions invoked by custom actions to back up and restore some files from the application's directory. I have the script…
t c
  • 23
  • 5
2
votes
1 answer

Using C++ DLL in Installscript Custom Action

Hello Stackoverflow Community, I have problems calling a C++ DLL in an Installscript Custom Action. The problem occurs when I try to call my DLL with parameters. The error image looks like this: the DLL is called with parameters the values, the…
2
votes
2 answers

No self-registration happens when reboot required

I have an Installscript installer. When I run it to update the product and parts of the product are running, then a reboot is required. -- This is ok. It turned out that in case of a reboot all files are copied properly, but a configured…
2
votes
2 answers

InstallScript - Overwrite the default uninstaller?

Our company uses Flexera InstallShield 2012 (old, I know), and I am currently creating an InstallScript project. Everything is running nicely, the script does exactly what I want it to do. However, I am currently in a pickle. InstallScript has the…
2
votes
1 answer

Windows 10 not detecting on installshield

Have requirement to detect windows 10 or greater version on install time. for that I have create following function. It gives me 603 (AS VersionNT value) in windows 10 and windows 8.1. That is wrong. Is there any other way to achieve this? function…
Munavvar
  • 802
  • 1
  • 11
  • 33
2
votes
1 answer

Get dir setup install shield

I want get dir my setup create by install shield. I use command parametter Setup.exe /path=[SETUPEXEDIR]\log.txt My setup location is Desktop\myapp\Setup.exe When use [SETUPEXEDIR] return temp folder I want when use [SETUPEXEDIR] return me my…
2
votes
1 answer

Abort the Install Shield installation if specific key exists in registry

During setup.exe installation if a particular key exists in registry i want to abort the installation.To achieve this,i am calling install-script function using custom action in install shield project. Install Script code is : function…
1
2
3
14 15