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
1
vote
1 answer

Updating the INSTALLDIR from Installscript in Basic MSI

I want to change the INSTALLDIR value for my Installer during Installation using Installscript. How should I do it? I have already tried the following: Created a custom action as: function InitializeValues(hMSI) STRING svProductName; STRING…
The King
  • 833
  • 1
  • 15
  • 41
1
vote
1 answer

Why does InstallShield 2015 InstallScript Installer asks for Restart during Uninstallation?

We have been using Installscript installer created using InstallShield 2015 SP2 tool for installing our applications from past many years, but while working on our new release, I have been getting a new dialog box at the end of the UnInstallation…
1
vote
0 answers

How can I uninstall previous version windows application use install Shield script?

I have an InstallShield project, and try to build setup.exe file, now I have an old version application installed in my PC, and I need to uninstall this old version application, then install the new version of this application, I use below…
wabi xia
  • 11
  • 2
1
vote
2 answers

How to make install .Net 4.5.2 automatically when setup.exe starts in installscript msi project

First, I'm using Installshield Premier 2012. My application uses minimum .Net Framework 4.5.2 and I want to make installshield setup.exe downloads .Net Framework 4.5.2 too. I've tried .Net Framework 4.5 Full(Extract From Setup.exe option and same…
Rurien
  • 359
  • 1
  • 13
1
vote
1 answer

How can i get Setup.rul file of an old InstallShield Installer from its exe file?

I have an old InstallShield installer which i believe was made using InstallShield 2012. I don't have the install script code for the same. I only have exe of the installer with me. I need to create a new installer containing some of the same…
1
vote
1 answer

InstallShield Custom Dialog, WaitOnDialog() always return -1 (DLG_ERR)

I'm currently doing a Custom Dialog to handle locked file situation on an InstallScript project. I know there are built-in functions like SdException() to handle this case but this is a requirement to avoid the case where user accidentally chose to…
1
vote
1 answer

Failed to run script function from Custom Actions

I implemented an installscript file of my own that will allow the installer to register dll's. I combined this with a custom action to actually run the function I created. I had to make this script because the dlls were failing to register with…
JFrosty
  • 57
  • 8
1
vote
1 answer

Evaluate if variable contains a value (installscript)

I defined: STRING x; in a header (.h) file. I have a function that I would like to check if the value x was assigned with a value, before I use it. Something like: if(x is null) then... How can this be achieved in Installscript (InstallShield)?
Alex Weitz
  • 3,199
  • 4
  • 34
  • 57
1
vote
1 answer

InstallScript can not read text file containing result from command prompt

I am writing a Installscript function to run a command in command prompt, redirect the result from console to a text file, then read the text file for information. // send command method STRING szCmdPath, szCmdLine ; szCmdPath =…
Thế Long
  • 516
  • 7
  • 19
1
vote
1 answer

InstrallShield Major Upgrade not completely uninstalling previous version

I have an InstallShield 2016 InstallScript MSI project. I used the Major Upgrade option but with that approach what I see is that files of previous version gets removed, registry entries get deleted, etc. However, the uninstallation logic that is in…
1
vote
2 answers

Create a private queues in MSMQ using installshield 2010

does anyone knows how to create a private queue in MSMQ using installshield? My application uses one and I can't seem to get it done... Anyone has done this before? and if so, please help me Thanks!
gabonio
  • 39
  • 1
  • 5
1
vote
1 answer

Installscript Syntax: Calling a Property, converting to variable, then setting property

So I have this pseudo code I need Installscript syntax for, for a Basic MSI installation I am creating with Installshield. I need to call in a property previously set, [SERIAL] which is three digits long. If the value is higher than 235 I need to…
1
vote
1 answer

Install driver using InstallShield(USB device)

1) I am trying to register the Dll in Installshield based on the Hardware Info(USB\VID_12C1). -> I want to know the device ID of the USB device connected to PC. Then I want to fetch the USB device info into separate file. -> From…
santhosh kgn
  • 41
  • 1
  • 7
1
vote
0 answers

Converting a Hexadecimal string to a Binary Value in installshield 2009

Setting binary registry values in installshield needs binary string values, However usually binary values in installscript is presented in hexadecimal forms. So following code is not correct if you want to use RegDBSetKeyValueEx (Just Sample and…
Ahmadreza
  • 564
  • 2
  • 6
  • 17
1
vote
1 answer

How do I find details about an installed ODP.NET using the registry?

I want to find out the following things by searching the registry. I will be checking these things in an InstallShield project by querying the registry. Is ODP.NET installed on the machine? If yes, what is the version of installed ODP.NET? Is…
Jaqen H'ghar
  • 1,839
  • 7
  • 37
  • 66