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

InstallScript set source files and dirs

Is it possible in InstallScript to define a script that given a path as an argument to the command-line compiler, will look in that path and get the files to be installed from there before compiling and building the installer? The goal is to be able…
La bla bla
  • 8,558
  • 13
  • 60
  • 109
1
vote
2 answers

How to create a custom installshield dialog skin?

I am trying to create an InstallScript project using InstallShield 2013 Authoring Tool. So far I have just been using the default dialog boxes and skins. Now I need to now customize them to fit my needs, but I am finding the links in the help…
109
  • 137
  • 1
  • 10
1
vote
0 answers

MsiDatabaseOpenView returns 6 (ERROR_INVALID_HANDLE)

I have a Basic MSI project in InstallShield 2013. I am trying to dynamically insert items in a combobox using an InstallScript custom action. I am currently stuck well before actually inserting the items. When I try to open the view I get…
Graznarak
  • 3,626
  • 4
  • 28
  • 47
1
vote
1 answer

How to add merge modules (.msm) to an Install Script using Install shield application?

I am using Install Shield and I know that we can add the merge modules using the Redistributables menu item if it was a Basic MSI Project. But I do not see the Redistributables menu item if it was InstallScript Project Can some one help me out in…
1
vote
2 answers

string too long with MsiGetProperty with Installshield Installscript

I am using MsiGetProperty to get string parameter value from the installer. And after that I am calling a managed dll and I pass the that value: nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize); when I pass the…
1
vote
2 answers

InstallShield with .NET 4.5 nested installation

My installer needs to redistribute the .NET framework, but I don't want to have a setup.exe wrapper so I've written a Custom Action to launch the web installer for .NET if the end-users machine does not already have it. This works perfectly fine…
Nothing 2 Lose
  • 180
  • 1
  • 3
  • 8
1
vote
1 answer

InstallShield 2012 Spring Express: How Can I Run Custom Action As Administrator On Uninstall?

I'm using InstallShield 2012 Spring Express. I finally figured out that, during the installation for my app, I could run a custom action with an elevated process EXE (application manifest set to "requireAdministrator") if I set its "In-Script…
1
vote
1 answer

Adding a custom action in a Merge Module in Installshield

I have an MSI project that I want to convert to a merge module. The writing of files was simple enough to replicate. However, I am struggling to replicate the Custom Actions. I need the Custom Action to execute from the merge module. This is what my…
Dreamer78692
  • 215
  • 5
  • 20
1
vote
3 answers

Set MySQL config data on install PHP

I've made an install script for mysql tables. I want the user to set the database configurations. The configurations for mysql is hard coded in a PHP class as public variables. What would be best practice for creating and storing the config data on…
user1121487
  • 2,662
  • 8
  • 42
  • 63
1
vote
2 answers

InstallScript: ChangeDirectory() call fails only in SILENTMODE

I have the following test InstallScript InstallShield code, which executes correctly in the normal interactive mode, but crashes setup.exe /s (silent) mode on calls to ChangeDirectory that involve any sort of actual depth of directories. //Note:…
Mike Atlas
  • 8,193
  • 4
  • 46
  • 62
1
vote
0 answers

Installshield Prompt for Multiple Destinations on One Dialog

Using InstallShield 2012 spring and wanting to add another file location dialog on the SdAskDestPath2 dialog but not sure how to do so. I previously tried to just create a custom dialog (lots of Googling and searching the InstallShield help) by:…
1
vote
0 answers

How to find if the Installatoion was per user or per machine installation

I have installed my software on the system in per machine (ALL USER) installation mode. During the maintenance Install, I want to know whether the software was Installed per user or per machine? How can I do that? Is there any installscript function…
The King
  • 833
  • 1
  • 15
  • 41
0
votes
1 answer

Targeting a 64-bit OS in an InstallScript InstallShield project

I am at my wit's end with this and our CM just, ahem... left the company. I have a 32-bit InstallScript based InstallShield installer that I have copied and modified to install the 64-version of our software. It properly grabs everything from the…
Ed S.
  • 122,712
  • 22
  • 185
  • 265
0
votes
1 answer

Setting values for script defined folder using FeatureSetTarget in multiple media

I am working on a Installscript project using installshield 2011. Here I need to create multiple media. So I initialize MEDIA with another media library(second1.cab). When I use FeatureMoveData to transfer files with new MEDIA, it shows error while…
nvivekgoyal
  • 484
  • 9
  • 15
0
votes
1 answer

InstallScript String replace fails in windows server 2008

I am now facing a problem with the installer that i have created with InstallSheild 2009. There are some configuration files which need the installation path of the application. and this is done by the installer through an installscript. On building…