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

Create SQL connection using Install Script in InstallShield project

In InstallShiled setup project we have certain requirement that we need to validate any specific DataBase is exist or not on given SQL Server. For that we are using below Install Script: szADOConnObjID = "ADODB.Connection"; set pADOConnObj =…
2
votes
1 answer

Setting Minor or Major Upgrade within InstallScript Project

I'm using InstallShield 2012 Spring - Premier Edition and I'm trying to replace the existing install of our software (if it exists) with whatever is in the new Setup script when Setup script is run again. I have read some things online that say to…
2
votes
1 answer

How to update attributes in an XML file with InstallScript

Question: I am struggling trying to figure out how to update some attributes in an XML file using InstallScript. I would like to use proper XML parsing functions, but I can't find anything that suggests this version of InstallScript is capable of…
Nick Knowlson
  • 7,185
  • 6
  • 47
  • 63
2
votes
1 answer

FireBird install using InstallShield

I can't seem to find a good script or anything to use for installing Firebird (the InterBase-decendent RDBMS) using InstallShield. There is a way to silently install it using the firebird install executable, but I don't know enough about…
Cyprus106
  • 5,722
  • 6
  • 40
  • 48
2
votes
1 answer

Custom Message on Failure of Custom Action Installshield

I have a custom action that runs at the time of installation which is an exe written in C#. This exe grants permission to a User to a specific folder, if this task fails there is no use for the installation to continue. I need it to rollback, but…
Ajay Bhasy
  • 1,920
  • 1
  • 26
  • 38
2
votes
1 answer

How to set registry value when cancel button is pressed in installscript project?

I am using InstallShield installscript project. My problem is I want to set a registry key when the cancel button is pressed in the "Preparing to install" dialog. I have placed the below code in the OnCanceling() event. but it deletes the registry…
2
votes
1 answer

Run the executable file as administrator in Installshield MSI project using LaunchAppAndWait

I have created a MSI project in Installshield and i added my installscript method as custom action for install some support driver items. I am using "LaunchAppAndWait" method for launch the executable file with…
Rajkumar G
  • 247
  • 1
  • 4
  • 13
2
votes
2 answers

InstallShield Run As local account if not ran by admin

I have a InstallShield InstallScript project that needs to be ran with administrative rights. In a nutshell from the InstallShield I need to: Detect if the installer currently has administrative privileges. If setup.exe is not being ran with admin…
Dave
  • 1,823
  • 2
  • 16
  • 26
2
votes
2 answers

InstallShield Reponse File missing a response

I am trying to automate the install of a few setup files (.exe). I managed to get one working without any issue but am having difficulty with the second. I created response files by using the following in command prompt: MyProgram.exe -r This…
2
votes
2 answers

InstallScript Data-Type Casing

Bottom Line I have inherited a sizeable InstallShield InstallScript installer, and in working through its InstallScript (*.rul) source files, I notice that variable and parameter data types' casing varies - for what appear to be the same data types.…
J0e3gan
  • 8,740
  • 10
  • 53
  • 80
2
votes
2 answers

How to ignore some features in updatemode in an InstallScript project?

I am developing an InstallShield InstallScript project (not MSI) and currently working on the "updatemode" behaviour of the setup.exe program. I would like to know if it is possible to ignore the update of one specific feature and still update the…
2
votes
1 answer

Why isn't SQL Text Substitution working in InstallShield

I'm trying to run some dynamic SQL in an installscript project. In the UI portion of the script I have the following code: TextSubSetValue("", message, TRUE); message = ""; MessageBox(message,…
Mykroft
  • 13,077
  • 13
  • 44
  • 72
2
votes
1 answer

InstallShield: using LaunchAppAndWait() with relative path

Suppose, I have the following folders structure: c:\Test\setup.exe (this is main installation launcher) c:\Test\Feature1\setup.exe (Installation of feature1) c:\Test\Feature2\setup.exe (Installation of feature2) I created customized InstallShield…
AndreyS
  • 365
  • 7
  • 18
2
votes
1 answer

Set text to bold in InstallScript

I have a dialog in an InstallScript Msi project (2008) and I'm trying to set some text in a label to bold, but can't seem to figure it out. I tried prefixing with {&STYLE_BOLD} (which is a predefined style), but it didn't help. Does anyone know how…
Tamar
  • 2,016
  • 1
  • 15
  • 26
2
votes
5 answers

How do you add a DLL to the GAC from an InstallScript Project in InstallShield?

How do you add a DLL to the GAC from an InstallScript Project in InstallShield? I tried added [GLOBALASSEMBLYCACHE] as a destination to the component, with no luck. It tells me that is not valid data for the destination.
Anthony D
  • 10,877
  • 11
  • 46
  • 67
1 2
3
14 15