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
28
votes
1 answer

Generating code for another language in Haskell

I want to generate code for another language in Haskell, but I'm puzzled on how to approach this problem. I'm looking for an abstract and elegant representation of the language in Haskell, which is also useful for code generation. The language in…
akosch
  • 4,326
  • 7
  • 59
  • 80
5
votes
3 answers

MSI or Install Shield

We need to create an installer for our application. Currently we are using Install Shield LE that is free with Visual Studio 2010. We require some of the non-free features of Install Shield and were thinking of upgrading to the full…
user489041
  • 27,916
  • 55
  • 135
  • 204
5
votes
1 answer

Upgrade built by InstallShield 2012 reports installed version in bad format

I am seeing the following messages during an upgrade using an installer built with InstallShield 2012 Spring: The InstallShield Wizard will update the installed version (9.01.005) of to version 9.2.0.53. The InstallShield Wizard is…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
4
votes
4 answers

Convert installscript to Basic MSI

Is there a way to convert InstallScript to Basic MSI in installshield 2010?
4
votes
3 answers

System.EnterpriseServices.Internal.Publish.GacInstall not working but no errors

Here is my code: var s = new System.EnterpriseServices.Internal.Publish(); foreach (string file in Directory.EnumerateFiles(@"C:\Program Files\MyFolder\MSPractices")) { Console.WriteLine("GACing " + file); s.GacInstall(file); } These are…
sirdank
  • 3,351
  • 3
  • 25
  • 58
4
votes
2 answers

Execute command line statement in installshield / installscript

How do I execute the following command in installscript during installation? netsh.exe advfirewall firewall show rule name="PowerSI (Release ASI 16.64)" || NETSH.EXE advfirewall firewall add rule name="PowerSI (Release ASI 16.64)" dir=in…
The King
  • 833
  • 1
  • 15
  • 41
4
votes
1 answer

What does the % operator do for strings in InstallScript?

I'm looking at some InstallScript code. With integers, I'm used to the % operator being modulo. I'm not familiar with it in strings. if (szSomeString % szSomeOtherString) then // do something endif; What is this shorthand for? I realize this…
jglouie
  • 12,523
  • 6
  • 48
  • 65
4
votes
2 answers

How to find relative path to C:\Inetpub\AdminScripts\ADSUTIL.VBS?

IIS 6 and older ships with a utility script called ADSUTIL.VBS: Adsutil.vbs is an IIS administration utility that uses Microsoft Visual Basic Scripting Edition (VBScript) with Active Directory Service Interfaces (ADSI) to manipulate the …
Mike Atlas
  • 8,193
  • 4
  • 46
  • 62
3
votes
1 answer

Unit testing InstallScript

I've got a handful of functions in my InstallScript that are good candidates for unit tests. My project is a InstallScript MSI project. I found an article about how to unit test Custom Actions with custom ICEs, but the code I want to unit test isn't…
epotter
  • 7,631
  • 7
  • 63
  • 88
3
votes
4 answers

How to make a custom dialog in InstallShield?

I'm trying to understand InstallShield (2009)/InstallScript on the fly, because I'm modifying someone else's installation script. One of the dialogs during the installation procedure previously had one textbox on it, asking for a SQL Server…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
3
votes
1 answer

How can I install files into System32 Folder on an 64Bit Platform

I want to install a .sys file into %windir%/System32/drivers directory on a 64-Bit Platform. The setups works fine under 32-Bit, but when I´m installing on a 64-Bit platform, the setup stores the file under %windir%/SysWOW64/drivers. I tried to…
3
votes
1 answer

RegDBQueryKey cannot list keys for 32- and 64-bit keys at the same time

I have been facing a problem in InstallScript to get the list of registry keys for 32- and 64-bit installations. My machine is Windows Server 2008 64-bit. I can install the SQL Server 2008 32-bit version or 64-bit version on this machine. Now…
swd
  • 248
  • 1
  • 6
  • 17
3
votes
1 answer

Is it OK to add a Condition to a core InstallShield Custom Action? (like OnInstallFilesActionBefore)

I added a condition to the OnInstallFilesActionBefore Custom Action via the Sequences editor. I made it so it only executes the first time you install the setup, which means my condition is: Not Installed I'm now seeing this warning logged when…
3
votes
2 answers

Feasibility of converting from InstallScript project to Basic MSI

I have a pure InstallScript project, which turns out to be problematic due to this issue. It was temporarily resolved by adding some InstallScript that wipes a particular directory before the new files are installed, which is not ideal. However,…
sjohnston
  • 612
  • 5
  • 21
3
votes
1 answer

How to retain service settings through InstallShield upgrade install

I have an InstallScript project in IS2010. It has a handful of services that get installed. Some are C++ exes and use the "InstallShield Object for NT Services". Others are Java apps installed as services with Java Service Wrapper through…
1
2 3
14 15